- Home
- All APIs
- Access Worldpay
- API reference
- PayPal
- Sale
- Partial Refund
Partial Refund
Perform a PayPal partial refund request for a successful transaction.
Methods
POST
Perform a partial refund request.
Request
Copied!
{
"type": "object",
"properties": {
"value": {
"type": "object",
"properties": {
"amount": {
"type": "integer"
},
"currency": {
"type": "string"
}
},
"required": [
"amount",
"currency"
]
},
"reference": {
"type": "string"
}
},
"required": [
"value",
"reference"
]
}
{ "type": "object", "properties": { "value": { "type": "object", "properties": { "amount": { "type": "integer" }, "currency": { "type": "string" } }, "required": [ "amount", "currency" ] }, "reference": { "type": "string" } }, "required": [ "value", "reference" ] }
Responses
Response schema
Copied!
{
"type": "object",
"properties": {
"_links": {
"type": "object",
"format": "hal+json"
}
},
"required": [
"_links"
]
}
{ "type": "object", "properties": { "_links": { "type": "object", "format": "hal+json" } }, "required": [ "_links" ] }
Examples
Link relationship
action:events
Retrieve partial refund resource details
paypal partial refund with an outcome of partial refund status query uri
POST
Copied!
{
"Authorization": "Basic Auth",
"Content-Type": "application/vnd.worldpay.paypal-v1+json",
"Accept": "application/vnd.worldpay.paypal-v1+json"
}
{ "Authorization": "Basic Auth", "Content-Type": "application/vnd.worldpay.paypal-v1+json", "Accept": "application/vnd.worldpay.paypal-v1+json" }
202
Copied!
{
"_links": {
"action:events": {
"href": "https://try.access.worldpay.com/payments/alternative/action/paypal/events/{encryptedParams}"
},
"curies": [
{
"name": "action",
"href": "https://try.access.worldpay.com/rels/payments/alternative/action/paypal/dummyDoc/{rel}",
"templated": true
}
]
}
}
{ "_links": { "action:events": { "href": "https://try.access.worldpay.com/payments/alternative/action/paypal/events/{encryptedParams}" }, "curies": [ { "name": "action", "href": "https://try.access.worldpay.com/rels/payments/alternative/action/paypal/dummyDoc/{rel}", "templated": true } ] } }