/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_, 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
| Item | Value |
|---|---|
| Method | GET |
| Path | /pix-automatico/cashin/detail |
| Content-Type | application/json |
| Purpose | Query 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.
| Field | Location | Type | Length | Required | Description |
|---|---|---|---|---|---|
platOrderNo | Query | string | 64 | Conditional | Platform 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. |
mchOrderNo | Query | string | 64 | Conditional | Merchant 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. |
e2eId | Query | string | 64 | Conditional | Pix 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
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
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
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.
| Field | Type | Length | Returned | Description |
|---|---|---|---|---|
status | int | 4 | Yes | Response code |
msg | string | 128 | Yes | Message corresponding to status |
data | object | N/A | On success | Debit order object; may be omitted when the request fails at signature verification or protocol parsing. |
data. | string | 64 | Yes | Merchant 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. | string | 64 | Yes | Platform order number of the debit order; it identifies this debit order for query, cancellation, and refund. |
data. | string | 64 | Yes | ID of the debit authorization it belongs to, generated by the Adopay system and globally unique within the Adopay system. |
data. | string | 16 | Yes | Debit 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. | int | 19 | Yes | Which 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. | string | 64 | No | Platform 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. | string | 10 | No | Scheduled 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. | decimal | 25,2 | Yes | Debit amount, two decimal places. For a first payment, the amount agreed when the QR code was generated. |
data. | decimal | 25,2 | No | Amount 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. | string | 64 | No | Pix EndToEndId of the debit order, starting with E; returned only when orderStatus is SUCCESS, otherwise null. |
data. | string | 16 | Yes | Debit result status; see the enum below. Use this field alone to determine the debit result. |
data. | int | 19 | Yes | Creation time, Unix timestamp in seconds. |
data. | int | 19 | No | Debit success time (for a first payment, the payment settlement time), Unix timestamp in seconds; null if not successful. |
data. | string | 32 | No | Debit failure reason, returned only when orderStatus is FAILED; see the enum below; null for other statuses. |
data. | object | N/A | No | Cancellation information, recording the most recent cancellation request and its processing progress; see Cancellation Request; null if a cancellation was never initiated. |
data. | string | 16 | Yes | Cancellation request status: PENDING (in progress), SUCCESS (in effect), or FAILED (rejected). Whether the order is cancelled is determined by orderStatus. |
data. | string | 32 | Yes | Cancellation reason; for the values see the overview enum summary. |
data. | int | 19 | Yes | Time 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. | int | 19 | No | Time the cancellation took effect, Unix timestamp in seconds; null when cancellation. is not SUCCESS. |
data. | int | 19 | No | Time the cancellation was rejected, Unix timestamp in seconds; null when cancellation. is not FAILED. |
data. | object | N/A | No | Retry information, returned only when orderStatus is FAILED; null for other statuses. When failureReason is not SETTLEMENT_, or the debit authorization's allowRetry is false, retryable is false, remaining is 0, and retryDeadline is null. |
data. | boolean | N/A | Yes | Whether a retry can currently be initiated for this period. |
data. | int | 19 | Yes | Remaining retries for this period; at most 3 per period. |
data. | string | 10 | No | Latest 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
| Value | Description | Final State |
|---|---|---|
PENDING | Created; the debit instruction is being submitted or awaiting acceptance; for a first payment (QRCODE), awaiting payment from the payer | No |
SCHEDULED | Scheduling accepted; awaiting the debit on the debit date | No |
SUCCESS | Debit succeeded on the debit date, with the debit time in payTime; for a first payment, the payer has paid and the payment is settled | Yes |
FAILED | The debit could not be made; the reason is in failureReason | Yes |
CANCELLED | Cancelled; the reason is in cancellation. | Yes |
data.failureReason Debit Failure Reason Enum
| Value | Description | Retryable |
|---|---|---|
SUBMISSION_ | Debit instruction submission failed; it did not reach the payer's bank | N/A: does not consume a retry; create a new regular debit order within the creation window |
SCHEDULE_ | Scheduling rejected, e.g. the amount exceeds the limit the payer set at their bank | No |
SETTLEMENT_ | Debit failed on the debit date, e.g. insufficient payer balance | Yes when the debit authorization's allowRetry is true; see Debit Retry |
PAYMENT_EXPIRED | The first payment (QRCODE) was still unpaid after the payment deadline | No: the QR code must be generated again; see First Payment |
Response Examples
Example 1: Debit succeeded
{
"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)
{
"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
{
"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. is FAILED; the debit order will be debited as scheduled on the debit date.
{
"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.
{
"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
{
"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