This is the initial point in the lifecycle of an order. A successful request response will contain a sessionId and an orderId string. The sessionId will be needed later for rendering the checkout iframe, fetching and updating the session etc.
The session will expire after 7 days.
When the end customer has succesfully completed the checkout flow and the order session is in state authorized, the system will yield an order entity managed by the /orders endpoint. The orderId can now be used for Order management.
An object consisting of the properties `delayMinutes` and `enabled`, `delayMinutes` must be a number between 0 and 10080 (7 days), `enabled` is a boolean. Example: { "delayMinutes": 180, "enabled": true }.
countrystring
Country code such as `SE`, `FI` etc (ISO 3166-1 alpha-2).
currencystring
Example `SEK`, `NOK` (ISO 4217 alpha).
customerobject
All customer information.
Show child attributes
companyIdstringOptional
Company registration number.
emailstringOptional
Customer email address.
firstNamestringOptional
Customer first name.
lastNamestringOptional
Customer last name.
phonestringOptional
Customer phone number.
reference1stringOptional
Reference field 1.
reference2stringOptional
Reference field 2.
ssnstringOptional
Social security number.
localestring
Specify language for the checkout, `sv-SE`, `da-DK` etc (BCP 47).
metadataobjectOptional
Merchant may send a key/value object literal for internal use. Example: { "property1": "value1", "property2": "value2" }.
orderLinesarray
An array of order lines.
Show child attributes
descriptionstring
Product name, description etc.
quantityinteger
Non negative number.
referencestringOptional
SKU or product reference.
totalAmountinteger
Total amount in minor units.
totalVatAmountinteger
Total VAT amount in minor units.
typestring
Type of order line: `physical`, `shippingFee`, `discount`, `giftCard`.
unitDiscountAmountintegerOptional
Discount per unit in minor units.
unitPriceinteger
Price per unit in minor units.
vatinteger
VAT rate in minor units (e.g., 2500 for 25%).
referencestringOptional
This property can be used for merchant order reference and will be visible on the invoice. Maximum of 50 characters.
settingsobject
An object containing various setting possibilities.
Show child attributes
customerobjectOptional
Show child attributes
allowShippingAddressbooleanOptional
Allow customer to enter shipping address.
showNameFieldsbooleanOptional
Show name fields in checkout.
showShippingAddressContactbooleanOptional
If true, show an Order recipient section where the customer can add the recipient's first
name, last name, email, and phone number. The details are stored in
customer.shippingAddress.contact. If false, the section is hidden.
securityobjectOptional
Show child attributes
levelintegerOptional
Security level (100-500). Higher values require more verification.
requireClientValidationbooleanOptional
Whether client-side validation is required.
validationSuccessOnTimeoutbooleanOptional
Whether to treat timeout as successful validation.
urlsobjectOptional
Show child attributes
confirmationstringOptional
URL to redirect after successful checkout. Use `{session.id}` placeholder.
notificationstringOptional
Webhook URL for notifications.
privacystringOptional
URL to privacy policy.
termsstringOptional
URL to terms and conditions.
validatestringOptional
URL for order validation webhook.
settlementReferencestringOptional
Maximum of 50 characters.
sourcestringOptional
A string that should either be `pos` or `online`.
storeIdstringOptional
Only needed in case of multiple stores with same country and currency.
tokenizebooleanOptional
If `true` a customer token will be created that can be used for recurring purchases.