v1
latestOpenAPI 3.0.12026-07-2419554.1 KBOrders
Create order
Create a Scalapay order. The endpoint returns a token required to capture the payment and a checkoutUrl that redirects the customer to Scalapay Checkout, where the payment is authorized.
post/v2/orders
Headers
Idempotency-Keystring
Idempotency key used for retrying requests. Can be used for retrying failed requests.
Request body
Example request
{
"type": "online",
"frequency": {
"number": 1,
"frequencyType": "monthly"
},
"orderExpiryMilliseconds": 2400000,
"extensions": {
"industry": {
"travel": {
"startDate": "2024-01-01",
"endDate": "2024-10-01"
}
},
"type": {
"link": {
"notification": {
"phoneCountryCode": "+39",
"phoneNumber": "3470000000",
"preferredLanguage": "italiano",
"emailAddress": "test@scalapay.com",
"channels": [
"email",
"sms"
]
}
}
}
}
}Response
Successful order creation