GET
/
catalog
/
categories
/
{id}
curl --request GET \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/categories/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "category": {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "active": true,
      "parent_category_id": "<string>",
      "auto_assign_products": true,
      "assign_products_condition": {},
      "product_count": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "modified_at": "2023-11-07T05:31:56Z",
      "child_categories": [
        {
          "id": "<string>",
          "name": "<string>",
          "description": "<string>",
          "active": true,
          "parent_category_id": "<string>",
          "auto_assign_products": true,
          "assign_products_condition": {},
          "product_count": 123,
          "created_at": "2023-11-07T05:31:56Z",
          "modified_at": "2023-11-07T05:31:56Z"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

category Ulid

Response

200 - application/json
OK
message
string
success
boolean
content
object