Authorization / Confirmation
Information: authorization is a transaction that requires a second call to be considered complete - be it a confirmation or a reversal.
Creating an authorization
To perform a transaction that will follow the accounting movements mapped in the Authorization Rules, the POST /execution method must be used.
The user must inform the parameters:
transaction_type
The type of the transaction, as mapped in the Execution Rules
currency
The currency of the transaction
amount
The main amount of the transaction
param_account_1
The ID of the account used as parameter 1 of the transaction. Not mandatory
param_account_2
The ID of the account used as parameter 2 of the transaction. Not mandatory
settled_at
The date for the transaction to be accounted in further reports. If this parameter is not informed, the system will consider the date when the transaction was created.
external_id
User value set for later conciliation
Example of authorization creation:
Response Example:
Confirming an authorization
To confirm an authorization, the POST /authorization/{id}/confirm method must be used. The settled_at parameter can be optionally informed.
A transaction ID is generated for the confirmation and it is related to the previous authorization ID in the parent_id data of the transaction.
Example of an authorization confirmation:
Response Example:
Reverting an authorization
To revert an authorization, the POST /authorization/{id}/revert method must be used. The settled_at parameter can be optionally informed.
A transaction ID is generated for the reversal and it is related to the previous authorization ID in the parent_id data of the transaction.
Example of an authorization confirmation:
Response Example:
Retrieving unconfirmed authorizations
To query all authorizations that have not yet been confirmed (or reversed), the GET /authorization/unconfirmed method must be used.
Response Example:
Last updated