v1
latestOpenAPI 3.0.12026-07-24310590875.6 KBpayments
Cancel a payment
Cancel an existing payment.
You can cancel a payment only when the payment singleStatus is SCHEDULED. When BILL starts processing the payment, the payment singleStatus changes. At that point, you cannot cancel the payment. You can attempt to void the payment with POST /v3/payments/{paymentId}/void.
post/v3/payments/{paymentId}/cancel
Path parameters
paymentIdstring required
BILL-generated ID of the payment. The value begins with stp.
Example:{{payment_id}}
Headers
sessionIdstring nullable
API session ID generated with /v3/login
Example:{{session_id}}
devKeystring nullable
Developer key generated with your BILL developer account
Example:{{developer_key}}
Response
Cancel a payment response