Skip to main content
Glama
company_location.md2.31 kB
# company_location A location within a [company](https://shopify.dev/docs/api/liquid/objects/company) that a [customer](https://shopify.dev/docs/api/liquid/objects/customer) is purchasing for. For additional context on B2B implementation, see [Support B2B customers in your theme](https://shopify.dev/themes/pricing-payments/b2b). ## Properties | Property | Type | Description | |----------|------|-------------| | `company` | [company](https://shopify.dev/docs/api/liquid/objects/company) | The company associated with this location. | | `current?` | [boolean](https://shopify.dev/docs/api/liquid/basics#boolean) | Indicates whether this location is currently selected (`true` or `false`). | | `external_id` | [string](https://shopify.dev/docs/api/liquid/basics#string) | The external identifier for the location. | | `id` | [number](https://shopify.dev/docs/api/liquid/basics#number) | The numeric identifier of the location. | | `metafields` | array of [metafield](https://shopify.dev/docs/api/liquid/objects/metafield) | Custom metafields attached to the company location. See [Create and manage metafields](https://shopify.dev/apps/metafields/manage) for details. | | `name` | [string](https://shopify.dev/docs/api/liquid/basics#string) | The location's display name. | | `shipping_address` | [company_address](https://shopify.dev/docs/api/liquid/objects/company_address) | The shipping address for this location. | | `store_credit_account` | [store_credit_account](https://shopify.dev/docs/api/liquid/objects/store_credit_account) | The store credit account in the location's current currency context. Returns `nil` if unavailable. | | `tax_registration_id` | [number](https://shopify.dev/docs/api/liquid/basics#number) | The tax identifier for the location. | | `url_to_set_as_current` | [string](https://shopify.dev/docs/api/liquid/basics#string) | URL to designate this location as the customer's active location. | ## Example ```json { "company": {}, "current?": false, "external_id": null, "id": 98369, "metafields": {}, "name": "99 Cauldron Lane", "shipping_address": {}, "store_credit_account": null, "tax_registration_id": null, "url_to_set_as_current": "https://polinas-potent-potions.myshopify.com/company_location/update?location_id=98369&return_to=/resource" } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server