Skip to content

/pix-automatico/cashin/detail Get Debit Order Details ​

Background ​

Returns the data and status of a single debit order of the current merchant.

A debit order can be located by any of the following three identifiers; provide at least one. If several are provided, they must refer to the same debit order:

  • platOrderNo: the platform order number of the debit order.
  • mchOrderNo: the merchant order number passed when the debit order was created.
  • e2eId: the Pix EndToEndId of the debit order; only successfully debited debit orders have one.

The debit result is determined by orderStatus.

When a composite QR code with an embedded first payment (AUTHORIZATION_WITH_PAYMENT_QRCODE, STATIC_QRCODE) is created, a debit order whose cashinType is QRCODE is created at the same time; use this endpoint to query the result of that first payment. See First Payment.

Endpoint ​

ItemValue
MethodGET
Path/pix-automatico/cashin/detail
Content-Typeapplication/json
PurposeQuery a single debit order

Authentication ​

Uses the common signature authentication (ES256 request signing). See Authentication and Request Signing.

Request Fields ​

For authentication headers, see Authentication; they are not listed in the table below.

FieldLocationTypeLengthRequiredDescription
platOrderNoQuerystring64ConditionalPlatform order number of the debit order, returned when the debit order is created or when a QR code with a first payment is generated; provide at least one of this field, mchOrderNo, and e2eId.
mchOrderNoQuerystring64ConditionalMerchant order number passed when the debit order was created; for a first payment (QRCODE), the merchant order number passed when the QR code was generated; provide at least one of this field, platOrderNo, and e2eId.
e2eIdQuerystring64ConditionalPix EndToEndId of the debit order, starting with E, generated after the debit succeeds (orderStatus is SUCCESS); provide at least one of this field, platOrderNo, and mchOrderNo.

This endpoint has no request body.

Request Examples ​

Example 1: Query by platform order number

http
GET /pix-automatico/cashin/detail?platOrderNo=PAC202610250000000001 HTTP/1.1
X-Merchant-Id: 2492265300
X-Timestamp: 1787011200
X-Nonce: a9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"

Example 2: Query by merchant order number

http
GET /pix-automatico/cashin/detail?mchOrderNo=CASHIN20261025000001 HTTP/1.1
X-Merchant-Id: 2492265300
X-Timestamp: 1787011200
X-Nonce: a9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"

Example 3: Query by e2eId

http
GET /pix-automatico/cashin/detail?e2eId=E1234567820261103143000123456789 HTTP/1.1
X-Merchant-Id: 2492265300
X-Timestamp: 1787011200
X-Nonce: a9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Authorization: Signature keyId="v1",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="<ES256_SIGNATURE_BASE64>"

Response Fields ​

The endpoint uses the standard status, msg, and data response envelope.

FieldTypeLengthReturnedDescription
statusint4YesResponse code
msgstring128YesMessage corresponding to status
dataobjectN/AOn successDebit order object; may be omitted when the request fails at signature verification or protocol parsing.
data.mchOrderNostring64YesMerchant order number, the mchOrderNo passed when the debit order was created; for a first payment (QRCODE), the mchOrderNo passed when the QR code was generated.
data.platOrderNostring64YesPlatform order number of the debit order; it identifies this debit order for query, cancellation, and refund.
data.authorizationIdstring64YesID of the debit authorization it belongs to, generated by the Adopay system and globally unique within the Adopay system.
data.cashinTypestring16YesDebit order type: REGULAR (regular debit, automatic periodic debit under the authorization), RETRY (retry), or QRCODE (the payment embedded in the sign-up QR code, i.e. the first payment, paid by the payer scanning the code); see the overview enum summary.
data.attemptNumberint19YesWhich debit attempt of this period: 1 for the original debit order, and 2 to 4 for the 1st to 3rd retries respectively; 1 for the first payment (QRCODE).
data.originPlatOrderNostring64NoPlatform order number of the original debit order, i.e. the platOrderNo of the debit order of this period's first debit attempt (attemptNumber is 1); returned only for retry debit orders (cashinType is RETRY), and null for regular debit orders. See Debit Retry.
data.scheduledDatestring10NoScheduled debit date, i.e. the date on which the payer's bank actually debits the payer's account, in the format YYYY-MM-DD (a date in the America/Sao_Paulo time zone); a first payment (QRCODE) is paid by the payer scanning the code and has no scheduled debit date, so it is null.
data.amountdecimal25,2YesDebit amount, two decimal places. For a first payment, the amount agreed when the QR code was generated.
data.payAmountdecimal25,2NoAmount actually paid by the payer, two decimal places; returned only when orderStatus is SUCCESS, otherwise null. Equal to amount. The refund limit is based on this field.
data.e2eIdstring64NoPix EndToEndId of the debit order, starting with E; returned only when orderStatus is SUCCESS, otherwise null.
data.orderStatusstring16YesDebit result status; see the enum below. Use this field alone to determine the debit result.
data.createdAtint19YesCreation time, Unix timestamp in seconds.
data.payTimeint19NoDebit success time (for a first payment, the payment settlement time), Unix timestamp in seconds; null if not successful.
data.failureReasonstring32NoDebit failure reason, returned only when orderStatus is FAILED; see the enum below; null for other statuses.
data.cancellationobjectN/ANoCancellation information, recording the most recent cancellation request and its processing progress; see Cancellation Request; null if a cancellation was never initiated.
data.cancellation.statusstring16YesCancellation request status: PENDING (in progress), SUCCESS (in effect), or FAILED (rejected). Whether the order is cancelled is determined by orderStatus.
data.cancellation.reasonstring32YesCancellation reason; for the values see the overview enum summary.
data.cancellation.requestedAtint19YesTime the cancellation request was accepted, Unix timestamp in seconds; when the payer cancels at the bank, the time at which Adopay recorded that cancellation.
data.cancellation.cancelledAtint19NoTime the cancellation took effect, Unix timestamp in seconds; null when cancellation.status is not SUCCESS.
data.cancellation.failedAtint19NoTime the cancellation was rejected, Unix timestamp in seconds; null when cancellation.status is not FAILED.
data.retryobjectN/ANoRetry information, returned only when orderStatus is FAILED; null for other statuses. When failureReason is not SETTLEMENT_FAILURE, or the debit authorization's allowRetry is false, retryable is false, remainingRetries is 0, and retryDeadline is null.
data.retry.retryablebooleanN/AYesWhether a retry can currently be initiated for this period.
data.retry.remainingRetriesint19YesRemaining retries for this period; at most 3 per period.
data.retry.retryDeadlinestring10NoLatest date a retry can be made for this period, in the format YYYY-MM-DD (a date in the America/Sao_Paulo time zone), being the 7th calendar day after the original debit order's debit date; null where a retry is not possible (see the retry description).

data.orderStatus Debit Result Status Enum ​

ValueDescriptionFinal State
PENDINGCreated; the debit instruction is being submitted or awaiting acceptance; for a first payment (QRCODE), awaiting payment from the payerNo
SCHEDULEDScheduling accepted; awaiting the debit on the debit dateNo
SUCCESSDebit succeeded on the debit date, with the debit time in payTime; for a first payment, the payer has paid and the payment is settledYes
FAILEDThe debit could not be made; the reason is in failureReasonYes
CANCELLEDCancelled; the reason is in cancellation.reasonYes

data.failureReason Debit Failure Reason Enum ​

ValueDescriptionRetryable
SUBMISSION_FAILEDDebit instruction submission failed; it did not reach the payer's bankN/A: does not consume a retry; create a new regular debit order within the creation window
SCHEDULE_REJECTEDScheduling rejected, e.g. the amount exceeds the limit the payer set at their bankNo
SETTLEMENT_FAILUREDebit failed on the debit date, e.g. insufficient payer balanceYes when the debit authorization's allowRetry is true; see Debit Retry
PAYMENT_EXPIREDThe first payment (QRCODE) was still unpaid after the payment deadlineNo: the QR code must be generated again; see First Payment

Response Examples ​

Example 1: Debit succeeded

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "mchOrderNo": "CASHIN20261025000001",
    "platOrderNo": "PAC202610250000000001",
    "authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
    "cashinType": "REGULAR",
    "attemptNumber": 1,
    "originPlatOrderNo": null,
    "scheduledDate": "2026-11-03",
    "amount": 150.00,
    "payAmount": 150.00,
    "e2eId": "E1234567820261103143000123456789",
    "orderStatus": "SUCCESS",
    "createdAt": 1792929600,
    "payTime": 1793716200,
    "failureReason": null,
    "cancellation": null,
    "retry": null
  }
}

Example 2: Debit failed on the debit date (retryable)

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "mchOrderNo": "CASHIN20261125000002",
    "platOrderNo": "PAC202611250000000002",
    "authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
    "cashinType": "REGULAR",
    "attemptNumber": 1,
    "originPlatOrderNo": null,
    "scheduledDate": "2026-12-03",
    "amount": 150.00,
    "payAmount": null,
    "e2eId": null,
    "orderStatus": "FAILED",
    "createdAt": 1795608000,
    "payTime": null,
    "failureReason": "SETTLEMENT_FAILURE",
    "cancellation": null,
    "retry": {
      "retryable": true,
      "remainingRetries": 3,
      "retryDeadline": "2026-12-10"
    }
  }
}

Example 3: Debit order cancelled by the payee

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "mchOrderNo": "CASHIN20261025000001",
    "platOrderNo": "PAC202610250000000001",
    "authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
    "cashinType": "REGULAR",
    "attemptNumber": 1,
    "originPlatOrderNo": null,
    "scheduledDate": "2026-11-03",
    "amount": 150.00,
    "payAmount": null,
    "e2eId": null,
    "orderStatus": "CANCELLED",
    "createdAt": 1792929600,
    "payTime": null,
    "failureReason": null,
    "cancellation": {
      "status": "SUCCESS",
      "reason": "RECEIVER_USER_REQUESTED",
      "requestedAt": 1792929900,
      "cancelledAt": 1792929900,
      "failedAt": null
    },
    "retry": null
  }
}

Example 4: Payee's cancellation rejected; the debit order is debited as scheduled

orderStatus remains SCHEDULED and cancellation.status is FAILED; the debit order will be debited as scheduled on the debit date.

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "mchOrderNo": "CASHIN20261025000001",
    "platOrderNo": "PAC202610250000000001",
    "authorizationId": "0f8c1f3e-5b7a-4c0e-9a55-2d3b1a9c7e10",
    "cashinType": "REGULAR",
    "attemptNumber": 1,
    "originPlatOrderNo": null,
    "scheduledDate": "2026-11-03",
    "amount": 150.00,
    "payAmount": null,
    "e2eId": null,
    "orderStatus": "SCHEDULED",
    "createdAt": 1792929600,
    "payTime": null,
    "failureReason": null,
    "cancellation": {
      "status": "FAILED",
      "reason": "RECEIVER_USER_REQUESTED",
      "requestedAt": 1793372400,
      "cancelledAt": null,
      "failedAt": 1793372440
    },
    "retry": null
  }
}

Example 5: First payment of an immediate-payment QR code, payment succeeded

cashinType is QRCODE, and there is no scheduled debit date.

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "mchOrderNo": "AUTH20261009000002",
    "platOrderNo": "PAC202610090000000002",
    "authorizationId": "5b2a9c1e-7d4f-4e83-b6a0-1c9d8e7f6a52",
    "cashinType": "QRCODE",
    "attemptNumber": 1,
    "originPlatOrderNo": null,
    "scheduledDate": null,
    "amount": 150.00,
    "payAmount": 150.00,
    "e2eId": "E1234567820261009213500987654321",
    "orderStatus": "SUCCESS",
    "createdAt": 1791581400,
    "payTime": 1791581700,
    "failureReason": null,
    "cancellation": null,
    "retry": null
  }
}

Example 6: First payment still unpaid after the payment deadline

json
{
  "status": 200,
  "msg": "sucesso",
  "data": {
    "mchOrderNo": "AUTH20261009000002",
    "platOrderNo": "PAC202610090000000002",
    "authorizationId": "5b2a9c1e-7d4f-4e83-b6a0-1c9d8e7f6a52",
    "cashinType": "QRCODE",
    "attemptNumber": 1,
    "originPlatOrderNo": null,
    "scheduledDate": null,
    "amount": 150.00,
    "payAmount": null,
    "e2eId": null,
    "orderStatus": "FAILED",
    "createdAt": 1791581400,
    "payTime": null,
    "failureReason": "PAYMENT_EXPIRED",
    "cancellation": null,
    "retry": {
      "retryable": false,
      "remainingRetries": 0,
      "retryDeadline": null
    }
  }
}

Response Error Codes ​


Back to Pix Subscription Overview