Skip to main content

Create a product of a supplier

POST 

/api/v1/supplier_products

Create a product of a supplier

Request

Body

required

    data

    object

    type stringrequired

    Possible values: [supplier_products]

    attributes

    object

    name stringrequired
    name_fr string
    name_de string
    name_it string
    name_es string
    name_el string
    price_per_unit_cents int32required

    Price of one unit in the package that the product is being sold in

    is_available boolean

    If set to true the image attribute is required

    sku_ref string
    description string
    description_fr string
    description_de string
    description_it string
    description_es string
    description_el string
    units string
    image binary

    If is_available is set to true the image is required

    selling_price_cents int32

    Price of the product (per package sold)

    default_price_cents int32

    default price of the product, which can be replaced by a custom per-business one and act as a fallback value if there is no custom price

    specifications object

    Object containing Product specifications, the format should be

    {
    "specification_group_A": {
    "specification_x": "value_x",
    "specification_y": "value_y",
    "specification_z": "value_z"
    },
    "specification_group_B": {
    "specification_q": "value_q",
    "specification_w": "value_w"
    }
    }
    min_fixed_quantity integer
    max_fixed_quantity integer
    min_open_quantity float
    max_open_quantity float

    relationships

    object

    supplier

    object

    data

    object

    type stringrequired

    Possible values: [supplier]

    id stringrequired

    Related Supplier ID

    supplier_product_category

    object

    required

    data

    object

    type stringrequired

    Possible values: [supplier_product_category]

    id stringrequired

    Related SupplierProductCategory ID

Responses

Create a product of a supplier

Schema

    data

    object[]

    required

  • Array [

  • id string
    type string

    attributes

    object

    description string
    description-en string
    description-fr string
    description-de string
    description-it string
    description-es string
    description-el string
    image binary
    is-available boolean

    Possible values: [true, false]

    max-fixed-quantity integer
    max-open-quantity float
    min-fixed-quantity integer
    min-open-quantity float
    name string
    name-en string
    name-fr string
    name-de string
    name-it string
    name-es string
    name-el string
    price-per-unit-cents integer

    Price of one unit in the package that the product is being sold in

    selling-price-cents integer

    Price of the product (per package sold)

    price-in-cents integer

    Price of the product for a specific business

    sku-ref integer
    specifications object
    supplier-name string
    supplier-id string
    open-quantity float
    fixed-quantity integer
    quantity-type string
    units string
    from-custom-catalog boolean

    Possible values: [true, false]

    ordering-deadline integer
    ordering-lead-time integer
  • ]

Loading...