Examples Order
Below is an example of the most simple solution for an order. In both instances, a composed product is used. It is possible to change the products used, by checking our other examples. For the delivery presets are used, but here it is also possible to set your delivery preferences.
Example Composed Product + Fixed file.
{
"order_type": "test",
"error_email_addresses": [
"${order.error.email}"
],
"callback_url": [
"${order.webhook}"
],
"id": "${order.id}",
"reference": "${order.reference}",
"contact_email": "${order.contact_email}",
"deliveries": [
{
"address": {
"company_name": "${delivery.company}",
"first_name": "${delivery.firstname}",
"last_name": "${delivery.lastname}",
"street": "${delivery.address.street}",
"house_number": "${delivery.address.house_number}",
"addition": "${delivery.address.addition}",
"postal_code": "${delivery.address.postalcode}",
"city": "${delivery.address.city}",
"country": "${delivery.address.country}",
"phone": "${delivery.address.phone}",
"email": "${delivery.address.email}"
},
"delivery_date_preset": "cheapest",
"shipping_method_preset": "cheapest"
}
],
"products": [
{
"customer_code": "forex-ds-direct-3mm-cut",
"files": [
{
"uri": "https://www.dropbox.com/s/p2ye6w9j1a012tc/Awesome%20Wandkleed.jpg?dl=1",
"fill": true
}
]
}
]
}
Example Composed Product + Uploader
{
"order_type": "test",
"error_email_addresses": [
"${order.error.email}"
],
"callback_url": [
"${order.webhook}"
],
"id": "${order.id}",
"reference": "${order.reference}",
"contact_email": "${order.contact_email}",
"deliveries": [
{
"address": {
"company_name": "${delivery.company}",
"first_name": "${delivery.firstname}",
"last_name": "${delivery.lastname}",
"street": "${delivery.address.street}",
"house_number": "${delivery.address.house_number}",
"addition": "${delivery.address.addition}",
"postal_code": "${delivery.address.postalcode}",
"city": "${delivery.address.city}",
"country": "${delivery.address.country}",
"phone": "${delivery.address.phone}",
"email": "${delivery.address.email}"
},
"delivery_date_preset": "cheapest",
"shipping_method_preset": "cheapest"
}
],
"products": [
{
"customer_code": "forex-ds-direct-3mm-cut",
"uploader": true
}
]
}