Cancel Payment by Operation ID
DELETE/pix/payments/by-operation/:id
Cancel a payment by its operation ID. This route works for payments in the SCHEDULED state. If the payment state is:
<ul>
<li>SCHEDULED: The payment state will change to CANCELED.
</ul>
Returns the payment with a state of CANCELED.
Request
Path Parameters
Payment operation ID.
Header Parameters
Sender Wallet UUID (if empty, your default Wallet UUID will be settled)
The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.
Possible values: [pt-BR
, en-US
]
Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.
The product ID is a UUID (v4) used to identify the Z.ro product configuration.
The product target user ID is a UUID (v4) used to identify what user account this request must be executed. Require: x-product-uuid.
Responses
- 200
- 400
- 401
- 404
- 422
Payment canceled.
- application/json
- Schema
- Example (from schema)
Schema
Payment ID.
Possible values: [CACC
, CASH
, CHAR
, CISH
, COMM
, CPAC
, LLSV
, LOAN
, MGLD
, MOMA
, NREX
, ODFT
, ONDP
, OTHR
, SACC
, SLRY
, SVGS
, TAXE
, TRAN
, TRAS
, CC
, PG
, CD
, CG
, CI
, PP
]
Payment account type.
Possible values: [PENDING
, WAITING
, WAITING_DELAYED
, CONFIRMED
, ERROR
, FAILED
, CANCELED
, SCHEDULED
]
Payment state.
Payment created at.
Payment canceled at.
Payment date.
{
"id": "f6e2e084-29b9-4935-a059-5473b13033aa",
"type": "CACC",
"state": "SCHEDULED",
"created_at": "2025-03-12T02:28:39.734Z",
"canceled_at": "2025-03-12T02:28:39.734Z",
"payment_date": "2025-03-12T02:28:39.734Z"
}
If any required params are missing or has invalid format or type.
User authentication failed.
If the payment id was not found.
If any required params are missing or has invalid format or type.