通过授权密钥查询授权
Request
ENDPOINT
/prepaid/card/(card_key)/authorization/(authorization_key)MÉTODO
GETResponse
STATUS
200Response Body
{
"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",
"card": {
"card_key": "05fd3654-1f5d-479d-ade5-64239fdf214d",
"account_key": "595e08f0-da4e-40f7-8db4-f9a25c829818",
"type": "virtual",
"card_name": "ecommerce sample",
"printed_name": "Aurora Catarina",
"status": "active",
"brand": "visa",
"bin": "123456",
"last_four_digits": "5695"
},
"balance_transactions": [
{
"balance_transaction_key": "cccbd9e9-863f-44b5-aa05-f6afa555bb74",
"balance_transaction_type": "debit",
"account_transaction_key": "595e08f0-da4e-40f7-8db4-f9a25c820000",
"account_key": "595e08f0-da4e-40f7-8db4-f9a25c829818",
"merchant_currency_code": "BRL",
"merchant_amount": 25.32,
"billing_currency_code": "BRL",
"billing_amount": 25.32,
"processing_datetime": "2023-01-10T13:45:52.000Z",
"balance_transaction_status": "transacted",
"transacted_amount": 25.32,
}
],
"authorization_requests": [
{
"authorization_request_key": "cccbd9e9-863f-44b5-aa05-f6afa555bb74",
"authorization_code": "473890",
"nsu": "123456",
"acquirer_reference_number": "12312423",
"merchant_currency_code": "BRL",
"merchant_amount": 25.32,
"billing_currency_code": "BRL",
"billing_amount": 25.32,
"processing_datetime": "2023-01-10T13:45:52.000Z",
"number_of_installments": 1,
"authorization_type": "authorization",
"authorization_request_response": "authorized"
}
],
"authorization_events": [
{
"merchant_currency_code": "BRL",
"merchant_amount": 25.32,
"billing_currency_code": "BRL",
"billing_amount": 25.32,
"processing_datetime": "2023-07-24T12:00:00.000Z",
"authorization_event_type": "authorization"
}
]
}
授权对象
| 字段 | 类型 | 描述 |
|---|---|---|
| authorization_key | string | 授权的唯一标识符 |
| merchant_currency_code | string | 交易使用的货币 - ISO 4217-alpha |
| original_merchant_amount | decimal | 交易发生货币下的原始交易金额 |
| billing_currency_code | string | 持卡人账单货币 - ISO 4217-alpha |
| original_billing_amount | decimal | 持卡人账单货币下的原始交易金额 |
| merchant_amount | decimal | 所有授权请求中交易货币金额的汇总 |
| iof_amount | decimal | 当交易货币与持卡人账单货币不同时,汇兑所缴纳的 IOF 金额汇总 |
| billing_amount | decimal | 所有授权请求中持卡人账单货币金额的汇总 |
| processing_datetime | datetime UTC | 授权对象的创建时间,通常为第一次授权请求的时间 |
| captured_amount | decimal | 所有授权请求已捕获的总金额 |
| authorization_status | enumerator | 授权状态枚举 |
| card | object | Card 对象 |
| balance_transactions | list of objects | Balance Transaction 对象 |
| authorization_requests | list of objects | 授权请求对象 |
| authorization_events | list of objects | 授权事件对象 |
Card 对象
| 字段 | 类型 | 描述 |
|---|---|---|
| card_key | string | 卡片识别密钥 |
| account_key | string | 持卡人账户标识符 |
| type | string | 卡片类型 |
| card_name | string | 卡片字母数字标识符 |
| printed_name | string | 印在卡片上的姓名 |
| cvv_rotation_interval_hours | int | CVV 轮换间隔 |
| status | string | 卡片当前状态 |
| brand | string | 卡片所属卡组织 |
| bin | string | 卡片 BIN |
| last_four_digits | string | 卡号后四位 |
Balance Transaction 对象
Balance Transaction 对象表示持卡人 QI Conta 上需要执行的任何资金变动。可以是因授权获批而产生的