Product Category
Product category catalog.
GET/api/product-categories
List all product categories
Returns all available product categories with id, slug, and name. Use the slug in cart checkout requests (categorySlug field) for precise AfA duration validation.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| page | query | integer | no | The collection page number |
Code samples
curl -X GET 'https://sandbox.partner.miete24.com/api/product-categories' \
-H 'X-Api-Key: YOUR_API_KEY'
const response = await fetch('https://sandbox.partner.miete24.com/api/product-categories', {
method: 'GET',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
});
const data = await response.json();
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | ProductCategoriesResource collection | array<ProductCategoriesResource.ProductCategoryResponse> |
| 403 | Forbidden | — |