openapi: 3.1.0 info: title: Shopify Admin REST Collections Locations API description: 'The Shopify Admin REST API lets you build apps and integrations that extend and enhance the Shopify admin. It provides access to products, customers, orders, inventory, fulfillment, shipping, and store configuration. All requests require a valid Shopify access token. Note: Shopify is deprecating the REST Admin API in favor of GraphQL. New development should use the GraphQL Admin API.' version: 2024-10 termsOfService: https://www.shopify.com/legal/api-terms contact: name: Shopify Developer Support url: https://shopify.dev/docs/api/admin-rest license: name: API Terms of Service url: https://www.shopify.com/legal/api-terms servers: - url: https://{store_name}.myshopify.com/admin/api/2024-10 description: Shopify Admin REST API variables: store_name: description: The name of the Shopify store default: mystore security: - AccessToken: [] tags: - name: Locations paths: /locations.json: get: operationId: listLocations summary: List Locations description: Retrieves a list of locations for the store. tags: - Locations responses: '200': description: Successful response with list of locations content: application/json: schema: type: object properties: locations: type: array items: $ref: '#/components/schemas/Location' components: schemas: Location: type: object properties: id: type: integer format: int64 name: type: string address1: type: string address2: type: string nullable: true city: type: string zip: type: string province: type: string country: type: string phone: type: string nullable: true active: type: boolean legacy: type: boolean securitySchemes: AccessToken: type: apiKey in: header name: X-Shopify-Access-Token description: Shopify access token for authentication