Order Details object
Attributes
| Attribute | Type | Description |
|---|---|---|
consumer | Consumer required | The consumer who placed or is placing the order. |
billing | Contact | The consumer’s billing address. |
shipping | Contact | The consumer’s shipping address. |
courier | Shipping Courier | The consumer’s chosen shipping courier. |
items | Item[] | An array of order items. |
discounts | Discount[] | An array of discounts. |
taxAmount | Money | The included tax amount, after applying all discounts. |
shippingAmount | Money | The shipping price charged to the consumer. |
Example Order Details object
UK
{"consumer": {"phoneNumber": "07000000000","givenNames": "Joe","surname": "Consumer","email": "test@example.com"},"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"}}