Skip to content

Create market

POST/admin/v1/stores/{store_id}/markets
  • settings:write
  • Idempotency-Key supported

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namestringrequired
  • countriesarray of stringsrequired

    At most 60; not the store's own country, nor another market's.

  • currencystringrequired
  • exchange_ratestringrequired

    Market currency per one unit of the store's currency, up to 8 decimals.

  • roundingenumrequired

    How converted product prices are rounded.

    • none
    • whole
    • ending_99
    • ending_95
  • adjustment_bpinteger

    −5000..= 10000 basis points.

  • domainstring · or null
  • activeboolean

Returns

201 Created.

Errors

  • 422validation_failedInvalid fields, or a country in another market.