Markets
Groups of countries a store sells to with their own currency, prices and taxes. The primary market is the store's own; shoppers elsewhere see prices converted at the market's exchange rate, or the fixed prices set for it.
Endpoints#
- GET
/markets.jsonList markets - GET
/markets/count.jsonCount markets - GET
/markets/{id}.jsonGet a market - POST
/markets.jsonCreate a market - PUT
/markets/{id}.jsonUpdate a market - DELETE
/markets/{id}.jsonDelete a market - GET
/markets/{id}/prices.jsonList a market's fixed prices - PUT
/markets/{id}/prices.jsonSet fixed prices
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
The market object#
What the endpoints below return for one market, and the payload of the markets/create, markets/update webhooks.
{
"id": "cm2market02",
"name": "Europe",
"primary": false,
"enabled": true,
"countries": [
"AT",
"BE",
"DE",
"ES",
"FR",
"IE",
"IT",
"NL",
"PT"
],
"rest_of_world": false,
"currency": "EUR",
"exchange_rate_mode": "automatic",
"exchange_rate": 0.8598,
"manual_exchange_rate": null,
"price_adjustment_percent": 5,
"rounding": "95",
"tax_rate_percent": null,
"taxes_included": null,
"locale": null,
"position": 2,
"fixed_prices_count": 2,
"created_at": "2026-10-02T09:00:00.000Z",
"updated_at": "2026-10-24T15:20:00.000Z"
}List markets#
/markets.jsonread_marketsEvery market of the store: the primary market first, then the others in the order the merchant arranged them. exchange_rate is the rate prices are converted at right now.
| Parameter | Description |
|---|---|
enabled | true or false. |
ids | Comma-separated ids. |
fields | Comma-separated fields to return. |
curl "https://store.weftgrid.com/api/admin/2026-10/markets.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"markets": [
{
"id": "cm2market02",
"name": "Europe",
"primary": false,
"enabled": true,
"countries": [
"AT",
"BE",
"DE",
"ES",
"FR",
"IE",
"IT",
"NL",
"PT"
],
"rest_of_world": false,
"currency": "EUR",
"exchange_rate_mode": "automatic",
"exchange_rate": 0.8598,
"manual_exchange_rate": null,
"price_adjustment_percent": 5,
"rounding": "95",
"tax_rate_percent": null,
"taxes_included": null,
"locale": null,
"position": 2,
"fixed_prices_count": 2,
"created_at": "2026-10-02T09:00:00.000Z",
"updated_at": "2026-10-24T15:20:00.000Z"
}
]
}Count markets#
/markets/count.jsonread_markets| Parameter | Description |
|---|---|
enabled | true or false. |
curl "https://store.weftgrid.com/api/admin/2026-10/markets/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 3 }Get a market#
/markets/{id}.jsonread_marketscurl "https://store.weftgrid.com/api/admin/2026-10/markets/$MARKET_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"market": {
"id": "cm2market02",
"name": "Europe",
"primary": false,
"enabled": true,
"countries": [
"AT",
"BE",
"DE",
"ES",
"FR",
"IE",
"IT",
"NL",
"PT"
],
"rest_of_world": false,
"currency": "EUR",
"exchange_rate_mode": "automatic",
"exchange_rate": 0.8598,
"manual_exchange_rate": null,
"price_adjustment_percent": 5,
"rounding": "95",
"tax_rate_percent": null,
"taxes_included": null,
"locale": null,
"position": 2,
"fixed_prices_count": 2,
"created_at": "2026-10-02T09:00:00.000Z",
"updated_at": "2026-10-24T15:20:00.000Z"
}
}Create a market#
/markets.jsonwrite_marketsAdds a market after the store's others. name, countries and currency are required.
countries lists two-letter ISO codes (country names work too), or is ["*"] (or rest_of_world: true) for every country that isn't in another market. A country can be in one enabled market only, and one enabled market at most covers the rest of the world. While the primary market covers the rest of the world, a market taking it over sends primary_countries (like ["PK"]) to give the primary market its own countries in the same request.
currency is a supported ISO code. exchange_rate_mode is automatic (the platform's daily rate) or manual with manual_exchange_rate: units of the market's currency per unit of the store's. price_adjustment_percent (-50 to 100) is added to converted prices, then rounding (none, whole, 99, 95 or 90) rounds them up. Fixed prices win over all three.
tax_rate_percent and taxes_included override the store's tax settings in the market (null: the store's). locale is the storefront language shoppers switch to when they choose a country in the market (one of the store's languages, or null).
The primary market is the store's own: it can't be disabled or deleted, sells in the store's currency at its products' prices, and only its name and countries change. Turning on a market (creating it enabled, or enabled: true) needs room in the store's plan.
{
"market": {
"name": "Europe",
"countries": [
"DE",
"FR",
"NL",
"BE"
],
"currency": "EUR",
"exchange_rate_mode": "automatic",
"price_adjustment_percent": 5,
"rounding": "95"
}
}curl -X POST "https://store.weftgrid.com/api/admin/2026-10/markets.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"market": {
"name": "Europe",
"countries": [
"DE",
"FR",
"NL",
"BE"
],
"currency": "EUR",
"exchange_rate_mode": "automatic",
"price_adjustment_percent": 5,
"rounding": "95"
}
}'Example responseShowHide
{
"market": {
"id": "cm2market02",
"name": "Europe",
"primary": false,
"enabled": true,
"countries": [
"AT",
"BE",
"DE",
"ES",
"FR",
"IE",
"IT",
"NL",
"PT"
],
"rest_of_world": false,
"currency": "EUR",
"exchange_rate_mode": "automatic",
"exchange_rate": 0.8598,
"manual_exchange_rate": null,
"price_adjustment_percent": 5,
"rounding": "95",
"tax_rate_percent": null,
"taxes_included": null,
"locale": null,
"position": 2,
"fixed_prices_count": 2,
"created_at": "2026-10-02T09:00:00.000Z",
"updated_at": "2026-10-24T15:20:00.000Z"
}
}Update a market#
/markets/{id}.jsonwrite_marketsFields you leave out keep their values. enabled: false turns a market off: its countries are sold to like the rest of the world. Changing currency removes the market's fixed prices (they were in the old currency).
countries lists two-letter ISO codes (country names work too), or is ["*"] (or rest_of_world: true) for every country that isn't in another market. A country can be in one enabled market only, and one enabled market at most covers the rest of the world. While the primary market covers the rest of the world, a market taking it over sends primary_countries (like ["PK"]) to give the primary market its own countries in the same request.
currency is a supported ISO code. exchange_rate_mode is automatic (the platform's daily rate) or manual with manual_exchange_rate: units of the market's currency per unit of the store's. price_adjustment_percent (-50 to 100) is added to converted prices, then rounding (none, whole, 99, 95 or 90) rounds them up. Fixed prices win over all three.
tax_rate_percent and taxes_included override the store's tax settings in the market (null: the store's). locale is the storefront language shoppers switch to when they choose a country in the market (one of the store's languages, or null).
The primary market is the store's own: it can't be disabled or deleted, sells in the store's currency at its products' prices, and only its name and countries change. Turning on a market (creating it enabled, or enabled: true) needs room in the store's plan.
{
"market": {
"rounding": "99",
"price_adjustment_percent": 3,
"enabled": true
}
}curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/markets/$MARKET_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"market": {
"rounding": "99",
"price_adjustment_percent": 3,
"enabled": true
}
}'Example responseShowHide
{
"market": {
"id": "cm2market02",
"name": "Europe",
"primary": false,
"enabled": true,
"countries": [
"AT",
"BE",
"DE",
"ES",
"FR",
"IE",
"IT",
"NL",
"PT"
],
"rest_of_world": false,
"currency": "EUR",
"exchange_rate_mode": "automatic",
"exchange_rate": 0.8598,
"manual_exchange_rate": null,
"price_adjustment_percent": 5,
"rounding": "95",
"tax_rate_percent": null,
"taxes_included": null,
"locale": null,
"position": 2,
"fixed_prices_count": 2,
"created_at": "2026-10-02T09:00:00.000Z",
"updated_at": "2026-10-24T15:20:00.000Z"
}
}Delete a market#
/markets/{id}.jsonwrite_marketsNot the primary market. Its fixed prices go with it, carts priced in it go back to the primary market, and its countries are sold to like the rest of the world. Orders keep their currency and exchange rate.
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/markets/$MARKET_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{}List a market's fixed prices#
/markets/{id}/prices.jsonread_marketsFixed prices are decimal strings in the market's currency, by variant. They replace the converted price everywhere shoppers in the market see it (product pages, collections, the cart and checkout) and aren't adjusted or rounded. Variants without one show the converted price; they aren't listed.
| Parameter | Description |
|---|---|
variant_ids | Comma-separated variant ids. |
limit | Results per page, 1–250 (default 50). |
page_info | Cursor from the Link header for the next or previous page. |
curl "https://store.weftgrid.com/api/admin/2026-10/markets/$MARKET_ID/prices.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"currency": "EUR",
"prices": [
{
"variant_id": "cm2vari0009",
"price": "21.95",
"compare_at_price": null,
"updated_at": "2026-10-24T15:20:00.000Z"
}
]
}Set fixed prices#
/markets/{id}/prices.jsonwrite_marketsFixed prices are decimal strings in the market's currency, by variant. They replace the converted price everywhere shoppers in the market see it (product pages, collections, the cart and checkout) and aren't adjusted or rounded. Send up to 5000 variants; price: null clears a variant's fixed price (back to converted). compare_at_price is optional and must be higher than the price. The response lists the fixed prices the sent variants have now, and the ones cleared. Not for the primary market.
{
"prices": [
{
"variant_id": "cm2vari0009",
"price": "21.95",
"compare_at_price": null
},
{
"variant_id": "cm2vari0010",
"price": null
}
]
}curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/markets/$MARKET_ID/prices.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prices": [
{
"variant_id": "cm2vari0009",
"price": "21.95",
"compare_at_price": null
},
{
"variant_id": "cm2vari0010",
"price": null
}
]
}'Example responseShowHide
{
"currency": "EUR",
"prices": [
{
"variant_id": "cm2vari0009",
"price": "21.95",
"compare_at_price": null,
"updated_at": "2026-10-24T15:20:00.000Z"
}
],
"cleared_variant_ids": [
"cm2vari0010"
]
}