Events
PayPal event query.
Methods
GET
Queries a Action to Pay event with a resource, or with a transactionReference 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
Query using transactionReference and entity producing a Sale resource with a lastEvent of 'pendingAuthorization'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'authorized'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'sentForSettlement'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'sentForRefund'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'refundFailed'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'refused'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'error'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'captureFailed'
Query using transactionReference and entity producing a sale resource with a lastEvent of 'cancelled'
Query using transactionReference and entity producing a Sale resource with a lastEvent of 'pendingAuthorization'
GET
Copied!
{
"Authorization": "Basic Auth",
"Accept": "application/vnd.worldpay.paypal-v1+json"
}
{ "Authorization": "Basic Auth", "Accept": "application/vnd.worldpay.paypal-v1+json" }
200
Copied!
{
"lastEvent": "pendingAuthorization",
"_links": {
"action:events": {
"href": "https://try.access.worldpay.com/payments/alternative/action/paypal/events/{encryptedParams}"
},
"curies": [
{
"name": "action",
"href": "https://try.access.worldpay.com/payments/alternative/action/paypal/dummyDoc/{rel}",
"templated": true
}
]
}
}
{ "lastEvent": "pendingAuthorization", "_links": { "action:events": { "href": "https://try.access.worldpay.com/payments/alternative/action/paypal/events/{encryptedParams}" }, "curies": [ { "name": "action", "href": "https://try.access.worldpay.com/payments/alternative/action/paypal/dummyDoc/{rel}", "templated": true } ] } }