Listar cartões
Request
ENDPOINT
/prepaid/cardMÉTODO
GETPARÂMETROS
account_key, size, pageQUERY PARAMS
Campo | Tipo | Descrição | Caracteres |
---|---|---|---|
account_key * | string | Chave de identificação da conta de pagamento na QI Tech. | uuid |
size | int | Quantidade de registros que será retornado. Default 10. | - |
page | int | Página que será realizado a busca. Default 0. | - |
Response
STATUS
200Response Body
{
"pagination": {
"current_page": 1,
"rows_per_page": 0,
"next_page": 2
},
"data": [
{
"card_key": "05fd3654-1f5d-479d-ade5-64239fdf214d",
"account_key": "595e08f0-da4e-40f7-8db4-f9a25c829818",
"program_key": "6b6ebaac-043b-4390-8d62-e8098ec901e9",
"type": "virtual",
"card_name": "ecommerce",
"printed_name": "Aurora Catarina",
"cvv_rotation_interval_hours": 72,
"created_at": "2023-02-20T19:28:16Z",
"updated_at": "2023-02-22T19:28:16Z",
"status": "active",
"brand": "visa"
},
{
"card_key": "ee084f00-d72e-4263-87fb-3a3c11a418c6",
"account_key": "595e08f0-da4e-40f7-8db4-f9a25c829818",
"program_key": "6b6ebaac-043b-4390-8d62-e8098ec901e9",
"type": "virtual",
"card_name": "uber",
"printed_name": "Aurora Catarina",
"cvv_rotation_interval_hours": 72,
"created_at": "2023-02-10T11:28:16Z",
"updated_at": "2023-02-15T11:28:16Z",
"status": "canceled",
"brand": "visa"
}
]
}
Erros
STATUS
4XXResponse Body
{
"title": "Not Found",
"description": "It was not possible to fetch the Account for the account_key 94f982c0-164c-45e3-8a0e-69f54ad7b155.",
"translation": "Not Found Account",
"code": "CARD000006"
}
Code | Status code | Descrição |
---|---|---|
CARD000006 | 404 | It was not possible to fetch the Account for the account_key {account_key}. |
CARD000021 | 400 | Account key can not be null when search for cards. |
CARD000022 | 400 | Invalid integer value for page or size querystring parameters. |