← Catalogue

Order Service — Past Ordered Items

OAS 3.1.0 v1.0.0 ✓ Valid 3.1
specs/order-service-past-ordered-items.yaml • 2 operations • 8 schemas • 0 webhooks
⬇ Download .yaml

Order Service — Past Ordered Items

Returns the items an authenticated user has previously ordered from a vendor, or from a specific branch of that vendor, including the modifiers they selected. Results are grouped by product ID.

Configured Target Servers

https://prod.hubz.nyotek.com Production
https://dev.hubz.nyotek.com Development

Detected OpenAPI 3.1 / JSON Schema 2020-12 Features

✦ schema examples array

Past Orders

GET /order/{vendor_id}/items List past ordered items from a vendor

Returns the authenticated user's previously ordered items across all branches of the vendor, grouped by product ID.

Request Parameters

NameInType (OAS 3.1)Required
anyOptional
anyOptional
anyOptional
anyOptional
anyOptional
anyOptional

Responses

200 Response
400 Response
401 Response
404 Response
GET /order/{vendor_id}/{branch_id}/items List past ordered items from a branch

Returns the authenticated user's previously ordered items from one branch of the vendor, grouped by product ID.

Request Parameters

NameInType (OAS 3.1)Required
anyOptional
anyOptional
anyOptional
anyOptional
anyOptional
anyOptional
anyOptional

Responses

200 Response
400 Response
401 Response
404 Response

Component Schemas (JSON Schema 2020-12)

Ulid

string

LocalizedString

object

MediaUrlMap

object

PastOrderedItemsResponse

object
PropertyTypeRequired
dataobject ✓

PastOrderedItem

object
PropertyTypeRequired
product_idUlid ✓
selected_modsarray<SelectedModGroup> ✓
last_ordered_atstring (date-time)✓

SelectedModGroup

object
PropertyTypeRequired
parent_idUlid ✓
parent_nameLocalizedString ✓
parent_typestring ✓
selected_childarray<SelectedModOption> ✓

SelectedModOption

object
PropertyTypeRequired
selected_idUlid ✓
selected_nameLocalizedString ✓
selected_typestring ✓
selected_media_urlMediaUrlMap —
selected_priceinteger ✓
selected_vat_priceinteger ✓
selected_add_on_priceboolean ✓
selected_quantityinteger ✓

Error

object
PropertyTypeRequired
messagestring —