Create Market Cost Price
Create a single market cost price.
Use this when adding a new market, code and quantity combination; use update or bulk UPSERT for an existing record.
Behaviour
The market must be one of your configured markets (400 market_not_configured otherwise).
Returns 409 if the market/code/quantity combination already exists.
Requires the marketCostPrices:write scope.
API key sent as a bearer token (mk_live_… / mk_test_…).
Data schema used by Create Market Cost Price (POST /v1/market-cost-prices). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.
Market the price applies to, as configured for the customer.
UKProduct/variant code.
A-TM1680/BEPattern: ^[./\\_\-\w]+$Quantity tier the price applies to (integer ≥ 0).
1Cost price in the market currency.
55.5Recommended retail price in the market currency.
150Created.
Invalid request data.
Missing or invalid API key.
The API key lacks the required scope (scope_denied), or the operation is not permitted for this account (operation_not_permitted).
Conflict with the current state (e.g. the resource already exists).
The API key exceeded its request rate (rate_limit_exceeded) or its monthly quota (quota_exceeded). Both carry Retry-After; the RateLimit-* headers accompany rate_limit_exceeded only, since a spent quota says nothing about the bucket.
Internal server error.
POST /v1/market-cost-prices HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"market": "UK",
"code": "A-TM1680/BE",
"quantity": 1,
"cost": 55.5,
"rrp": 150
}{
"data": {
"marketCostPriceId": "MCP-123e4567-e89b-12d3-a456-426614174000"
}
}Last updated
Was this helpful?