Skip to main content

company_location

A location of the company that a customer is purchasing for.

To learn about B2B in themes, refer to Support B2B customers in your theme.

Properties

Anchor to
company

The company that the location is associated with.

Anchor to
current?

Returns true if the location is currently selected. Returns false if not.

Anchor to
external_id

The external ID of the location.

The ID of the location.

Anchor to
metafields
array of metafield

The metafields applied to the company location.

Tip

To learn about how to create metafields, refer to Create and manage metafields or visit the Shopify Help Center.

The name of the location.

Anchor to
shipping_address

The address of the location.

Anchor to
store_credit_account

The store credit account associated with the company location.

The account shown will be in the currency associated with the company location’s current context. For example, when browsing a storefront for a company location in the US market, the company location's USD store credit account will be returned. If the company location does not have a USD store credit account nil will be returned.

Anchor to
tax_registration_id

The tax ID of the location.

Anchor to
url_to_set_as_current

The URL to set the location as the current location for the customer.

{
"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"
}
Was this section helpful?