Creates or updates an SKU base or fixed prices. The base price is the basic selling price of a product, it comprises the cost price and the markup wanted in the sale of the product. The fixed price is an optional price of the SKU for a specific trade policy with a specific minimum quantity to be activated
You may optionally set a list price. Additionally, you may set either a cost price or a markup value. By defining either one of them, the other will be calculated to conform to the formula
costPrice * (1 + markup) = basePrice
.
Request body has the following properties:
Attribute | Type | Description |
---|---|---|
| integer | The profit percentage that is to be obtained from the sale of that SKU. If you decide to fill the |
| number | SKU's suggested selling price |
| number | SKU selling base price. If you decide to fill only the |
| number | SKU selling cost price.If you decide to fill the |
| array | Array with general information about the SKU's fixed prices |
↳ | string | Trade policy name or ID that will have the fixed price configured |
↳ | number | Fixed price value |
↳ | number | SKU List Fixed Price |
| integer | Minimum quantity of the SKU to the fixed price be applied |
| object | Period of time that the fixed price will be applied to the SKU |
| string | Start date of the price |
| string | End date of the price |
Request body example:
{
"markup": 30,
"basePrice": 100,
"listPrice": 12,
"costPrice": 40,
"fixedPrices": [
{
"tradePolicyId": "1",
"value": 2.99,
"listPrice": 1,
"minQuantity": 1,
"dateRange": {
"from": "2020-05-21T22:00:00Z",
"to": "2020-05-28T22:00:00Z"
}
},
{
"tradePolicyId": "1",
"value": 0.49,
"listPrice": null,
"minQuantity": 2
}
]
}