Update Market Cost Price
Replace a market cost price by id with the supplied fields.
Use a marketCostPriceId returned by List Market Cost Prices and send the complete new price values.
Behaviour
This is a full replacement — omitting rrp clears any stored RRP.
The market must be one of your configured markets (400 market_not_configured otherwise).
Currency is derived from the market.
Returns 404 if the id does not exist.
Requires the marketCostPrices:write scope.
API key sent as a bearer token (mk_live_… / mk_test_…).
Market cost price identifier (MCP-).
MCP-123e4567-e89b-12d3-a456-426614174000Pattern: ^MCP-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$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.
150Successful response.
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).
Resource not found.
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.
PUT /v1/market-cost-prices/{marketCostPriceId} 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?