For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cancel Payment

Cancels a pending payment. Triggers the payment.canceled webhook event.

POST /v1/api/payments/:id/cancel

Required scope: payments:create


Path parameters

Parameter
Type
Description

id

string

Payment UUID or short ID


Example

curl -X POST https://apipay.byastra.ai/v1/api/payments/pXk9mQ/cancel \
  -H "X-Api-Key: ap_live_your_api_key"

Response 200 OK

Returns the updated payment object with "status": "CANCELED".

Last updated