Skip to main content
Version: 3.0.0 (current)

Prefill data

Sessions can be prefilled with data that the user would otherwise enter themselves. Simply provide information in the data object as documented in Create session.

The following data can be provided:

  • Company identification number
  • Billing details & address
  • Shipping details & address

Checkout data example‚Äč

In the POST request to the Create session endpoint, add as much data to the data object as you want:

{
"data": {
"order": {
"currency": "string",
"amountIncVat": 0,
"cart": [
{
"productType": "physical",
"reference": "testproduct1",
"name": "Test product",
"quantity": 2,
"quantityUnit": "pc",
"unitPrice": 1200,
"taxRate": 2500,
"discountPercentage": 1000
}
]
},
"company": {
"data": {
"cin": "123456790"
}
},
"billing": {
"data": {
"firstName": "Test",
"lastName": "Testsson"
}
},
"shipping": {
"data": {
"firstName": "Test",
"lastName": "Testsson"
}
}
}
}