Create a new discount
POST/v2/discounts
Create a new discount
Request
Header Parameters
Tenant identifier
- application/json
Body
required
Create discount input
Pricesheet id
Product id
Category id
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
- 201
- 400
- 403
- 500
Discount created
- application/json
- Schema
- Example (from schema)
Schema
Primary identifier
Creation date
Last modified date
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
{
"id": 1234,
"createdAt": "2022-01-01T00:00:00.000Z",
"lastModifiedAt": "2022-01-02T00:00:00.000Z",
"validFrom": "2022-01-01T00:00:00.000Z",
"validTo": "2022-01-31T00:00:00.000Z"
}
Bad request
Forbidden
Unknown create discount error