The POST /payments/{id}/cancel call allows your platform to cancel a payment.
INVALID_PARAMS, PAYMENT_CANNOT_BE_CANCELED
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "cancel_reason": "item(s) delayed - cannot fulfill order"
}
{- "amount": 1000,
- "amount_refunded": 1000,
- "amount_disputed": 1000,
- "auto_capture": false,
- "capture_at": null,
- "create_time": 1510080179,
- "currency": "USD",
- "custom_data": null,
- "failure_reason": null,
- "fee_amount": 0,
- "fee_amount_refundable": 0,
- "id": "00000000-0000-0000-0000-0000767bf5cd",
- "order": null,
- "owner": {
- "id": "be2b42e5-b808-40ae-9bbe-3291ab493f57",
- "path": "/accounts/be2b42e5-b808-40ae-9bbe-3291ab493f57",
- "resource": "accounts"
}, - "path": "/payments/00000000-0000-0000-0000-0000767bf5cd",
- "payment_method": {
- "id": "00000000-6363-0000-0000-000008b93a6e",
- "path": "/payment_methods/00000000-6363-0000-0000-000008b93a6e",
- "resource": "payment_methods"
}, - "pending_reasons": [
- {
- "details": [ ],
- "reason_code": "PENDING_CAPTURE",
- "reason_message": "Payment pending capture."
}
], - "resource": "payments",
- "status": "canceled",
- "authorization_code": "0224241",
- "txnr_app_fee": null,
- "txnr_merchant": null,
- "initiated_by": "none",
- "api_version": "3.1",
- "reference_id": "d6a60610-3a7e-4b9d-b56f-9005b9cd18ac"
}