{
"id": 123,
"external_id": "XY123",
"user_id": 123,
"shipping_address_id": 12,
"billing_address_id": 23,
"date_bought": "2012-10-15T12:34:56.789Z",
"status": "new" / "confirmed" / "processing" / "manufacturing" / "pending" / "complaint" / "paused" / "change_goods" / "ready_to_ship" / "partially_shipped" / "shipped_pickup_station" / "awaiting_pick_up" / "shipped_unsuccessful" / "shipped" / "returned_to_sender" / "not_valid" / "canceled" / "finished" / "test" / "invalid",
"payment_status": "awaiting_payment" / "payment_received" / "payment_allocated" / "payment_partially_invoiced" / "payment_canceled" / "payment_failed" / "payment_refunded" / "cash_on_delivery" / "contract_defined",
"domain": "www.example.com",
"locale": "sl" / "en" / "de" / ... ,
"items": [
{
"item_id": 213,
"container_item_id": 15,
"quantity": 10,
"customization": {
"values": {
"key1": {
"type": "text" / "choices",
"value": [ "abc" ]
},
...
},
"configuration": {
// see item
}
},
"price_unconfigured": { complex_price },
"price_single": { complex_price },
"price_total": { complex_price },
"tax_class_id": 12,
"promotion":{
"applied_type":"PRODUCTS",
"type":"DISCOUNT",
"promotion_id":6,
"user_code":"Promotion_User_Code",
"promotion_rate":0.3
}
},
...
],
"shipping": {
"type": "free" / "simple" / "weight_based" / "flat_rate" / "item_number_based" / "price_based" / "international",
"name": { "__": "Shipping name" },
"shipping_id": 123,
"parcels": [
{
"cost": 123.456,
"repeats": 5,
"contents": [
{
"item_id": 123,
"quantity": 10
"weight_grams": 15
},
...
]
},
...
],
"messages": [
"message 1",
...
],
"was_embedded": true / false,
"cost": {
complex_price
},
"tracking": {
"tracking_number": "trackingNumber1234",
"company": "shippingCompany",
"tracking_link": "https://www.example.com/tracking/1234"
},
"promotion":{
"applied_type":"PRODUCTS",
"type":"DISCOUNT",
"promotion_id":6,
"user_code":"Promotion_Shipping_User_Code",
"promotion_rate":0.3
},
"allows_partial_shipping": true / false
},
"payment": {
"type": "unhandled" / "megapos" / "paypal_wp_standard" / "banka_koper",
"name": { "__": ... },
"payment_id": 123,
"cost": {
complex_price
}
},
"user_notes": "...",
"system_notes": "...",
"items_total": {
complex_price
},
"grand_total": {
complex_price
},
"tax_conf_snapshot": {
"zone": {
"id": 123,
"name": "EU",
"order_rank": 1,
"territory": {
"include_countries": [
{
"country_code": "US",
"include_states": [ "CA", "NY" ],
"exclude_states": [ "AL" ],
"include_post_code_prefixes": [ "94", "95 ],
"exclude_post_code_prefixes": [ "12" ],
"tax_number": "required" / "forbidden" / "any"
},
...
],
"exclude_countries": [ "GB", "AU" ],
"include_regions": [
{
"region_code": "EU",
"tax_number": "required" / "forbidden" / "any"
}
],
"exclude_regions": [ "EU", "001" ],
"tax_number": "required" / "forbidden" / "any"
},
"users": {
"user_type_ids": [ 1, 2, 3 ],
"include_null_type": true / false
}
},
"rates": [
{
"id": 1,
"name": { "__": "DDV" },
"tax_zone_id": 1,
"order_weight": 5,
"values": [
{ "tax_class_id": 1, "rate": 0.2 },
{ "tax_class_id": 2, "rate": 0.085 }
]
},
...
],
"classes": [
{
"id": 1,
"name": "Izdelki z običajnim DDV"
},
{
"id": 2,
"name": "Izdelki z znižanim DDV"
},
...
]
}
}
complex price:
{
"value": 108.45,
"currency": "EUR",
"base": 100.5,
"base_with_discounts": 90.45,
"base_with_taxes": 120.6,
"discounts_applied": [
{
"discount_id": 12,
"discount_name": "Promo: Get 10%",
"coupon_code": "PROMO10",
"base": 100.5,
"rate": 0.1,
"amount": 10.05
},
...
],
"taxes_applied": [
{
"tax_rate_id": 1,
"base": 90.45,
"rate": 0.2,
"amount": 18.09
},
...
]
}