Own fleet code examples
You can pass on demand orders for delivery by your own fleet through the Shippit order API. In this case, you also need to set the pickup and drop off times, and the delivery deadline parameters as timestamps.
The three parameters are:
pickup_at
is the earliest time that the parcel can be picked updropoff_at
is the beginning time of the delivery windowdropoff_deadline_at
is the end time of the delivery window{ "order": { "user_attributes": { "email": "test@shippit.com", "first_name": "John", "last_name": "Smith" }, "parcel_attributes": [ { "depth": 0.13, "length": 0.1, "weight": 2.1, "width": 0.11 } ], "authority_to_leave": "No", "courier_type": "OwnFleetOnDemand", "delivery_address": "24/331 Miller St", "delivery_postcode": "2062", "delivery_state": "NSW", "delivery_suburb": "Cammeray", "delivery_instructions": "Special instructions for the order go here", "receiver_contact_number": "0400000000", "receiver_name": "Adam", "pickup_at": "2024-04-12T12:00:00.000+10:00", "dropoff_at": "2024-04-12T17:00:00.000+10:00", "dropoff_deadline_at": "2024-04-12T20:00:00.000+10:00" } }