Skip to main content

Retrieve Authorization

Request

ENDPOINT
/prepaid/card/(card_key)/authorization/(authorization_key)
METHOD
GET

Response

STATUS
200
Response 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_request_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 Object

FieldTypeDescription
authorization_keystringAuthorization unique identifier
merchant_currency_codestringThe currency used by the merchant - ISO 4217-alpha
original_merchant_amountdecimalOriginal amount of the transaction in the merchant currency
billing_currency_codestringThe cardholder's billing currency - ISO 4217-alpha
original_billing_amountdecimalOriginal amount in cardholder's billing currency
merchant_amountdecimalSum of the current authorized amount in the merchant's currency, from all authorization requests
iof_amountdecimalSum of the IOF amount for international authorizations on cardholder's billing currency
billing_amountdecimalSum of the current authorized amount in the cardholder's billing currency, from all authorization requests
processing_datetimedatetime UTCTime of the authorization creation
captured_amountdecimalSum of the total value captured
authorization_statusenumeratorEnumerator of Authorization Status
cardobjectObject Card
balance_transactionslist of objectsBalance Transaction Object
authorization_requestslist of objectsAuthorization Request Object
authorization_eventslist of objectsAuthorization Event Object

Card Object

FieldTypeDescription
card_keystringCard unique identifier
account_keystringCard linked account unique identifier
typestringCard type
card_namestringCard name
printed_namestringName printed on card
statusstringCurrent card status
brandstringCard network name
binstringCard BIN
last_four_digitsstringCard's last four digits

Balance Transaction Object

The Balance Transaction object represents any movement in the cardholder's account balance. They can be debit transactions (reducing the account balance), or they can be credit transactions (increasing the account balance).

FieldTypeDescription
balance_transaction_keystringBalance transaction unique identifier
balance_transaction_typeenumeratorPossible values (credit, debit)
account_keystringCard linked account unique identifier
merchant_currency_codestringThe currency used by the merchant - ISO 4217-alpha
merchant_amountdecimalAmount of the transaction in the merchant currency
billing_currency_codestringThe cardholder's billing currency - ISO 4217-alpha
billing_amountdecimalAmount of the transaction in the cardholder's billing currency
processing_datetimedatetimeTransaction's processing and creation datetime
balance_transaction_statusenumeratorThe status of the balance transaction: pending (pending_transaction_execution), partially transacted (partially_transacted) or transacted (transacted)
transacted_amountdecimalTotal amount that was successfully debited/credited from cardholder's account balance

Authorization Request Object

Detailed in Authorization Request

Authorization Event Object

The Authorization Event object represents the events that occur with an Authorization. See Use Cases.

FieldTypeDescription
merchant_currency_codestringThe currency used by the merchant - ISO 4217-alpha
merchant_amountdecimalAmount of the event in the merchant currency
billing_currency_codestringThe cardholder's billing currency - ISO 4217-alpha
billing_amountdecimalmount of the event in the cardholder's billing currency
processing_datetimedatetimeEvent's processing datetime
authorization_event_typeenumeratorAuthorization Event Types

Authorization Status

StatusDescription
pendingAuthorization request was authorized and no capture or reversal events were processed
unauthorizedAuthorization request was not approved
completedAuthorization with at least one captured value (equal to, less than, or greater than the total authorized amount)
reversedAuthorization was voided in full or expired without capture

Authorization Event Types

TypeDescription
authorizationAn authorization request was processed
incremental_authorizationAn incremental authorization request was processed
authorization_reversalAn authorization was fully reversed
partial_authorization_reversalAn authorization was partially reversed
authorization_expirationThe uncaptured amount of an authorization was expired and reversed to the cardholder's account balance
captureAn amount was captured for the authorization
refundThe captured amount was fully refunded for the authorization
partial_refundThe captured amount was partially refunded for the authorization