Cancel Payment Intent
POST /v1/payment_intents/:id/cancel
Overview
Cancels a specific payment intent using its unique identifier. This endpoint updates the intent's status to canceled.
Authorization
- Header:
Authorization: Bearer sk_test_907...de66
Request Details
Response Details
Response
The response returns a PaymentIntent object containing the updated details of the canceled payment intent.
Attributes
| Attribute | Type | Description |
|---|---|---|
id | string | Unique identifier for the payment intent (e.g., pay_t24c9qLoGieNDhvHVHWo). |
status | string | Current status of the payment intent (e.g., canceled). |
Example Response
- Success
{
"id": "pay_t24c9qLoGieNDhvHVHWo",
"status": "canceled"
}