Skip to main content

Update a discount by id

PATCH 

/v2/discounts/:id

Update a discount by id

Request

Path Parameters

    id stringrequired

    Discount identifier

    Example: 018fb9a0-e490-79c8-95de-8424f7b06638

Header Parameters

    tenant stringrequired

    Tenant identifier

Body

required

Update discount input

    pricesheetId string

    Pricesheet id

    productId numbernullable

    Product id

    categoryId numbernullable

    Category id

    priceGroup stringnullable

    Pricegroup

    value number

    Discount value

    discountType string

    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 updated

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...