CopyHero

Get Store Locations

GET
/api/v1/stores/{store_id}/locations

Fetch active inventory locations from Shopify store.

This is a proxy endpoint that forwards the request to Shopify and returns the locations directly to the frontend. Requires the store to have the read_locations scope (part of the inventory_levels feature); a scope-less store surfaces Shopify's access error as a 500, mirroring the publications route.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

store_id*Store Id

Response Body

Successful Response

application/json
  1. response
data*array<>

List of active inventory locations

count*Count

Total number of locations

Example Request
curl -X GET 'https://app.copyhero.app/api/v1/stores/0/locations'
Example Response
{  "data": [    {      "id": "string",      "name": "string"    }  ],  "count": 0}