Events
Pay Direct event query.
Methods
GET
Queries a pay direct event with a resource, or with a Transaction Reference and entity
Responses
Response schema
Copied!
{
"type": "object",
"properties": {
"_links": {
"type": "object",
"format": "hal+json"
},
"outcome": {
"type": "string"
}
},
"required": [
"_links",
"outcome"
]
}
{ "type": "object", "properties": { "_links": { "type": "object", "format": "hal+json" }, "outcome": { "type": "string" } }, "required": [ "_links", "outcome" ] }
Examples
Sale resource with a lastEvent of 'authorized'
GET
Copied!
{
"Authorization": "Basic Auth",
"Accept": "application/vnd.worldpay.pay-direct-v1+json"
}
{ "Authorization": "Basic Auth", "Accept": "application/vnd.worldpay.pay-direct-v1+json" }
200
Copied!
{
"lastEvent": "authorized",
"_links": {
"direct:events": {
"href": "https://try.access.worldpay.com/payments/alternative/direct/events/{resource}"
},
"direct:reversal": {
"href": "https://try.access.worldpay.com/payments/alternative/direct/reversals/{resource}"
},
"curies": [
{
"name": "direct",
"href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rel}",
"templated": true
}
]
}
}
{ "lastEvent": "authorized", "_links": { "direct:events": { "href": "https://try.access.worldpay.com/payments/alternative/direct/events/{resource}" }, "direct:reversal": { "href": "https://try.access.worldpay.com/payments/alternative/direct/reversals/{resource}" }, "curies": [ { "name": "direct", "href": "https://try.access.worldpay.com/rels/payments/alternative/direct/{rel}", "templated": true } ] } }