API reference

Production access is closed · 37 operations

Browse and search parts categories

GET/api/v1/catalog/part-categories

Parts category tree and search. Use either q or path.

Use q for search or the repeated path parameter to browse the tree. Leaf entries contain details fields for the listing form.

Required scope listings:read

Jump to the example

Parameters

NameLocationTypeRequiredDescription
listingTypeValuequerystringYesmax. characters 100
pathquerystring[]No—
qquerystringNoSearch phrase matched against the leaf name and its path. min. characters 2 · max. characters 120
limitqueryintegerNoMaximum search results. Requires q. minimum 1 · maximum 100 · default 30

Responses

200 Request completed successfully.
application/json
Schema PartsCategoryPage
NameTypeRequiredDescription
listingTypeValuestringNo—
pathstring[]No—
itemsobject[]No—
JSON Schema
{
  "$ref": "#/components/schemas/PartsCategoryPage"
}
404 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
422 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
401 A valid API key is required.
403 The scope is missing or the production request does not use HTTPS.
429 Rate limit exceeded. Check Retry-After.
503 Access is closed or the service is temporarily unavailable. Check code.

Handle errors and rate limits ↗

Related schemas

PartsCategoryPage
{
  "type": "object",
  "properties": {
    "listingTypeValue": {
      "type": "string"
    },
    "path": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "branch",
              "leaf"
            ]
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "label": {
            "type": "string"
          },
          "details": {
            "type": "object",
            "properties": {
              "partMainCategory": {
                "type": "string"
              },
              "partSubCategory": {
                "type": "string"
              },
              "partCategoryPath": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "partMainCategory",
              "partSubCategory",
              "partCategoryPath"
            ]
          }
        },
        "required": [
          "kind",
          "path",
          "label"
        ]
      }
    }
  }
}