Create a customer
POST
/v1/customersRequest
The customer’s address.
City, district, suburb, town, or village.
Two-letter country code (ISO 3166-1 alpha-2 ).
Address line 1 (e.g., street, PO Box, or company name).
Address line 2 (e.g., apartment, suite, unit, or building).
ZIP or postal code.
State, county, province, or region.
An arbitrary string attached to the object. Often useful for displaying to users.
The customer’s email address.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
The customer’s full name or business name.
The customer’s phone number.
Mailing and shipping address for the customer.
Recipient name.
Recipient phone (including extension).
The prefix for the customer used to generate unique invoice numbers.
The customer’s default invoice settings.
Default custom fields to be displayed on invoices for this customer.
ID of a payment method that’s attached to the customer, to be used as the customer’s default payment method for subscriptions and invoices.
{
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"description": "string",
"email": "string",
"metadata": {},
"name": "string",
"phone": "string",
"shipping": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"name": "string",
"phone": "string"
},
"invoice_prefix": "string",
"invoice_settings": {
"custom_fields": {
"name": "string",
"value": "string"
},
"default_payment_method": "string"
}
}
Request samples
Responses
Unique identifier for the object, like "cus_XXX".
'customer'
The customer’s address.
City, district, suburb, town, or village.
Two-letter country code (ISO 3166-1 alpha-2 ).
Address line 1 (e.g., street, PO Box, or company name).
Address line 2 (e.g., apartment, suite, unit, or building).
ZIP or postal code.
State, county, province, or region.
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
An arbitrary string attached to the object. Often useful for displaying to users.
The customer’s email address.
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
The customer’s full name or business name.
The customer’s phone number.
The customer’s preferred locales (languages), ordered by preference.
Mailing and shipping address for the customer.
Recipient name.
Recipient phone (including extension).
{
"id": "string",
"object": "string",
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"created": 0,
"currency": "string",
"description": "string",
"email": "string",
"livemode": true,
"metadata": {},
"name": "string",
"phone": "string",
"preferred_locales": [
"string"
],
"shipping": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"name": "string",
"phone": "string"
}
}