Examples

Price

Below is an example to make a price call. A price call is quite similar to an order call. In a price call, composed products or products with a configuration can be used.

Further reading
  1. Delivery Examples
  2. Product Examples
  3. Order Example
  4. Shipping en Delivery presets

Example Composed Product + Fixed file, with shipping method presets

{
  "error_email_addresses": [
    "${order.error.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}"
      },
      "delivery_date_preset": "cheapest",
      "shipping_method_preset": "cheapest"
    }
  ],
  "products": [
    {
      "customer_code": "forex-ds-direct-3mm-cut"
     }
  ]
}

Example Composed Product , with no date and shipping method

{
  "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}"
      }
    }
  ],
  "products": [
    {
      "customer_code": "forex-ds-direct-3mm-cut"
    }
  ]
}