If you don't want to proceed with a payment, you can send a partial 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/partials/{linkData}
- Livehttps://access.worldpay.com/payments/authorizations/cancellations/partials/{linkData}
Request to partially cancel the authorization
{ "value": { "amount": 500, "currency": "EUR" }, "reference": "partial-cancel-reference" }
Response
Response to cancel an authorization
{ "_links": { "cardPayments:events": { "href": "/payments/events/:linkData" }, "cardPayments:partialCancel": { "href": "/payments/authorizations/cancellations/partials/:linkData" }, "cardPayments:partialSettle": { "href": "/payments/settlements/partials/:linkData" }, "curies": [ { "name": "payments", "href": "/rels/payments/{rel}", "templated": true } ] } }