Query PIX Out
Query PIX payout status by merchant order number.
Endpoint
GET/cashout/checkAuthentication
Merchant Credential. See Authentication.
Background
Merchants can query the current status, transaction amount, fee, payer and payee information, and bank transaction details of their own cashout orders by merchant order number mchOrderNo or bank transaction ID e2eId (either one).
A successful query means the system has returned the order's current information; it does not mean the cashout order ultimately succeeded. The transaction result is determined by orderStatus.
WARNING
If the request times out or orderStatus cannot be obtained, do not make any order status determination.
Request Fields
For authentication headers, see Authentication; they are not listed in the table below.
| Field | Location | Type | Length | Required | Description |
|---|---|---|---|---|---|
mchOrderNo | Query | string | 32 | Conditional | Merchant order number, i.e. the mchOrderNo passed at order creation; provide at least one of this and e2eId. |
e2eId | Query | string | 64 | Conditional | Pix end-to-end transaction ID (bank transaction reference); provide at least one of this and mchOrderNo. |
Query Rules
- Provide either
mchOrderNoore2eId(at least one); both ways use the same path. mchOrderNomust not exceed 32 bytes and must match the merchant order number used when the order was created.platOrderNois returned only in the response and is not supported as a query condition for this API.
Request Examples
Query by merchant order number:
GET /cashout/check?mchOrderNo=CASHOUT202608160001 HTTP/1.1
Content-Type: application/json
X-Merchant-Id: 92315566000120
X-Timestamp: 1786845600
X-Nonce: 550e8400-e29b-41d4-a716-446655440000
Digest: SHA-256=<Base64Digest>
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"Query by bank transaction ID:
GET /cashout/check?e2eId=E1234567820260816000000000000001 HTTP/1.1
Content-Type: application/json
X-Merchant-Id: 92315566000120
X-Timestamp: 1786845600
X-Nonce: 550e8400-e29b-41d4-a716-446655440000
Digest: SHA-256=<Base64Digest>
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"Response Fields
The API uses a unified status, msg, data response structure. A successful query means the system has returned the order's current information; it does not mean the cashout order ultimately succeeded. The transaction result is determined by orderStatus. See Response Status for the meaning of status.
Business status: dataStatus is an integer; dataStatus = 200 indicates the business succeeded, in which case dataMsg = "SUCCESS". Any value other than 200 indicates a business error; see dataMsg for the reason.
| Field | Type | Length | Returned | Description |
|---|---|---|---|---|
status | int | 4 | Yes | Response code. |
msg | string | 128 | Yes | Message corresponding to status; sucesso on success. |
data | object | N/A | No | Cashout order query result; may be absent when the request fails at the signature verification, protocol parsing, or order query stage. |
data. | string | 128 | No | The attach value passed by the merchant when the original cashout order was created; returned as-is if provided at order creation, empty otherwise. |
data. | string | 32 | Yes | Merchant order number, corresponding to the mchOrderNo used at order creation. |
data. | string | 64 | Yes | Platform order number. |
data. | string | 16 | Yes | Current status of the cashout order, see the enum below. |
data. | string | 64 | On success | Pix end-to-end transaction ID (bank transaction reference number); returned when the order succeeds, an empty string for other statuses. |
data. | decimal(25,2) | 25,2 | Yes | Cashout order amount. |
data. | decimal(25,2) | 25,2 | Yes | Amount actually credited to the payee; may be 0 before the transaction completes. |
data. | decimal(25,2) | 25,2 | Yes | Cashout fee. |
data. | string | 16 | No | ISPB code of the paying bank or payment institution. |
data. | string | 512 | Yes | Name of the paying bank or payment institution. |
data. | string | 64 | Yes | Payer CNPJ. |
data. | string | 128 | Yes | Payer name. |
data. | string | 64 | Yes | Payee Pix account or Pix Key. |
data. | string | 16 | Yes | ISPB code of the payee's bank or payment institution. |
data. | string | 512 | Yes | Name of the payee's bank or payment institution. |
data. | string | 128 | Yes | Payee name. |
data. | string | 64 | Yes | Payee CPF or CNPJ. |
data. | int | 19 | Yes | Payment time or order completion time, Unix timestamp in seconds. |
data. | string | 128 | Yes | Reason the order failed, e.g. Pix Not Found; returned when the order fails, an empty string for other statuses. |
data. | int | - | No | Response code |
data. | string | 128 | No | Corresponds to dataStatus |
orderStatus Enum
| Enum Value | Description | Final State |
|---|---|---|
PENDING | Processing; the cashout order is still being executed. Keep querying or wait for the asynchronous notification. | No |
SUCCESS | Cashout succeeded; the payee has been credited; if a refund occurs later, the order status changes to REFUND. | Yes |
FAILED | Cashout failed; see errMsg or dataMsg for the failure reason. | Yes |
REFUND | Refunded; a refund has occurred on this cashout. It can only be reached from SUCCESS, and it does not mean the order has been fully refunded; see the notes below. | Yes |
REFUND status notes
- State transition:
REFUNDcan only be reached fromSUCCESS. After a refund occurs, the cashout order moves fromSUCCESStoREFUND; orders inPENDINGorFAILEDnever enterREFUND. - Not necessarily a full refund:
REFUNDonly means that a refund has occurred on the cashout order, not that it has been fully refunded. To check whether it has been fully refunded, compare the cumulative refunded principalrefundwith the order'sTotal Amount amount. - Refund details: the principal, fee, and cumulative amounts of each refund are in the Cashout Refund Webhook;
refundAmountis the principal of this refund andrefundis the cumulative refunded principal.Total Amount
Response Examples
Successful order:
{
"status": 200,
"msg": "sucesso",
"data": {
"attach": "merchant-data-001",
"mchOrderNo": "CASHOUT202608160001",
"platOrderNo": "APS202608160000000001",
"orderStatus": "SUCCESS",
"e2eId": "E1234567820260816000000000000001",
"amount": 100.25,
"receivedAmount": 99.75,
"fee": 0.50,
"fromIspb": "87654321",
"fromBank": "ADOX INSTITUICAO DE PAGAMENTO LTDA",
"fromCnpj": "***.820.307/0002**",
"fromName": "DX MEIOS DE PAGAMENTOS LTDA",
"toPix": "ma***com",
"toIspb": "60701190",
"ispbName": "ITAÚ UNIBANCO S.A.",
"toName": "MARIA OLIVEIRA",
"toCpfCnpj": "123******01",
"payTime": 1786887025,
"errMsg": "",
"dataStatus": 200,
"dataMsg": "SUCCESS"
}
}Failed order:
{
"status": 200,
"msg": "sucesso",
"data": {
"attach": "merchant-data-001",
"mchOrderNo": "CASHOUT202608160002",
"platOrderNo": "APS202608160000000002",
"orderStatus": "FAILED",
"e2eId": "",
"amount": 100.25,
"receivedAmount": 0,
"fee": 0,
"fromIspb": "",
"fromBank": "",
"fromCnpj": "",
"fromName": "",
"toPix": "ma***com",
"toIspb": "60701190",
"ispbName": "",
"toName": "",
"toCpfCnpj": "",
"payTime": 1786887025,
"errMsg": "Pix Not Found",
"dataStatus": 200,
"dataMsg": "SUCCESS"
}
}