Skip to main content
GET
/
vendor
/
product-categories
/
{id}
Get product category
curl --request GET \
  --url https://api.example.com/vendor/product-categories/{id} \
  --header 'Authorization: Bearer <token>'
{
  "product_category": {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "deleted_at": "2023-11-07T05:31:56Z",
    "handle": "<string>",
    "is_active": true,
    "is_internal": true,
    "rank": 123,
    "parent_category": "<unknown>",
    "category_children": "<array>",
    "metadata": {
      "car": "white"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the category

Query Parameters

fields
string

The comma-separated fields to include in the response

Response

200 - application/json

OK

product_category
Product Category · object

A product category object with its properties