List product categories
A page of the product categories Sibi sells into, each carrying the suppliers that offer products in it, ordered alphabetically. Page by passing the previous response’s next back as after; next is null once a page comes back short.
/product-categoriesAuthorizationBearer token · headerrequiredA Sibi Public API token or access token, sent as Authorization: Bearer <token>.
read:product-categoriesfirstintegerMaximum number of categories to return per page
supplierstring | string[]Supplier slug to restrict the page to. Repeat the param to list the categories any of those suppliers offer products in.
afterstringOpaque pagination cursor from a previous response next. Omit for the first page.
Product categories the caller is authorized to view
itemsProductCategory[]requiredShow propertiesHide properties
ProductCategorynamestringrequiredHuman-readable category name.
suppliersstring[]requiredSuppliers that offer unarchived products in this category
nextstring | nullrequiredOpaque cursor for the next page; pass it as after. Null when the page came back short, i.e. there is probably nothing behind it.
A query parameter this operation does not accept (UNKNOWN_QUERY_PARAMETER), invalid input parameters (VALIDATION_ERROR), or after is not a cursor this endpoint issued (INVALID_CURSOR)
codestringrequiredUNKNOWN_QUERY_PARAMETER when every problem is a query parameter this operation does not accept; VALIDATION_ERROR otherwise
VALIDATION_ERRORUNKNOWN_QUERY_PARAMETERmessagestringrequireddetailsobject[]requiredPer-field validation errors
Show propertiesHide properties
objectfieldstringrequirederrorstringrequiredrequestIdstringRequest id for this call — quote it when contacting support
codestringrequiredMachine-readable error code
INVALID_CURSORmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
The Authorization header is missing, or the bearer token could not be resolved (invalid, expired, or revoked)
codestringrequiredMachine-readable error code
UNAUTHORIZEDmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
The token is not a Public REST API token (REST_TOKEN_REQUIRED), it is missing the scope this operation requires (INSUFFICIENT_SCOPE), or it was minted for the other environment (TOKEN_ENVIRONMENT_MISMATCH)
codestringrequiredMachine-readable error code
REST_TOKEN_REQUIREDINSUFFICIENT_SCOPETOKEN_ENVIRONMENT_MISMATCHmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
Internal server error
codestringrequiredMachine-readable error code
INTERNAL_SERVER_ERRORmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support