Skip to main content
GET
/
stores
/
{storeId}
/
categories
Get categories
curl --request GET \
  --url https://api.komerza.com/stores/{storeId}/categories \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "pages": 123,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "dateCreated": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "visibility": 0,
      "order": 123,
      "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "productCount": 123,
      "products": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "dateCreated": "2023-11-07T05:31:56Z",
          "name": "<string>",
          "description": "<string>",
          "imageNames": [
            "<string>"
          ],
          "rating": 123,
          "order": 123,
          "visibility": 0,
          "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "variants": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "dateCreated": "2023-11-07T05:31:56Z",
              "name": "<string>",
              "productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "storeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "cost": 123,
              "minimumQuantity": 123,
              "maximumQuantity": 123,
              "order": 123,
              "requireDiscordAuthorization": true,
              "type": 0,
              "deliveryTypes": [
                "<string>"
              ],
              "imageNames": [
                "<string>"
              ],
              "stock": 123,
              "stockMode": 0,
              "customFields": [
                {
                  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                  "label": "<string>",
                  "identifier": "<string>",
                  "type": "<string>",
                  "isRequired": true,
                  "options": [
                    {
                      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                      "customFieldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                      "label": "<string>",
                      "value": "<string>",
                      "order": 123
                    }
                  ],
                  "placeholder": "<string>",
                  "hint": "<string>"
                }
              ],
              "subscriptionPeriod": "<string>",
              "subscriptionId": "<string>"
            }
          ],
          "isBestSeller": true,
          "slug": "<string>",
          "metadata": "<string>"
        }
      ],
      "slug": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The ID of the store to get the categories from

Query Parameters

Filters
string
Sorts
string
Page
integer<int32>
Required range: 1 <= x <= 2147483647
PageSize
integer<int32>
Required range: 1 <= x <= 2147483647

Response

The object was successfully returned.

Represents a paginated response returned from API endpoints, which contains the paginated data and metadata about the pagination.

success
boolean
required

Indicates whether the operation was successful

pages
integer<int32>
required

The total number of pages available in the paginated response.

data
object[]
required

Represents the collection of items within a paginated response