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)

Product

ProductRequest

It's a top-level entity of Product creation.

PropertyTypeDescription
titlestringProduct title
photostring|nullMain photo (should be a url)
quantityint|nullProduct quantity
priceintProduct price (In pennies)
tagsarray|nullProduct tags (should be an array)
activeboolIs the product active or not
descriptionstringProduct description
categoriesarrayList of existing categories (should be an array)
optionsProduct option requestList of product options

ProductResponse

It's a top-level entity of Product.

PropertyTypeDescription
idintProduct ID
imagesarrayList of product photos url
quantityint|nullProduct quantity
priceintProduct price (In pennies)
discountint|nullProduct discount (In pennies)
price_with_discountintProduct price + discount (In pennies)
tagsint|nullList of product tags
activeboolIs the product active or not
descriptionstringProduct description
categoriesProduct categoriesList of product categories
optionsProduct option responseList of product options

Product option

ProductOptionRequest

PropertyTypeDescription
category_namestringName of category (to which products are associated)
variantsProduct variant request or nullList of products (which are associated to this option)

ProductOptionResponse

PropertyTypeDescription
titlestringCategory name
can_be_emptyboolShould this option contain options
activeboolIs the option active or not
variantsProduct variant response or nullProduct variants for this option

Product variant

ProductVariantRequest

PropertyTypeDescription
product_namestringProduct title
priceint|nullNew price for this product (In pennies)

ProductVariantResponse

PropertyTypeDescription
idintProduct ID
titlestringProduct title
descriptionstring|nullProduct description
discount_valueintDiscount value (In pennies)
discount_percentintDiscount percent (Percentage in whole numbers)
priceintProduct price (In pennies)
price_with_discountintProduct price + discount value (In pennies)

Product categories

ProductCategories

PropertyTypeDescription
namestringCategory name
slugstringCategory code
logostring|nullCategory photo url

Courier Tracking

CourierTracking
Courier information with real-time GPS location, returned in Delivery Tracking endpoints.

PropertyTypeDescription
idintCourier ID
first_namestringCourier first name
last_namestringCourier last name
phonestringCourier phone number
locationarray<[float Lat, float Lng]>|nullLatest GPS coordinates
location_updated_attimestamp|nullWhen the location was last recorded

Tracking Place

TrackingPlace
Simplified Delivery Order Place used in tracking route segments.

PropertyTypeDescription
idintPlace ID
addressstringAddress of the place
coordinatesarray<[float Lat, float Lng]>Coordinates of the place
contact_namestring|nullContact person name
contact_phonestring|nullContact person phone

Tracking Route

TrackingRoute
Simplified Delivery Order Route with embedded origin and destination places.

PropertyTypeDescription
idintRoute segment ID
statusDelivery Order Route StatusesStatus of the route progress
originTrackingPlaceOrigin place of the segment
destinationTrackingPlaceDestination place of the segment

Signature data

Signature data

The SignatureData object contains client-specific information required to generate the document for signing.
Its structure is not fixed and may vary depending on the provider’s requirements.

© 2026 | SIA "QWQER EU" | qwqer.lv ™