PayPal
Create a PayPal Order
post/paypal/orders
Request body
Example request
{
"amount": 1234,
"currencyCode": "GBP",
"customerOrderCode": "ABC123",
"displayName": "Display Name",
"locale": "en-GB",
"invoiceId": "987654321",
"vault": true,
"enableShippingAddress": true,
"shippingAddressOverride": {
"address1": "Flat 1",
"address2": "Victoria House",
"town": "Edinburgh",
"county": "Lothian",
"postcode": "BH23 6AA",
"country": "GB",
"phoneNumber": "+44 123 1110000",
"buildingNumberOrName": "10a",
"recipientName": "John Smith"
},
"lineItems": [
{
"name": "T-Shirt",
"description": "A green t-shirt",
"quantity": 1,
"unitAmount": 1000,
"unitTax": 100
}
],
"customer": {
"accountId": "A12345N343",
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@example.com",
"phoneNumber": "+44 123 1110000",
"country": "GB",
"creationTimestamp": "2022-01-30T10:10:10Z"
},
"ota": {
"type": "bus",
"serviceStartDate": "2022-01-30T10:10:10Z",
"serviceEndDate": "2022-01-30T10:10:10Z",
"startCountry": "GB",
"startCity": "Edinburgh",
"startPostcode": "BH23 6AA"
},
"cashierId": "90e7aff7-7e57-459a-a46e-9258c8abc99b",
"customMetadata": {
"accountAge": "2",
"transactionType": "Other"
},
"customerId": "Customer001",
"customerIpAddress": "123.100.100.200",
"vaultId": "0tb28273r6584005e"
}Response
Order created. You can now redirect your customer to the provided URL.
Example response
{
"code": "1000",
"id": "463ac35c9f6413ad48485a3953bb6124",
"orderId": "987654321",
"status": "CAPTURED",
"redirectUrl": "987654321",
"creationTimestamp": "2022-01-30T10:10:10Z",
"riskAssessments": {
"merchant": {
"decision": "APPROVED",
"retryable": true,
"rawResponse": {
"httpStatusCode": 200
}
}
},
"cashierId": "90e7aff7-7e57-459a-a46e-9258c8abc99b",
"psp": {
"name": "Checkout.com",
"transactionId": "6418da68-0b3d-4409-ab14-1ceb752b0b1f",
"switchAccountId": "switch-account-123",
"provisionedUserId": "Vx0H4pdAtPCz",
"additionalInfo": {
"customerFirstName": "John",
"customerLastName": "Smith",
"customerDateOfBirth": "2000-01-01",
"customerIpAddress": "123.100.100.200",
"customerId": "de5d7b4a-9410-40e1-85fd-8ceee23c9fd0",
"paysafecardCustomerId": "151743187547"
},
"rawPspResponses": [
{
"httpStatusCode": 200,
"pspName": "Checkout.com",
"headers": {
"content-type": [
"application/json"
]
}
}
]
},
"paymentId": "57f7f444-29ce-4230-8c7f-1c1fd85c8bc9"
}