Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

object

Requires read_customers access scope or read_companies access scope. Also: The API client must be installed on a Shopify Plus store.

Represents information about a company which is also a customer of the shop.

Anchor to Fields and connectionsFields and connections

•

The list of roles for the company contacts.

•

The list of contacts in the company.

•

The number of contacts that belong to the company.

•
DateTime!non-null

The date and time (ISO 8601 format) at which the company was created in Shopify.

•
DateTime!non-null

The date and time (ISO 8601 format) at which the company became the customer.

•
String!non-null

A default cursor that returns the single next record, sorted ascending by ID.

•

The role proposed by default for a contact at the company.

•

The list of the company's draft orders.

•

The paginated list of events associated with the host subject.

•

A unique externally-supplied ID for the company.

•
Boolean!non-null

Whether the merchant added a timeline comment to the company.

•
ID!non-null

A globally-unique ID.

•
String!non-null

The lifetime duration of the company, since it became a customer of the shop. Examples: 2 days, 3 months, 1 year.

•

The list of locations in the company.

•

The number of locations that belong to the company.

•

The main contact for the company.

•

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

•

A list of custom fields that a merchant associates with a Shopify resource.

•
String!non-null

The name of the company.

•

A note about the company.

•

The list of the company's orders.

•

The total number of orders placed for this company, across all its locations.

•
MoneyV2!non-null

The total amount spent by this company, across all its locations.

•
DateTime!non-null

The date and time (ISO 8601 format) at which the company was last modified.

Show
deprecated fields and connections Deprecated
•
Int!non-nullDeprecated

The number of contacts that belong to the company. Use contactsCount instead.

Anchor to metafieldDefinitionsmetafieldDefinitions
•

List of metafield definitions. This field will be removed in a future version. Use the root metafieldDefinitions field instead.

•

Returns a private metafield by namespace and key that belongs to the resource. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.

•
PrivateMetafieldConnection!non-nullDeprecated

List of private metafields that belong to the resource. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.


Was this section helpful?

•
query

Returns the list of companies in the shop.

•
query

Returns a Company object by ID.


Was this section helpful?

•
mutation

Assigns the main contact for the company.

•
mutation

Creates a company.

•
mutation

Revokes the main contact from the company.

•
mutation

Updates a company.


Was this section helpful?