Skip to main content

Create a new discount

POST 

/v2/discounts

Create a new discount

Request

Header Parameters

    tenant stringrequired

    Tenant identifier

Body

required

Create discount input

    pricesheetId stringrequired

    Pricesheet id

    productId numbernullable

    Product id

    categoryId numbernullable

    Category id

    priceGroup stringnullable

    Pricegroup

    value numberrequired

    Discount value

    discountType stringrequired

    Possible values: [costpriceplus, listpricemin, netprice]

    Discount type One of: [costpriceplus, listpricemin, netprice]

    quantityFrom numbernullable

    Indicates the minimum quantity threshold needed to qualify for the bulk price.

    validFrom date-timenullable

    Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string

    validTo date-timenullable

    End date of the bulk pricing offer. Must be a valid ISO 8601 date string

Responses

Discount created

Schema

    id stringrequired

    Primary identifier

    createdAt date-timerequired

    Creation date

    lastModifiedAt date-timerequired

    Last modified date

    validFrom date-time

    Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string

    validTo date-time

    Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string

Loading...