Copy PageCreate a PayPal Orderpost https://sandbox.comcarde.com/v1/paypal/ordersBody ParamsThe information provided here will be used to create a new order with PayPal.Create PayPal Order requestamountint64required1 to 999999999999999Amount in a currency to be used for the transaction. In the lowest denomination of the currency of the payment. This means that 1234 in GBP represents £12.34.currencyCodestringrequiredCurrency code of the payment (ISO 4217)intentstringenumDefaults to captureBy default payments against an order will be captured in a single step, but you can choose to split the authorization and the capture of the order. authorize - if you intend to first authorize using POST /paypal/orders/{orderId}/payments with an intent of authorize then capture the authorized payment using POST /paypal/orders/{orderId}/payments with an intent of capture capture - If you intend to capture immediately using POST /paypal/orders/{orderId}/payments with an intent of capture captureauthorizecaptureAllowed:authorizecapturecustomerOrderCodestringlength between 1 and 50Merchant provided unique identifier for the order. Please use only letters, numbers, spaces and these symbols: '[]()@?!\-/.,_&*:;+=displayNamestringlength between 1 and 255Business name which overrides the name in the PayPal account. Please use only letters, numbers, spaces and these symbols: '[]()@?!\-/.,_&*:;+=localestringThe locale used during PayPal payment (BCP 47).invoiceIdstringlength between 1 and 255Merchant provided invoice number for the order. Please use only letters, numbers, spaces and these symbols: '[]()@?!\-/.,_&*:;+=vaultbooleanRequests for the user's PayPal wallet to be vaulted by PayPal. If the customer agrees when redirected to PayPal, and if the payment is successful, a vaultId will be made available. This is false by default.truetruefalsereturnUrlstringThe URL to return the customer to upon successful approval of a payment on the PayPal site. Mandatory if vaulting is requested.cancelUrlstringThe URL to return the customer to upon cancellation of the request on the PayPal site. Mandatory if vaulting is requested.enableShippingAddressbooleanDictates display of shipping address selection during PayPal payment. If an address is supplied in shippingAddressOverride it will be displayed regardless of the value of this field.truetruefalseshippingAddressEditablebooleanDictates display of shipping address selection during PayPal payment regardless of if a shipping address override is present.falsetruefalseshippingAddressOverrideobjectDetails of the destination to ship the items too.shippingAddressOverride objectlineItemsarray of objectslineItemsADD objectcustomerobjectCustomer's account details with the merchant.customer objectotaobjectDetails of the booked transportation. Only required if you're an online travel agency.ota objectcashierIdstringFor use by BR-DGE Cashier to link the transaction to a particular Cashier instance.customMetadataobjectOptional custom metadata string fields for the transaction. Up to 25 fields can be included with the following constraints: The field name may not be empty or have leading or trailing whitespace, and can consist of upper and lowercase letters, numbers, space, underscore "_", hyphen "-" and single quote "'". Maximum string length of either field name and field value is 200 chars.Custom Metadata for the transaction. objectriskInstrumentsobjectMap of optional risk instrument objects which can be used to pass risk information to PSPs or risk enginesriskInstruments objectcustomerIdstringlength ≤ 255The ID of the customer in your system. Please use only letters, numbers, spaces and these symbols: '[]()@?!\-/.,_&*:;+=customerIpAddressstring^$|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|::(ffff(:0{1,4})?:)?((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))$IP address of the customer (IPv4 or IPv6)vaultIdstringlength between 1 and 255Vault ID generated by PayPal referring to the customer's stored PayPal wallet.Responses 201Order created. You can now redirect your customer to the provided URL. 400Bad request - the request was in an invalid format or contained invalid information. If have any questions about why you are receiving these responses, please raise a ticket with support on the BR-DGE Support Portal at https://docs.br-dge.io/docs/support#contact-support with the id from the response so we track down the individual requests on our end. 401Unauthorized request. 500An internal server error occurred upstream while processing the request. If you have any questions about why you are receiving these responses, please raise a ticket with support on the BR-DGE Support Portal at https://docs.br-dge.io/docs/support#contact-support with the ID from the response so we track down the individual requests on our end.Updated 7 months ago Get the status of a payoutGet the details of a PayPal Order.Did this page help you?YesNo