Return all Suppliers Product Categories for current Supplier
GEThttps://api.staging.powerapi.com/api/v1/suppliers/:id/supplier_product_categories
Return all Suppliers Product Categories for current Supplier
Request
Path Parameters
id int32required
Query Parameters
sort string
page int32
Default value: 1
Page offset to fetch.
per_page int32
Default value: 10
Number of results to return per page.
Responses
- 200
Return all Suppliers Product Categories for current Supplier
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
object[]
required
{
"data": [
{
"id": "string",
"type": "string",
"attributes": {
"name": "string",
"name-fr": "string",
"name-de": "string",
"name-it": "string",
"name-es": "string",
"name-el": "string",
"children": [
{
"id": "string",
"name": "string"
}
],
"custom-category-id": "string",
"parent-category": "string",
"parent-name": "string",
"delivery-schedule": {},
"ordering-deadline": 0,
"ordering-lead-time": 0
}
}
]
}
{
"data": [
{
"id": "d0f96dc7-0d07-44c5-984b-8000b5a3b3ad",
"type": "supplier-product-categories",
"attributes": {
"name": "Category Name",
"name-fr": "French translation of Category Name",
"name-de": "German translation of Category Name",
"name-it": "Italian translation of Category Name",
"name-es": "Spanish translation of Category Name",
"name-el": "Greek translation of Category Name",
"parent-category": "fb0a19d1-012b-54da-ae40-ff17c0f12b97",
"parent-name": "Parent Category",
"children": [
{
"name": "Child Category",
"id": "c0f68dc7-0f07-43c5-984b-8002b5a7b3ad"
}
],
"custom-category-id": "A113",
"delivery-schedule": {
"id": "1e24a232-7862-477f-8184-231835169047",
"monday": [
2,
660
],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
},
"ordering-deadline": 57600,
"ordering-lead-time": 172800
}
}
],
"meta": {
"total-count": 22,
"total-pages": 3
}
}
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/suppliers/:id/supplier_product_categories' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear