PayPal
PayPal root resource, returns links to available PayPal actions.
Methods
GET
Retrieve links to next available actions.
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
resourceTree
A document showing possible interactions with the PayPal API.
action:sale
Perform a PayPal sale request.
action:events
Query a PayPal event.
Retrieve the PayPal top-level collection resource.
GEThttps://try.access.worldpay.com/payments/alternative/action/paypal
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" }
200
Copied!
{
"_links": {
"resourceTree": {
"href": "https://try.access.worldpay.com/rels/payments/alternative/action/paypal/resourceTree"
},
"action:sale": {
"href": "https://try.access.worldpay.com/payments/alternative/action/paypal/sale"
},
"action:events": {
"href": "https://try.access.worldpay.com/payments/alternative/action/paypal/sale"
},
"curies": [
{
"name": "action",
"href": "https://try.access.worldpay.com/rels/payments/alternative/action/paypal/{rel}",
"templated": true
}
]
}
}
{ "_links": { "resourceTree": { "href": "https://try.access.worldpay.com/rels/payments/alternative/action/paypal/resourceTree" }, "action:sale": { "href": "https://try.access.worldpay.com/payments/alternative/action/paypal/sale" }, "action:events": { "href": "https://try.access.worldpay.com/payments/alternative/action/paypal/sale" }, "curies": [ { "name": "action", "href": "https://try.access.worldpay.com/rels/payments/alternative/action/paypal/{rel}", "templated": true } ] } }