Query market list
GET https://{handle}.myshopline.com/admin/openapi/v20260301/markets.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Query markets created for the store.
Query Parameters
- limit integerThe maximum query quantity limit for markets.Default value:
50Value range:0-100Example:2 - page_info stringThe unique identifier for pagination queries, used to locate a specific page.This parameter value is obtained from the
linkvalue in the response header of this API after you have queried the pagination information.For example, if thelinkvalue you obtained is<https://{handle}.myshopline.com/admin/openapi/{version}/markets.json?limit=1&page_info=eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9>; rel="next", the value ofpage_infoiseyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9. For more information on how to use pagination, refer to Paging Mechanism.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
- 200
- 401
- 429
- 500
For the complete list of codes and messages, see Http status code.
Response Headers
link
The URL link that provides the pagination data. You can obtainpage_infofrom this parameter for subsequent pagination requests.This parameter is returned when the requested page has a previous or next page.For more information on how to use pagination, refer to Paging Mechanism.traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
marketsobject[]
Market list.enabled booleanIndicate whether the market is avaliable.true: availablefalse: unavailable
Example:truemarket_id stringThe unique identifier for the market.Example:2805657769119556579334market_name stringName of the market.Example:US-MARKETprice_listobject
Market product price information.parentobject
The price adjustment details.adjustmentobject
The configuration for adjusting the market's product prices relative to the default price.type stringThe type for adjusting the market's product prices relative to the default price.PERCENTAGE_INCREASE: increasePERCENTAGE_DECREASE: decrease
Example:PERCENTAGE_DECREASEvalue floatThe market's relative price adjustment percentage.Value range:0-100Example:10primary booleanIndicate whether the market is primary market.true: The market is primary market.false: The market is not primary market.
Example:trueregionsobject[]
A list of country or region information of the market.code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region. For example,US.Example:UScurrencyobject
Order currency details.currency_code stringThe order currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example,USD.Example:USDweb_presenceobject
Market domain name configuration.alternate_locales arrayA list of alternate locales, representing additional languages or regions supported by a market.Example:["[\"us\"]"]default_locale stringDefault locale, referring to the primary languages or regions of a market, which is typically the default content displayed when users access the market.Example:usroot_urlsobject[]
A list of regional root domain names.locale stringThe locale that the storefront loads in.Example:usurl stringThe domain name corresponding to the store.Example:https://myshopline.comsubfolder_suffix stringSubfolder-specific suffix, used in the URL to distinguish content for different languages or regions.Example:suffixcurrency_settingsobject
The setting of the selling price currency.base_currencyobject
The setting information of the selling price currency.auto_exchange_rate booleanThe system automatically updates exchange rates or not.true: The system automatically updates the exchange rates.false: The merchant needs to manually update the exchange rates.
Example:truecurrency_code stringCurrency displayed for product prices. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example,USD.Example:USDcurrency_name stringThe currency name of the selling price.Example:USDexchange_rate stringThe exchange rate of USD to the target currency. It only has a value whenauto_exchange_rateisfalse.Example:1.01234567891rate_updated_at stringThe date and time when the system automatically updated the exchange rate. The value of this field follows the ISO 8601 standard time format. For example,2019-09-07T15:50:00Z.Example:2019-09-07T15:50:00Zlocal_currencies booleanUse the local currency or not.true: use the local currencyfalse: not use the local currency
Example:true
API Explorer
Debugger
Examples
Was this article helpful to you?