/cashout/check Query PIX Out
Background
/cashout/check is the PIX payout order query API provided to partners. Using the merchant order number mchOrderNo or the bank transaction ID e2eId (either one), the partner can query an order's current status, transaction amount, fee, payer/payee information, and bank transaction details.
The query scope is limited to the primary merchant ID in the X-Merchant-Id request header; subMerchantNo is not required. The order amount, amount actually credited, and fee are all in BRL.
WARNING
If the request times out or orderStatus cannot be obtained, do not make any order status determination.
Endpoint
| Item | Value |
|---|---|
| Method | GET |
| Path | /cashout/check |
| Content-Type | application/json |
| Purpose | Query a payout order |
Access Requirements
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 be identical to the merchant order number used when placing the order.platOrderNois returned only in the response and is not supported as a query criterion for this API.
Request Example
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=<Base64 digest>
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=<Base64 digest>
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"Response Fields
The API uses the standard status, msg, and data response structure. A successful query only means the system has returned the order's current information; it does not mean the payout order finally succeeded. The transaction result is determined by orderStatus.
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 | Payout order query result; may be omitted when the request fails at signature verification, protocol parsing, or order lookup. |
data. | string | 64 | Yes | Partner-specific. Sub-merchant ID that owns this payout order. |
data. | string | 128 | No | attach value the partner submitted when placing the original payout order; returned as-is if it was submitted, 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 payout order, see the enum below. |
data. | string | 64 | On success | PIX end-to-end transaction ID (bank transaction reference); returned when the order succeeds, an empty string for other statuses. |
data. | decimal | 25,2 | Yes | Payout order amount. |
data. | decimal | 25,2 | Yes | Amount actually credited to the payee; may be 0 before the transaction completes. |
data. | decimal | 25,2 | Yes | Payout 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 | CNPJ of the sending party. |
data. | string | 128 | Yes | Name of the sending party. |
data. | string | 64 | Yes | Payee's 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's name. |
data. | string | 64 | Yes | Payee's 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
| Value | Description | Final state |
|---|---|---|
PENDING | Processing; the payout order is still being executed — keep querying or wait for the asynchronous notification. | No |
SUCCESS | Payout succeeded; the payee has been credited; if a refund occurs later, the order status changes to REFUND. | Yes |
FAILED | Payout 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;
amountis the credited amount of this refund andrefundis the cumulative refunded principal.Total Amount
Response Example
{
"status": 200,
"msg": "sucesso",
"data": {
"subMerchantNo": "SUBMERCHANT0001",
"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"
}
}