Create market
POST
/ admin/ v1/ stores/ {store_id}/ markets- settings:write
- Idempotency-Key supported
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequiredcountriesarray of stringsrequiredAt most 60; not the store's own country, nor another market's.
currencystringrequiredexchange_ratestringrequiredMarket currency per one unit of the store's currency, up to 8 decimals.
roundingenumrequiredHow converted product prices are rounded.
- none
- whole
- ending_99
- ending_95
adjustment_bpinteger−5000..= 10000 basis points.
domainstring · or nullactiveboolean
Returns
201 Created.
Errors
- 422
validation_failedInvalid fields, or a country in another market.