查询授权列表
Request
ENDPOINT
/prepaid/card/(card_key)/authorizationsMÉTODO
GETPARÂMETROS
from_date, to_date, size, page查询参数
| 字段 | 类型 | 描述 |
|---|---|---|
size | int | 返回的记录数量,默认值为 10。 |
page | int | 查询的页码,默认值为 0。 |
from_date | string | 查询的开始日期(格式:YYYY-MM-DD)。 |
to_date | string | 查询的结束日期(格式:YYYY-MM-DD)。 |
Response
STATUS
200Response Body
{
"pagination": {
"current_page": 1,
"rows_per_page": 10,
"next_page": 2
},
"data": [
{
"authorization_key": "cccbd9e9-863f-44b5-aa05-f6afa555bb74",
"merchant_currency_code": "BRL",
"original_merchant_amount": 25.32,
"billing_currency_code": "BRL",
"original_billing_amount": 25.32,
"merchant_amount": 25.32,
"iof_amount": 0,
"billing_amount": 25.32,
"processing_datetime": "2023-07-24T12:00:00.000Z",
"captured_amount": 25.32,
"authorization_status": "completed"
}
]
}
错误
STATUS
4XXResponse Body
{
"title": "Not Found",
"description": "It was not possible to fetch the Card for the card_key f6bf148a-30b6-4a07-8c5b-3383a98ea32b.",
"translation": "Not Found Card",
"code": "CARD000011"
}
| Code | Status code | 描述 |
|---|---|---|
| CARD000011 | 404 | It was not possible to fetch the Card for the card_key {card_key}. |
| CARD000016 | 400 | We're sorry, but the card could not be fetch. Please try again later. |