v1
latestOpenAPI 3.1.02026-07-26477322.4 KBCriar cliente
post/customers
Request body
Response
200
Example response
{
"id": "cus_QA5V47r9c0Im3dzN",
"name": "Tony Stark",
"email": "tonystarkk@avengers.com",
"code": "MY_CUSTOMER_001",
"document": "93095135270",
"document_type": "CPF",
"type": "individual",
"gender": "male",
"address": {
"id": "addr_KewjagEfrCbY1doZ",
"line_1": "375, Av. General Justo, Centro",
"line_2": "8º andar",
"zip_code": "20021130",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BR",
"status": "active",
"created_at": "2017-09-22T15:36:46Z",
"updated_at": "2018-04-03T17:46:20Z"
},
"created_at": "2017-09-22T15:36:46Z",
"updated_at": "2018-04-03T17:46:20Z",
"birthdate": "1984-05-03T00:00:00Z",
"phones": {
"home_phone": {
"country_code": "55",
"number": "000000000",
"area_code": "21"
},
"mobile_phone": {
"country_code": "55",
"number": "000000000",
"area_code": "21"
}
},
"metadata": {
"id": "my_customer_id",
"company": "Avengers"
}
}