If you don't want to proceed with a payment, you can send a full cancel request.
Note: You can only cancel a payment which is authorized. If the payment is settled, you must create a refund.
Security
BasicAuth
- Test (Try)https://try.access.worldpay.com/payments/authorizations/cancellations/{linkData}
- Livehttps://access.worldpay.com/payments/authorizations/cancellations/{linkData}
{ "reference": "full-cancellation-reference" }
Response
Response to cancel an authorization
{ "_links": { "cardPayments:events": { "href": "/payments/events/:linkData" }, "curies": [ { "name": "payments", "href": "/rels/payments/{rel}", "templated": true } ] } }