Cancel Payment
Authentication: Bearer token required.
Endpoint: POST /api/v1/payments/{id}/cancel
Triggers cancelDeal on the diamond contract. Integration's node must have access to the payment's node. The signer wallet is the payment's owner wallet (OwnerWalletID when set, otherwise the payment wallet).
Request body
Empty JSON object {} is accepted (path id identifies the payment).
Response — 202 Accepted
{ "status": "accepted" }
| Status | Description |
|---|---|
| 403 | Insufficient permission to access payment's node |
| 404 | Payment not found |