GET Categories

Get list of all engine's categories.

GET#

https://api.altoshift.com/v1/categories

Permission: all

Example Usage#

GET /v1/categories?token=5cd3f3042cd48000372c64fd-1557394180073-88706995

Parameter#

FieldTypeDescription
tokenStringEngine's token

Success 200#

FieldTypeDescription
categoriesObject[]array of categories
    nameStringCategory name
    catIdStringCategory id
    parentCatIdStringParent category id

Success Response Example#

{
"categories": [
{
"name": "Accessories",
"catId": "16",
"parentCatId": "0"
}
]
}

Error Response Example#

HTTP/1.1 403 Unauthorised
{
"errors": [
"engine verification failed"
]
}