v1
latestOpenAPI 3.1.02026-07-26477322.4 KBCriar cartão
Este recurso cria um card associado ao customer através do customer_id informado.
post/customers/{customer_id}/cards
Path parameters
customer_idstring required
Código do cliente. Formato: cus_XXXXXXXXXXXXXXXX
Request body
Response
200
Example response
{
"id": "card_8ELY0AwVF9HDa3jK",
"first_six_digits": "542501",
"last_four_digits": "7793",
"brand": "Mastercard",
"holder_name": "Tony Stark",
"holder_document": "93095135270",
"exp_month": 1,
"exp_year": 2030,
"status": "active",
"label": "Sua bandeira",
"created_at": "2017-07-07T19:50:33Z",
"updated_at": "2017-07-07T19:50:33Z",
"billing_address": {
"zip_code": "220000111",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BR",
"line_1": "375, Av. General Osorio, Centro",
"line_2": "7º Andar"
},
"customer": {
"id": "cus_yoqONwOJI1IBNbjl",
"name": "Tony Stark",
"email": "0fee2dc5-e440-4dd1-9cd6-9c2bc90533d0@avengers.com",
"document": "93095135270",
"type": "individual",
"created_at": "2017-07-07T19:50:23Z",
"updated_at": "2017-07-07T19:50:23Z",
"phones": {
"home_phone": {
"country_code": "55",
"number": "000000000",
"area_code": "21"
},
"mobile_phone": {
"country_code": "55",
"number": "000000000",
"area_code": "21"
}
},
"metadata": {
"company": "Avengers"
}
},
"type": "credit"
}