After successfully requesting the cashout operation some validations will be made asynchronously, and the cashout might still be denied. The result from this validation, together with the confirmation key necessary for the confirmation request (next endpoint), will be sent to the webhook.
GET /v2/apm/pix/cashout
Search and retrieve cash-outs. Allows for batch reconciliation.
Request Fields
Name
Located in
Description
Mandatory
Type
apikey
header
API Key
yes
string
x-timestamp
header
Date/time of the request (used to prevent replay attacks)
yes
string
x-request-id
header
Random ID used to identify the request
yes
string
x-hmac-signature
header
HMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)
After the confirmation the cashout can still fail in some scenarios, so another notification will be sent to the configured webhook to inform if the cashout was completed successfully.
GET /v2/apm/pix/cashout/{txid}
Retrieve cashout data with the txid. In case of delay or failure of the webhook notification, this endpoint can be used to check the cashout status.
Request Fields
Name
Located in
Description
Mandatory
Type
apikey
header
API Key
yes
string
x-timestamp
header
Date/time of the request (used to prevent replay attacks)
yes
string
x-request-id
header
Random ID used to identify the request
yes
string
x-hmac-signature
header
HMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)
yes
string
Authorization
header
Bearer token for authentication
yes
string (bearerToken)
txid
path
Cashouts unique identifier
yes
string
Response Fields
Field
Type
Additional Information
txid
string
Unique identifier of the cashout operation
endToEnd
string
Unique end to end id for the pix transaction, will always be null until the confirmation of the cashout
Initial state. Cashout request created and undergoing validation. Account balance is locked during this phase.
1
Requested
Awaiting authorization confirmation from customer. Confirmation key auto-generated and sent via webhook. Auto-expires after configured timeout.
2
Authorized
Authorization confirmed and PIX order sent to processor. Detects and marks concurrent requests from the same receiver as failed.
3
Confirmed
PIX transaction successfully completed. Status confirmed via webhook callback from PIX processor. Final state.
4
Failed
Cashout failed due to one of multiple possible reasons: security validation failure, insufficient balance, limit exceeded, expired, concurrent request, or processing error.
5
Expired
Timeout expired while waiting for authorization confirmation. Treated as a failed transaction.
Cash-out Fail Reason
Code
Reason
Description
0
Security flag
The transaction was flagged and could not be processed due to security validation policies.
1
Without limit
The cashout amount exceeds the configured transaction limit for the account.
2
Without balance
Insufficient balance in the account to complete the cashout operation.
3
Expired
The cashout request has expired and is no longer valid for processing.
4
Concurrency
Concurrent transaction detected. Another transaction is being processed simultaneously for the same account.
5
Processing failure
A system error occurred during the cashout processing. Please retry the operation.
6
Policy violation
The transaction could not be completed due to policy validation or compliance requirements.
7
Validation error
The transaction could not be processed due to internal validation or compliance check failures.