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

The company that the location is associated with.

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.

The address of the location.

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": {},
"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?