Skip to content

Refund partial amount

Request

Send a partial refund request to return a portion of the settled amount to your customer. Send the amount to refund and the authorization currency in the body.

Security
BasicAuth
Path
linkDatastringrequired

Action link that's received in your request.

Headers
Content-Typestringrequired
Example:application/vnd.worldpay.payments-v7+json
Acceptstringrequired
Example:application/vnd.worldpay.payments-v7+json
Bodyapplication/vnd.worldpay.payments-v7+json
referencestring, [ 1 .. 128 ] characters^[-A-Za-z0-9]*$required

A reference generated by you to identify a payment throughout its lifecycle.

Example:"partial-refund-reference"
valueobjectrequired

An object that contains information about the value of the payment.

merchantobject

Contains information about the merchant.

fastRefundobject

Allows you to request a faster refund.

Request to perform a partial refund of the settlement

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

Responses

The partial refund has been accepted

Bodyapplication/vnd.worldpay.payments-v7+json
paymentIdstring, [ 21 .. 36 ] characters^[A-Za-z0-9_-]+$

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

Example:"payI-dUcet9fk4_X4qZU0hpU0"
commandIdstring, [ 21 .. 36 ] characters^[A-Za-z0-9_-]+$

Unique identifier generated by us for a single instance of an interaction (command) with the Worldpay API.

Example:"cmdRvD-OxCyXgJLQ9_jbqXAC0"
Response

Response to partially refund an authorization

{ "paymentId": "payI-dUcet9fk4_X4qZU0hpU0", "commandId": "cmdwZ5y_rSV1VmjD6CpgCuXG0", "_links": { "cardPayments:events": { "href": "/payments/events/:linkData" }, "curies": [ { "name": "payments", "href": "/rels/payments/{rel}", "templated": true } ] } }