Create a list of Supplier Product Categories
POST/api/v1/suppliers/:id/supplier_product_categories/list
Max. 1000 per request.
Request
Path Parameters
- application/vnd.api+json
Body
required
Array [
]
data
object
Possible values: [supplier_product_categories
]
supplier_product_categories
object[]
Max. 1000 per request.
ID of SupplierProductCategory that should be the immediate parent of the one being created.
attributes
object
The name of the category or subcategory.
French translation of the name
German translation of the name
Italian translation of the name
Spanish translation of the name
Greek translation of the name
delivery_schedule
object
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00
Customizable field that you can use to set a custom category ID. The length of the string can't exceed 100 characters.
Responses
- 201
Create a list supplier product categories
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
data
object[]
required
attributes
object
children
object[]
{
"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
}
}
]
}