Customers
Create a customer
<a href="https://www.checkout.com/docs/payments/store-and-manage-credentials" target="_blank">Store a customer's details in a customer object to reuse in future payments</a>. When creating a customer, you can link payment instruments – the customer id returned can be passed as a source when making a payment. <br/><br> NOTE: Specify a default instrument, otherwise the instruments array will not be saved on creation.
post/customers
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- Auth
- OAuth 2Client credentialsToken URLstringScopesvault, vault:customers
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"email": "brucewayne@gmail.com",
"name": "Bruce Wayne",
"phone": {
"country_code": "+1",
"number": "415 555 2671"
},
"metadata": {
"coupon_code": "NY2018",
"partner_id": 123989
},
"default": "src_wmlfc3zyhqzehihu7giusaaawu"
}Response
Customer created successfully
Example response
{
"id": "cus_y3oqhf46pyzuxjbcn2giaqnb44"
}Changes
No recorded changes to this operation across all 1 revision of this API.