Skip to content

Submit a payment partial refund request

Request

Send a partial refund request to return a portion of the settled amount of a payment to your customer.

Note: Send the amount to refund and the authorization currency in the body.

Security
BasicAuth
Path
linkDatastringrequired
Headers
WP-Api-Versionstringrequired

The API version

Value:"2024-06-01"
Example:2024-06-01
Bodyapplication/jsonrequired
referencestring, non-emptyrequired
valueobjectrequired

The value and currency.

{ "value": { "amount": 10, "currency": "GBP" }, "reference": "partial-refund-reference" }

Responses

Accepted

Bodyapplication/json
outcomestring
Value:"sentForPartialRefund"
paymentIdstring^[A-Za-z0-9_-]+$

Unique identifier generated by us for a single payment. Generated at authorization, and maintained through successive payment actions.

_actionsobject
Response
{ "outcome": "sentForPartialRefund", "paymentId": "payI-dUcet9fk4_X4qZU0hpU0", "_links": { "self": { "href": "https://try.access.worldpay.com/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9" } }, "_actions": { "partiallyRefundPayment": { "href": "https://try.access.worldpay.com/api/payments/eyJrIjoxLCJkIjoiN3VTNVpzK1h4UVFNL1R4aGZjSVV5TFFhMWZlNXRLOVM3M0k1MVdwN21PMXIySnNadTJ5YUhzZE45dDN5TDRnYk8rQk9PTzJzVWUxTkZUeXFBWjJZMUE9PSJ9/partialRefunds", "method": "POST" } } }