Skip to main content

Create a product

POST 

/api/products

Required permissions:

  • product.edit: allows to create products.

Here the dedicated support page.

Request

Header Parameters

    Wethod-Company stringrequired

    The company you want to interact with

    Wethod-Version stringrequired

    The API version you want to use

Body

    name stringrequired

    Possible values: <= 50 characters

    The product name

    description string

    Possible values: <= 50 characters

    The product description

    available_from date

    Product availability start date. This follows the YYYY-MM-DD format

    available_to date

    Product availability end date. This follows the YYYY-MM-DD format

    external_cost float

    Default value: 0

    The external cost of the product

    markup integer

    Default value: 0

    The markup percentage for the product

    price float

    The final price of the product

Responses

Returns the product created.

Schema

    id integerrequired

    Possible values: >= 1

    The unique identifier of the resource

    created_at date-timerequired

    The date and time when the resource was created

    updated_at date-timerequired

    The date and time when the resource was last updated

    name stringrequired

    Possible values: <= 50 characters

    The name of the product

    description stringrequired

    Possible values: <= 50 characters

    The description of the product

    available_from date

    The availability start date of the product

    available_to date

    The availability end date of the product

    external_cost floatrequired

    The external cost of the product

    markup integerrequired

    The markup percentage for the product

    price float

    The final price of the product

Loading...