On demand order code examples

On demand orders are automatically booked by Shippit for a pickup as soon as possible, respecting store pick-and-pack time, for delivery within 3 hours.

{
  "order": {
    "courier_type": "on_demand",
    "delivery_address": "1 Union Street",
    "delivery_postcode": "2009",
    "delivery_state": "NSW",
    "delivery_suburb": "Pyrmont",
    "delivery_date": "2016-07-26T00:00:00.000Z",
    "delivery_instructions": "We have an old dog who is very friendly",
    "retailer_invoice": "SO-123",
    "authority_to_leave": "Yes",
    "parcel_attributes": [
      {
        "qty": 1,
        "weight": 1.1,
        "width": 0.1,
        "length": 0.1,
        "depth": 0.1
      }
    ],
    "user_attributes": {
      "email": "test@shippit.com",
      "first_name": "John",
      "last_name": "Smith"
    },
    "receiver_contact_number": "0400000000"
  }
}

Quote for an on demand order

{
    "quote": {
        "dropoff_postcode": "2000",
        "dropoff_state": "NSW",
        "dropoff_suburb": "Sydney",
        "parcel_attributes": [
            {
                "qty": 1,
                "weight": 1
            }
        ],
        "delivery_date": "2014-09-18T00:00:00.000Z",
        "delivery_window": "07:00-10:00",
        "delivery_window_desc": "7AM-10AM",
        "price": 24.24,
        "courier_type": "Bonds"
    }
}

On demand order with group order code example

{
    "order": {
        "courier_type": "on_demand",
        "delivery_address": "1 Union Street",
        "delivery_postcode": "2009",
        "delivery_state": "NSW",
        "delivery_suburb": "Pyrmont",
        "delivery_date": "2016-07-26T00:00:00.000Z",
        "delivery_instructions": "We have an old dog who is very friendly",
        "retailer_invoice": "SO-123",
        "authority_to_leave": "Yes",
        "parcel_attributes": [
        {
            "qty": 1,
            "weight": 1.1,
            "width": 0.1,
            "length": 0.1,
            "depth": 0.1
        }
        ],
        "user_attributes": {
        "email": "test@shippit.com",
        "first_name": "John",
        "last_name": "Smith"
        },
        "receiver_contact_number": "0400000000",
        "group_order": {
            "id": "GOhIyYRuDwxuK"
        }
    }
}