Skip to main content
GET
/
categories
/
{id}
Get a category
curl --request GET \
  --url https://api.salesive.com/api/v1/categories/{id} \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "success": true,
  "message": "Category retrieved",
  "data": {
    "_id": "6651ab12cd34ef56ab78cd90",
    "name": "Electronics",
    "slug": "electronics",
    "description": "Phones, audio and accessories",
    "image": "https://cdn.example.com/c/electronics.png",
    "deleted": false,
    "deletedAt": null,
    "shop": "664f0e2a1c2b3d4e5f6a7b8c",
    "createdAt": "2026-04-10T12:00:00.000Z",
    "updatedAt": "2026-06-01T08:00:00.000Z",
    "id": "6651ab12cd34ef56ab78cd90",
    "productCount": 24
  }
}
Returns one category within the store, including a productCount of products assigned to it. The store is bound to your app token server-side — never send a shop id.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.

Path Parameters

id
string
required

The category id.

Response

The requested category.

Standard Salesive response envelope. The operation-specific payload is carried in data.

status
integer
required

HTTP status code, echoed in the body.

success
boolean
required

Whether the request succeeded.

message
string
required

Human-readable result message.

data
object

A store-scoped product category. The productCount field is included on list and get responses.