Cancels a payment intent.
/payment-intent/{payment_intent_id}Cancels (expires) a payment intent that has not yet been paid.
This is the only update operation available on a payment intent through the public API.
Path Parameters
Payment intent unique identifier
Body application/json
New status for the payment intent. Only cancelled is allowed, used to cancel/expire a payment intent that has not yet been paid.
Response
No content.
Payment intent cancelled successfully.
Bad request.
Only required fields are validated.
Unique alphanumeric human readable error code
Brief summary of the reported issue
Array of errors.
The object type varies depending on the error context.
Unauthorized
Unique alphanumeric human readable error code
Brief summary of the reported issue
Array of errors.
The object type varies depending on the error context.
Not found
Unique alphanumeric human readable error code
Brief summary of the reported issue
Array of errors.
The object type varies depending on the error context.
Unprocessable entity.
Potential business error.
Unique alphanumeric human readable error code
Brief summary of the reported issue
Array of errors.
The object type varies depending on the error context.
Internal server error
Brief summary of the reported issue
Array of errors.
The object type varies depending on the error context.