Cancel Payment Link
Cancel an active payment link
POST
Cancel Payment Link
Cancel Payment Link
Cancel an active payment link to prevent it from being used. Only links withactive status can be cancelled.
Authentication
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Payment link ID (e.g., plink_abc123xyz) |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
reason | string | No | Reason for cancellation (max 500 chars) |
Response
All monetary amounts are integers in cents (e.g., 4995 = $49.95).
Example
Cancellation Rules
| Current Status | Can Cancel? | Notes |
|---|---|---|
active | Yes | Status changes to cancelled |
paid | No | Use Create Refund instead |
expired | No | Already expired |
cancelled | No | Already cancelled |
Webhooks
Cancelling a link triggers apayment_link.cancelled webhook event. See Webhooks Reference for details.
Errors
| Status Code | Error Code | Description |
|---|---|---|
| 400 | invalid_state | Link is not in cancellable state |
| 401 | unauthorized | Invalid or missing API key |
| 404 | not_found | Payment link not found |
Related
Cancel Payment Link
