Listar os cartões de um cliente
GET/api/public/v1/customers/:customer_code/cards
Listar os cartões de um cliente
Request
Path Parameters
customer_code stringrequired
Código identificador do cliente
Responses
- 200
- 400
Lista recuperada com sucesso
- application/json
- Schema
- Example (from schema)
- Example
Schema
code string
brand string
first_6 string
last_4 string
{
"code": "string",
"brand": "string",
"first_6": "string",
"last_4": "string"
}
[
{
"code": "TCDV11E08B3011HPM34UGO",
"brand": "MASTER",
"first_6": 123456,
"last_4": 1234
},
{
"code": "TCDV22E10B600HPM12UGO",
"brand": "VISA",
"first_6": 654321,
"last_4": 4321
}
]
Requisição inválida
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"status": "error",
"message": "Cliente não encontrado ou parâmetro inválido"
}
{
"status": "error",
"message": "Cliente não encontrado ou parâmetro inválido"
}
Loading...