Skip to content

Query PIX Out ​

Query PIX payout status by merchant order number.

Endpoint ​

GET /cashout/check

Authentication ​

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.

FieldLocationTypeLengthRequiredDescription
mchOrderNoQuerystring32ConditionalMerchant order number, i.e. the mchOrderNo passed at order creation; provide at least one of this and e2eId.
e2eIdQuerystring64ConditionalPix end-to-end transaction ID (bank transaction reference); provide at least one of this and mchOrderNo.

Query Rules ​

  • Provide either mchOrderNo or e2eId (at least one); both ways use the same path.
  • mchOrderNo must not exceed 32 bytes and must match the merchant order number used when the order was created. platOrderNo is returned only in the response and is not supported as a query condition for this API.

Request Examples ​

Query by merchant order number:

http
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:

http
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.

FieldTypeLengthReturnedDescription
statusint4YesResponse code.
msgstring128YesMessage corresponding to status; sucesso on success.
dataobjectN/ANoCashout order query result; may be absent when the request fails at the signature verification, protocol parsing, or order query stage.
data.attachstring128NoThe attach value passed by the merchant when the original cashout order was created; returned as-is if provided at order creation, empty otherwise.
data.mchOrderNostring32YesMerchant order number, corresponding to the mchOrderNo used at order creation.
data.platOrderNostring64YesPlatform order number.
data.orderStatusstring16YesCurrent status of the cashout order, see the enum below.
data.e2eIdstring64On successPix end-to-end transaction ID (bank transaction reference number); returned when the order succeeds, an empty string for other statuses.
data.amountdecimal(25,2)25,2YesCashout order amount.
data.receivedAmountdecimal(25,2)25,2YesAmount actually credited to the payee; may be 0 before the transaction completes.
data.feedecimal(25,2)25,2YesCashout fee.
data.fromIspbstring16NoISPB code of the paying bank or payment institution.
data.fromBankstring512YesName of the paying bank or payment institution.
data.fromCnpjstring64YesPayer CNPJ.
data.fromNamestring128YesPayer name.
data.toPixstring64YesPayee Pix account or Pix Key.
data.toIspbstring16YesISPB code of the payee's bank or payment institution.
data.ispbNamestring512YesName of the payee's bank or payment institution.
data.toNamestring128YesPayee name.
data.toCpfCnpjstring64YesPayee CPF or CNPJ.
data.payTimeint19YesPayment time or order completion time, Unix timestamp in seconds.
data.errMsgstring128YesReason the order failed, e.g. Pix Not Found; returned when the order fails, an empty string for other statuses.
data.dataStatusint-NoResponse code
data.dataMsgstring128NoCorresponds to dataStatus

orderStatus Enum ​

Enum ValueDescriptionFinal State
PENDINGProcessing; the cashout order is still being executed. Keep querying or wait for the asynchronous notification.No
SUCCESSCashout succeeded; the payee has been credited; if a refund occurs later, the order status changes to REFUND.Yes
FAILEDCashout failed; see errMsg or dataMsg for the failure reason.Yes
REFUNDRefunded; 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

  1. State transition: REFUND can only be reached from SUCCESS. After a refund occurs, the cashout order moves from SUCCESS to REFUND; orders in PENDING or FAILED never enter REFUND.
  2. Not necessarily a full refund: REFUND only 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 principal refundTotalAmount with the order's amount.
  3. Refund details: the principal, fee, and cumulative amounts of each refund are in the Cashout Refund Webhook; refundAmount is the principal of this refund and refundTotalAmount is the cumulative refunded principal.

Response Examples ​

Successful order:

json
{
  "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:

json
{
  "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"
  }
}