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 merchantOrderNo or the PIX end-to-end transaction ID e2eId (bank transaction reference), the partner can query an order's current status, transaction amount, fee, payer/payee information, and bank transaction details.

At least one of merchantOrderNo and e2eId must be provided. 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.

Endpoint ​

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

Access Requirements ​

Request Fields ​

FieldLocationTypeLengthRequiredDescription
X-Merchant-IdHeaderstring64YesPrimary merchant ID, read from the request header; isolates the order data of different partners.
X-TimestampHeaderint19YesUnix request timestamp in seconds, used to validate request freshness.
X-NonceHeaderstring64YesAnti-replay random string for the request.
DigestHeaderstring52YesRequest digest in the format SHA-256=<Base64 digest>; for a GET request without a body, computed over an empty byte string.
AuthorizationHeaderstringVariableYesES256 request signature information, where keyId is the partner key version.
merchantOrderNoQuerystring64ConditionalMerchant order number; provide at least one of this field or e2eId.
e2eIdQuerystring64ConditionalPIX end-to-end transaction ID; provide at least one of this field or merchantOrderNo.

Query Rules ​

  • If neither field is provided or both are blank, the request is rejected; each provided field must not exceed 64 bytes.
  • With only merchantOrderNo or only e2eId, the order is queried under the current primary merchant by the corresponding number.
  • When both are provided, the two numbers must match the same order; on mismatch, a record-not-found result is returned, with no fallback to querying by only one of them.
  • If the same query criterion matches multiple E2E orders, a query error is returned; an arbitrary order is never picked and returned.
  • merchantOrderNo 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.
  • If the bank transaction reference is not yet available, query with merchantOrderNo.

Request Example ​

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>"

To query by merchant order number, or when providing both numbers, use the same authentication headers and recompute the signature:

http
GET /cashout/check?merchantOrderNo=CASHOUT202608160001 HTTP/1.1
http
GET /cashout/check?merchantOrderNo=CASHOUT202608160001&e2eId=E1234567820260816000000000000001 HTTP/1.1

Response Fields ​

Business status: dataStatus is an integer; dataStatus = 200 means the business call succeeded, in which case dataMsg = "SUCCESS". Any value other than 200 indicates a business error; see dataMsg for the reason.

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.

FieldTypeLengthReturnedDescription
statusint4YesResponse code
msgstring128YesMessage corresponding to status
dataobjectN/ANoPayout order query result; may be omitted when the request fails at signature verification, protocol parsing, or order lookup.
data.subMerchantNostring64YesSub-merchant ID that owns this payout order.
data.attachstring128Yesattach value the partner submitted when placing the original payout order; returned as-is if it was submitted, empty otherwise.
data.merchantOrderNostring64YesMerchant order number, corresponding to the merchantOrderNo used at order creation.
data.platOrderNostring64YesPlatform order number.
data.orderStatusstring16YesCurrent status of the payout order.
data.e2eIdstring64NoPIX end-to-end transaction ID.
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.fromIspbstring16YesISPB code of the paying bank or payment institution.
data.fromIspbNamestring512YesName 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.toIspbNamestring512YesName 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.dataStatusint-YesResponse code
data.dataMsgstring128YesMessage corresponding 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.Yes
FAILEDPayout failed; check dataMsg for the failure reason.Yes

Response Example ​

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "subMerchantNo": "SUBMERCHANT0001",
    "attach": "merchant-data-001",
    "merchantOrderNo": "CASHOUT202608160001",
    "platOrderNo": "APS202608160000000001",
    "orderStatus": "SUCCESS",
    "e2eId": "E1234567820260816000000000000001",
    "amount": 100.25,
    "receivedAmount": 99.75,
    "fee": 0.50,
    "fromIspb": "87654321",
    "fromIspbName": "Example Payment Institution",
    "fromCnpj": "12345678000195",
    "fromName": "Example Merchant Ltda.",
    "toPix": "maria.oliveira@example.com",
    "toIspb": "12345678",
    "toIspbName": "Example Receiving Institution",
    "toName": "Maria Oliveira",
    "toCpfCnpj": "12345678901",
    "payTime": 1786887025,
    "dataStatus": 200,
    "dataMsg": "SUCCESS"
  }
}

Response Error Codes ​