Skip to content

/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 ​

ItemValue
MethodGET
Path/cashout/check
Content-Typeapplication/json
PurposeQuery a payout order

Access Requirements ​

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 be identical to the merchant order number used when placing the order. platOrderNo is returned only in the response and is not supported as a query criterion for this API.

Request Example ​

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

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

FieldTypeLengthReturnedDescription
statusint4YesResponse code
msgstring128YesMessage corresponding to status; sucesso on success.
dataobjectN/ANoPayout order query result; may be omitted when the request fails at signature verification, protocol parsing, or order lookup.
data.subMerchantNostring64YesPartner-specific. Sub-merchant ID that owns this payout order.
data.attachstring128Noattach value the partner submitted when placing the original payout order; returned as-is if it was submitted, empty otherwise.
data.mchOrderNostring32YesMerchant order number, corresponding to the mchOrderNo used at order creation.
data.platOrderNostring64YesPlatform order number.
data.orderStatusstring16YesCurrent status of the payout order, see the enum below.
data.e2eIdstring64On successPIX end-to-end transaction ID (bank transaction reference); returned when the order succeeds, an empty string for other statuses.
data.amountdecimal25,2YesPayout order amount.
data.receivedAmountdecimal25,2YesAmount actually credited to the payee; may be 0 before the transaction completes.
data.feedecimal25,2YesPayout fee.
data.fromIspbstring16NoISPB code of the paying bank or payment institution.
data.fromBankstring512YesName of the paying bank or payment institution.
data.fromCnpjstring64YesCNPJ of the sending party.
data.fromNamestring128YesName of the sending party.
data.toPixstring64YesPayee's 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's name.
data.toCpfCnpjstring64YesPayee's 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 ​

ValueDescriptionFinal state
PENDINGProcessing; the payout order is still being executed — keep querying or wait for the asynchronous notification.No
SUCCESSPayout succeeded; the payee has been credited; if a refund occurs later, the order status changes to REFUND.Yes
FAILEDPayout 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; amount is the credited amount of this refund and refundTotalAmount is the cumulative refunded principal.

Response Example ​

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

Response Error Codes ​