| 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 = CATEGORY_RETRIEVED{
"meta": {
"status": "success",
"statusCode": 200,
"code": "CATEGORY_RETRIEVED"
},
"message": "Get Store category by ID 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 path ID. | 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 |
| 404 | STORE_RESOURCE_NOT_FOUND | Refresh the category list. | After refreshing the ID |
| 500 | INTERNAL_ERROR | Retry with exponential backoff and the same request context, then escalate. | Yes, with backoff |
curl --location 'https://api.returning.ai/v1/categories/67bc22b591b5284096627c6c?fields=name%2CdisplayOrder%2CdefaultPurchaseStatusID' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Read category success.",
"data": {
"_id": "67bc22b591b5284096627c6c",
"communityID": "6502c97314a3e564c5bbfa84",
"name": "Category 3",
"coverImage": null,
"shouldShowCover": false,
"isArchived": false,
"viewType": "full",
"displayOrder": 0,
"categoryPermission": [
{
"type": "role",
"permission": {
"roles": [
"VIP Member"
],
"tags": [
"Early Access"
],
"users": [
"alex"
],
"combination": [],
"isSelectAll": false
},
"purchaseLimit": {
"isEnabled": true,
"quantity": 1,
"intervalCount": 1,
"intervalUnit": "months"
},
"accessLevel": "full-access",
"isEnabled": true
},
{
"type": "role_combination",
"permission": {
"roles": [],
"tags": [],
"users": [],
"combination": [
{
"type": "role",
"values": [
"all",
"Professional",
"Master"
]
}
],
"isSelectAll": false
},
"purchaseLimit": {
"isEnabled": false,
"quantity": 1,
"intervalCount": 1,
"intervalUnit": "months"
},
"accessLevel": "view-only",
"isEnabled": true
}
],
"defaultPurchaseStatus": "Pending",
"i18n": {
"isTranslationEnabled": true,
"nameTranslations": [
{
"locale": "de",
"label": "de",
"content": "Kategorie 3",
"isAiGenerated": true,
"translationConfigHash": "f6fac99b4c760b307dd010711bb714a4be44a75e32f39bddc4197d99331c2222"
}
]
},
"createdAt": "2025-02-24T07:41:41.053Z",
"updatedAt": "2026-05-25T05:15:38.547Z"
}
}