For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

post
Authorizations
AuthorizationstringRequired

API key sent as a bearer token (mk_live_… / mk_test_…).

Body

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.

marketstring · min: 1 · max: 255Required

Market the price applies to, as configured for the customer.

Example: UK
codestring · min: 1 · max: 255Required

Product/variant code.

Example: A-TM1680/BEPattern: ^[./\\_\-\w]+$
quantityinteger · max: 9007199254740991Required

Quantity tier the price applies to (integer ≥ 0).

Example: 1
costnumberRequired

Cost price in the market currency.

Example: 55.5
rrpnumberOptional

Recommended retail price in the market currency.

Example: 150
Responses
201

Created.

application/json
post/v1/market-cost-prices
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?