Lewati ke konten
Buat akun
atau
Masuk
Logo Dokumen Stripe
/
Tanya AI
Buat akun
Masuk
Mulai
Pembayaran
Pendapatan
Platform dan situs belanja online
Manajemen uang
Sumber daya pengembang
Gambaran Umum
Billing
Gambaran umumTentang Billing API
Subscriptions
Invoicing
    Gambaran umum
    Cara kerja pembuatan invoice
    Mulai cepat API
    Integrasikan dengan API
    Invoicing tanpa kode
    Siklus hidup invoice
    Pratinjau invoice
    Edit invoice
    Jadwalkan finalisasi invoice
    Transisi dan finalisasi status
    Kirim email pelanggan
    Hasilkan nota kredit
    Kirimkan invoice ke pelanggan
    Pelanggan
    Saldo kredit pelanggan
    ID pajak pelanggan
    Kirimkan invoice pembayaran
    Halaman Invoice yang Di-hosting
    Buat paket pembayaran invoice
    Terima pembayaran sebagian
    Metode pembayaran untuk invoice
    Pemungutan otomatis
    Penyesuaian invoice
    Sesuaikan invoice
    Templat rendering invoice
    Kelompokkan mata anggaran invoice
    Ringkas mata anggaran
    Invoice global
    Praktik terbaik
    Pelanggan multi-mata uang
    Fitur invoicing lain
    Produk dan harga
    Kelola mata anggaran invoice dalam jumlah besar
    Pajak
Tagihan berbasis penggunaan
Penawaran Harga
Manajemen pelanggan
Penagihan dengan produk lainnya
Pemulihan pendapatan
Otomatisasi
Coba integrasi Anda
Pajak
Gambaran umum
Gunakan Stripe Tax
Kelola kepatuhan
Pelaporan
Gambaran umum
Pilih laporan
Konfigurasikan laporan
API laporan
Melaporkan untuk beberapa akun
Pengakuan pendapatan
Data
Gambaran umumSkema
Laporan custom
Data Pipeline
Pengelolaan data
BerandaPendapatanInvoicing

Multi-currency customers

Change the billable currency for any customer to accept multiple currencies.

If you need to sell in multiple currencies but have each individual customer use a single currency, see multi-currency Prices.

Use the Invoicing API to issue an invoice to a customer in a different currency. With the multi-currency customers feature, you can bill the same Customer using a different currency than what’s set as their default currency, and change the currency for a customer’s subscriptions. You can’t have two active subscriptions with different currencies.

This guide also explains how to create a credit note and inspect a customer’s credit balance in all assigned currencies. For illustrative purposes, we use the Canadian Dollar (CAD).

Create an invoice

Before you invoice a customer, create an invoice item by passing in the customer id, amount, and currency. Only add invoice items to a single customer at a time to avoid adding them to the wrong one.

The maximum number of invoice items is 250. Creating an invoice adds up to 250 pending invoice items with the remainder to be added on the next invoice. To see your customer’s pending invoice items, see the Customer details page or set the pending attribute to true when you use the API to list all of the invoice items.

Catatan

A CAD invoice doesn’t apply a customer credit balance denominated in USD or any other currency other than CAD. Additionally, any amount-off coupons you applied to the customer that are denominated in non-CAD currency are ignored.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/invoiceitems \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer=
{{CUSTOMER_ID}}
\ -d amount=1000 \ -d currency=cad

You must pass in the currency parameter when you issue a multi-currency invoice. The currency parameter dictates which invoice items get pulled into the invoice. For example, if you were to create two invoice items—one in USD and the other in CAD—for the same customer, setting the currency to CAD would only pull in the CAD invoice item (ignoring the USD invoice item).

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/invoices \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d customer=
{{CUSTOMER_ID}}
\ -d collection_method=send_invoice \ -d days_until_due=30 \ -d pending_invoice_items_behavior=include \ -d currency=cad

Create a credit note

If there’s an issue with the invoice, you can create a credit note. If you need to apply the credit to the customer’s credit balance (as opposed to back to the original payment method), Stripe allocates the credit amount to the CAD-specific credit balance.

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl https://api.stripe.com/v1/credit_notes \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d invoice={{INVOICE_ID}} \ -d reason=duplicate \ -d amount=1000 \ -d credit_amount=1000

Inspect the credit balance

To see how much credit a customer has in each currency, use the invoice_credit_balance parameter:

Command Line
cURL
Stripe CLI
Ruby
Python
PHP
Java
Node
Go
.NET
No results
curl -G https://api.stripe.com/v1/customers/{{CUSTOMER_ID}} \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ -d "expand[]"=invoice_credit_balance

The customer’s credit balance is drawn down from the next CAD invoice created for this customer. It won’t, however, be drawn down for invoices created in different currencies.

Lihat juga

  • Integrate with the Invoicing API
  • Manage customers
  • Products and prices
Apakah halaman ini membantu?
YaTidak
  • Butuh bantuan? Hubungi Tim CS.
  • Bergabunglah dengan program akses awal kami.
  • Lihat log perubahan kami.
  • Ada pertanyaan? Hubungi Bagian Penjualan.
  • LLM? Baca llms.txt.
  • Dijalankan oleh Markdoc