Create or update base or fixed prices

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

markup

integer

The profit percentage that is to be obtained from the sale of that SKU. If you decide to fill the markup item, you must also fill the costPrice and basePrice will be automatically generated based on both values

listPrice

number

SKU's suggested selling price

basePrice

number

SKU selling base price. If you decide to fill only the basePrice item, the markup and costPrice will be automatically generated to adapt to the number inserted in basePrice

costPrice

number

SKU selling cost price.If you decide to fill the costPrice item, you must also fill the markup and basePrice will be automatically generated based on both values

fixedPrices

array

Array with general information about the SKU's fixed prices

tradePolicyId

string

Trade policy name or ID that will have the fixed price configured

value

number

Fixed price value

listPrice

number

SKU List Fixed Price

minQuantity

integer

Minimum quantity of the SKU to the fixed price be applied

dateRange

object

Period of time that the fixed price will be applied to the SKU

from

string

Start date of the price

to

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
        }
    ]
}
Language
Authentication
URL
Click Try It! to start a request and see the response here!