Reversal
Reverse a sale request.
Methods
POST
Reverses an existing pay direct sale.
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
direct:events
Retrieve sale resource details
A successful reversal of a sale request.
POST
Copied!
{
"Authorization": "Basic Auth",
"Content-Type": "application/vnd.worldpay.pay-direct-v1+json",
"Accept": "application/vnd.worldpay.pay-direct-v1+json"
}
{ "Authorization": "Basic Auth", "Content-Type": "application/vnd.worldpay.pay-direct-v1+json", "Accept": "application/vnd.worldpay.pay-direct-v1+json" }
202
Copied!
{
"_links": {
"direct:events": {
"href": "https://try.access.worldpay.com/payments/alternative/direct/events/{resource}"
},
"curies": [
{
"name": "direct",
"href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rel}",
"templated": true
}
]
}
}
{ "_links": { "direct:events": { "href": "https://try.access.worldpay.com/payments/alternative/direct/events/{resource}" }, "curies": [ { "name": "direct", "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rel}", "templated": true } ] } }