| Send | Permission | Community scope |
|---|---|---|
Authorization: Bearer <apiKey> | store | Community scope is derived from the key; do not send a community identifier. |
{pathParameter} and use the query parameters documented below.meta.code = CATEGORIES_RETRIEVED{
"meta": {
"status": "success",
"statusCode": 200,
"code": "CATEGORIES_RETRIEVED",
"skip": 0,
"limit": 20,
"total": 1
},
"message": "List Store categories successfully",
"data": [
{
"_id": "cat_agent_01",
"name": "Agent Test Rewards",
"displayOrder": 10
}
]
}meta.code, never message text.| HTTP | Machine code | What the caller should do | Retry? |
|---|---|---|---|
| 400 | VALIDATION_FAILED | Repair the named request field before retrying. | No, fix first |
| 401 | AUTH_API_KEY_REQUIRED | Add the Authorization header. | No, fix first |
| 401 | AUTH_API_KEY_INVALID | Replace or rotate the key. | No, fix first |
| 401 | AUTH_API_KEY_VALIDATION_FAILED | Authentication could not be completed. | Yes, with backoff |
| 403 | AUTH_PERMISSION_REQUIRED | Request the store permission; no resource data is returned. | No, fix first |
| 500 | INTERNAL_ERROR | Retry with exponential backoff and the same request context, then escalate. | Yes, with backoff |
defaultPurchaseStatusID is the effective status: a non-null stored category override wins; otherwise the active community new_purchase default is returned; it is null when neither exists.categoryPermission[].permission.users contains resolved active CommunityMember usernames in configured order. Internal permission identifiers are not exposed; unresolved members are omitted from users.fields projection may omit these item properties.curl --location 'https://sgtr-api.returning.ai/v1/categories?skip=0&limit=20&sort=displayOrder%3Aasc&fields=name%2CdisplayOrder&search=keyword%3Aagent&filter=isArchived%3Afalse&userID=usr_agent_01' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 200,
"code": "CATEGORIES_RETRIEVED",
"skip": 0,
"limit": 20,
"total": 1
},
"message": "List Store categories successfully",
"data": [
{
"_id": "cat_agent_01",
"displayOrder": 10,
"name": "Agent Test Rewards",
"defaultPurchaseStatusID": "650906d314a3e564c56f3450",
"categoryPermission": [
{
"isEnabled": true,
"type": "user",
"permission": {
"roles": [
"VIP Member"
],
"tags": [
"Early Access"
],
"users": [
"alex"
],
"combination": [
{
"type": "role",
"values": [
"VIP Member"
]
}
],
"isSelectAll": false
}
}
]
}
]
}