Skip to main content
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

•CompanyContactRoleConnection!non-null

The list of roles for the company contacts.

•CompanyContactConnection!non-null

The list of contacts in the company.

•Count

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.

•CompanyContactRole

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

•DraftOrderConnection!non-null

The list of the company's draft orders.

•EventConnection!non-null

The paginated list of events associated with the host subject.

•String

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.

•CompanyLocationConnection!non-null

The list of locations in the company.

•Count

The number of locations that belong to the company.

•CompanyContact

The main contact for the company.

•Metafield

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

•MetafieldConnection!non-null

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

•String!non-null

The name of the company.

•String

A note about the company.

•OrderConnection!non-null

The list of the company's orders.

•Count

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.

Deprecated fields and connections

•Int!non-nullDeprecated
Anchor to metafieldDefinitionsmetafieldDefinitions
•MetafieldDefinitionConnection!non-nullDeprecated

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.

Arguments

•ID!required

The ID of the company contact to be assigned as the main contact.

•ID!required

The ID of the company to assign the main contact to.


Fields

•Company

The company for which the main contact is assigned.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a company.

Arguments

•CompanyCreateInput!required

The fields to use when creating the company.


Fields

•Company

The created company.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Revokes the main contact from the company.

Arguments

•ID!required

The ID of the company to revoke the main contact from.


Fields

•Company

The company from which the main contact is revoked.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a company.

Arguments

•ID!required

The ID of the company to be updated.

•CompanyInput!required

The input fields to update the company.


Fields

•Company

The updated company.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?