Skip to main content

Get Active Items

By calling this API, you can get the list of active items in the specified outlet.

GET /integrations/mokapos/outlets/{outlet_id}/v1/library/items

Path Parameters

AttributeDescriptionTypeRequired
outlet_idThe Outlet IDStringRequired

Query Parameters

AttributeDescriptionTypeRequired
per_pageThe max number of items on each pageIntegerOptional
pageThe number of the pageIntegerOptional

Sample Response - 200 Success

{
"success": true,
"data": {
"total_pages": 9,
"total_count": 9,
"items": [
{
"id": 10582325,
"name": "Ice Cream",
"category": {
"id": 1839094,
"name": "Dessert"
},
"variants": [
{
"id": 17559481,
"name": "Vanilla",
"price": 18000,
"created_at": "2021-10-21T13:53:45+07:00",
"updated_at": "2021-10-21T13:53:45+07:00"
}
],
"active_modifiers": [
{
"id": 362774,
"name": "Topping",
"options": [
{
"id": 2482802,
"name": "Strawberry Sauce",
"price": 1000,
"created_at": "2021-10-21T13:49:15+07:00",
"updated_at": "2021-10-21T13:49:15+07:00"
}
]
}
],
"updated_at": "2021-10-21T13:53:45+07:00",
"created_at": "2021-10-21T13:53:45+07:00"
}
]
}
}
note

To perform this operation, you must be authenticated using go_auth_client_credentials(mokapos:reporting:read).