Skip to main content
POST
Writes the fields you send to the customer’s Stripe customer, creating it first when there is none, and returns the details as Stripe now holds them. Billing details explains each field and the rules.
  • address and invoiceCustomFields replace the whole value; null clears any field; omitted fields stay.
  • taxIds.add and taxIds.remove touch only the IDs they list.
  • A refused tax ID (422 invalid_tax_id) or address (422 invalid_address) changes nothing.
Needs the Customers permission at Write.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

customerId
string
required

Your ID for the customer, such as your user ID.

Required string length: 1 - 255

Body

application/json

Billing details saved on the customer's Stripe customer, which is created for them. The same fields as POST /v1/customers/billing-details.

name
string | null

The name invoices and receipts show. Null clears it. Checkout may overwrite it when automatic tax is on.

Required string length: 1 - 256
email
string<email> | null

Where Stripe sends this customer's receipts and invoices, when your Stripe account sends them. Ledger itself never emails invoices. Null clears it.

Maximum string length: 512
address
object | null

The billing address Stripe Tax locates the customer by. Replaces the whole address; null clears it.

taxIds
object

Tax IDs to add and to remove; any others stay. Adding one the customer has, or removing one it hasn't, changes nothing. To correct one, remove it and add the new value in the same call.

taxExempt
enum<string>

none: taxed as usual. exempt: never taxed. reverse: reverse charge, which Stripe notes on the invoice.

Available options:
none,
exempt,
reverse
invoiceCustomFields
object[] | null

Up to 4 name and value pairs printed on every invoice, such as a PO number. Replaces the whole list; null clears it.

Maximum array length: 4

Text printed at the foot of every invoice. Null clears it.

Required string length: 1 - 5000

Response

The customer's billing details, as Stripe holds them

customerId
string
required
billingDetails
object
required

Read from the customer's Stripe customer. Null when the customer has no Stripe customer yet.