Skip to content

Resource Objects

Property and common descriptions about JSON Api resources used in our system.

Delivery Order

DeliveryOrder
It's a top-level entity of delivery-order.

PropertyTypeDescription
client_idintLinked client (order creator / owner)
courier_idint|nullLinked courier (who deliver, if accepted)
delivery_area_idintLinked Delivery area (Each order is located inside an area that contains specific settings)
trading_point_idint|nullLinked trading-point (From which trading-point order was placed, may be null if order placed privately)
statusDelivery Order StatusesStatus of delivery order
typeDelivery Order TypesType of delivery order
categoryDelivery Order CategoriesCategory of delivery order
pickup_datetimetimestamp|null
Format: Y-m-d H
The date and time when the courier should pick up the order
is_round_tripboolThe flag that signs that the courier should return to origin after delivery
client_priceintThe client price for the order (In pennies. Shown only for clients)
courier_priceintThe courier price for the order (In pennies. Shown only for couriers)

Delivery Order Place

DeliveryOrderPlace
It's a place entity of origin or destination.

PropertyTypeDescription
delivery_order_idintLinked delivery order
typeDelivery Order TypesType of place
payment_typeDelivery Order Place Payment Types
or null
Payment type that needs to be accepted on the place (Only if order placed as trading-point)
payment_amountint|nullThe payment amount that needs to be paid on the place (In pennies. Only if order placed as trading-point)
coordinatesarray<[float Lat, float Lng]>Coordinates of the place
addressstringAddress of the place
namestring|nullName of the person or company that need to receive the parcel
emailstring|nullEmail of the person or company that need to receive the parcel
phonestring|nullPhone of the person or company that need to receive the parcel
entrancestring|nullEntrance
apartmentstring|nullApartment
floorstring|nullFloor
commentstring|nullComment

Delivery Order Route

DeliveryOrderRoute
It's a routing entity that links places between themselves and holds related to route data such as distance and duration.

The collection of these entities builds a full route of delivery.

PropertyTypeDescription
delivery_order_idintLinked delivery order
origin_delivery_order_place_idintOrigin place of the route
destination_delivery_order_place_idintDestination place of the route
statusDelivery Order Route StatusesStatus of the route progress
distanceintRoute distance (In meters)
durationtime
Format: H:i:s
Route duration (In time data-type)

All rights reserved.