Update customer
POST/customers/:id
Update customer.
Authorization Action:
pay:customers:update
Request
Path Parameters
- application/json
Body
required
address object
Two-letter country code (ISO 3166-1 alpha-2).
Address line 1 (e.g., street, block, PO Box, or company name).
Address line 2 (e.g., apartment, suite, unit, or building).
ZIP or postal code.
State, county, province, prefecture, or region.
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
The sequence to be used on the customer's next invoice. Defaults to 1.
Possible values: [exempt
, none
, reverse
]
Specifies which fields in the response should be expanded.
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
address object
Two-letter country code (ISO 3166-1 alpha-2).
Address line 1 (e.g., street, block, PO Box, or company name).
Address line 2 (e.g., apartment, suite, unit, or building).
ZIP or postal code.
State, county, province, prefecture, or region.
When the customer's latest invoice is billed by charging automatically, delinquent
is true
if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, delinquent
is true
if the invoice isn't paid by its due date.
The customer's email address.
The customer's full name or business name.
The customer's phone number.
The customer's current subscriptions, if any.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
{
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"delinquent": true,
"email": "string",
"name": "string",
"phone": "string",
"subscriptions": {},
"id": "string",
"created": 0
}