Cancel an active payment link
active status can be cancelled.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Payment link ID (e.g., plink_abc123xyz) |
| Parameter | Type | Required | Description |
|---|---|---|---|
reason | string | No | Reason for cancellation (max 500 chars) |
All monetary amounts are integers in cents (e.g., 4995 = $49.95).
| 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 |
payment_link.cancelled webhook event. See Webhooks Reference for details.
| 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 |