Create or update bulk discounts for pricesheet
POST/v2/discounts/bulk
Create or update bulk discounts for pricesheet
Request
Header Parameters
Tenant identifier
- application/json
Body
array
required
Discounts bulk input, please use either productId or productSource or categoryId or categorySource.
Array [
]
Pricesheet id
Product id
Product source
Category id
Category source
Pricegroup
Discount value
Possible values: [costpriceplus
, listpricemin
, netprice
]
Discount type One of: [costpriceplus, listpricemin, netprice]
Indicates the minimum quantity threshold needed to qualify for the bulk price.
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
End date of the bulk pricing offer. Must be a valid ISO 8601 date string
Responses
- 200
- 400
- 403
- 500
Discounts created
- application/json
- Schema
- Example (from schema)
Schema
Number of created items
Number of updated items
Total number of created and updated items
{
"created": 60,
"updated": 40,
"total": 100
}
Bad request
Forbidden
Unknown bulk discounts error