OverviewPlatformsAPI ReferenceResources
Commerce

List locations

GEThttps://zernio.com/api/v1/commerce/locations

The store's stock locations (warehouses, shops).

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

Connected store SocialAccount id.

Responses

Success· the request worked

Errors· the request failed

GET/v1/commerce/locations
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.listCommerceLocations({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "locations": [    {      "id": "string",      "name": "string",      "isActive": true,      "fulfillsOnlineOrders": true,      "address": {        "line1": "string",        "line2": "string",        "city": "string",        "region": "string",        "postalCode": "string",        "countryCode": "string",        "phone": "string"      }    }  ]}
OpenAPI specification
Was this page helpful?