Skip to main content

Create a list of Supplier Product Categories

POST 

/api/v1/suppliers/:id/supplier_product_categories/list

Max. 1000 per request.

Request

Path Parameters

    id int32required

Body

required

    data

    object

    type string

    Possible values: [supplier_product_categories]

    supplier_product_categories

    object[]

    Max. 1000 per request.

  • Array [

  • parent_category string

    ID of SupplierProductCategory that should be the immediate parent of the one being created.

    attributes

    object

    name stringrequired

    The name of the category or subcategory.

    name_fr string

    French translation of the name

    name_de string

    German translation of the name

    name_it string

    Italian translation of the name

    name_es string

    Spanish translation of the name

    name_el string

    Greek translation of the name

    delivery_schedule

    object

    monday array

    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

    tuesday array

    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

    wednesday array

    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

    thursday array

    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

    friday array

    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

    saturday array

    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

    sunday array

    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

    custom_category_id string

    Customizable field that you can use to set a custom category ID. The length of the string can't exceed 100 characters.

  • ]

Responses

Create a list supplier product categories

Schema

    data

    object[]

    required

  • Array [

  • id string
    type string

    attributes

    object

    name string
    name-fr string
    name-de string
    name-it string
    name-es string
    name-el string

    children

    object[]

  • Array [

  • id stringrequired
    name stringrequired
  • ]

  • custom-category-id string
    parent-category string
    parent-name string
    delivery-schedule object
    ordering-deadline integer
    ordering-lead-time integer
  • ]

Loading...