Skip to main content

Bulk import cost prices

Import cost prices with quantity-based tiers for one or more products in a single call from an ERP or purchasing system.

Endpoint

POST /v2/cost-prices/bulk

Request

{
"bulkCostPrices": [
{
"productId": 6726,
"value": 15.00,
"quantityFrom": 1
},
{
"productId": 6726,
"value": 12.50,
"quantityFrom": 10
},
{
"productId": 6726,
"value": 10.00,
"quantityFrom": 50
}
]
}

Response

{
"created": 2,
"updated": 1,
"total": 3
}

How it works

Use POST /v2/cost-prices/bulk to upsert cost prices for products. Each entry requires a value (the cost price) and a quantityFrom threshold. Send multiple entries for the same product to set up tiered pricing, for example a lower cost price when ordering 50 or more units. You can identify products by productId or by source using the source system's identifier. Add validFrom and validTo fields (ISO 8601 timestamps) to create time-bound cost prices for seasonal or contract-based pricing.

See also