Cookie Consent by Free Privacy Policy Generator Update cookies preferences

Attributes

AttributeTypeDescription
consumer Consumer requiredThe consumer who placed or is placing the order.
billingContactThe consumer's billing address.
shippingContactThe consumer's shipping address.
courierShipping CourierThe consumer's chosen shipping courier.
itemsItem[]An array of order items.
discountsDiscount[]An array of discounts.
taxAmountMoneyThe included tax amount, after applying all discounts.
shippingAmountMoneyThe shipping price charged to the consumer.

Example Order Details object

{
  "consumer": {  
    "phoneNumber": "07000000000",
    "givenNames": "Joe",
    "surname": "Consumer",
    "email": "[email protected]"
  },
  "billing": {  
    "name": "Joe Consumer",
    "line1": "1 Market Street",
    "suburb": "MANCHESTER",
    "postcode": "M4 3AT",
    "countryCode": "GB",
    "phoneNumber": "07000000000"
  },
  "shipping": {  
    "name": "Joe Consumer",
    "line1": "Trafalgar House, 17-19 Cockspur St",
    "suburb": "LONDON",
    "postcode": "SW1Y 5BL",
    "countryCode": "GB",
    "phoneNumber": "07000000000"
  },
  "courier" : {
    "shippedAt" : "2019-01-01T00:00:00+01:00",
    "name" : "Parcelforce Worldwide",
    "tracking" : "AAAA1234567890",
    "priority" : "STANDARD"
  },
  "items": [  
    {
      "name": "T-Shirt",
      "sku": "12341234",
      "quantity": 1,
      "price": {
        "amount": "10.00",
        "currency": "GBP"
      }
    },
    {
      "name": "Jeans",
      "sku": "12341235",
      "quantity": 1,
      "price": {
        "amount": "20.00",
        "currency": "GBP"
      }
    }
  ],
  "discounts": [
    {
      "displayName": "10% Off Subtotal",
      "amount": {
        "amount": "3.00",
        "currency": "GBP"
      }
    }
  ],
  "taxAmount": {  
    "amount": "7.40",
    "currency": "GBP"
  },
  "shippingAmount": {  
    "amount": "10.00",
    "currency": "GBP"
  }
}