Skip to main content

Get Active Categories

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

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

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": 7,
"total_count": 7,
"categories": [
{
"id": 1839094,
"name": "Dessert",
"created_at": "2021-10-21T13:53:22.722000+07:00",
"updated_at": "2021-10-21T13:53:22.718000+07:00"
}
]
}
}
note

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