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.

query

Returns a Company object by ID.

•
ID!required

The ID of the Company to return.


Was this section helpful?

•

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

contactRoles•
non-null

The list of roles for the company contacts.

contacts•
non-null

The list of contacts in the company.

contactsCount•

The number of contacts that belong to the company.

createdAt•
non-null

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

customerSince•
non-null

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

defaultCursor•
non-null

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

defaultRole•

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

draftOrders•
non-null

The list of the company's draft orders.

events•
non-null

The paginated list of events associated with the host subject.

externalId•

A unique externally-supplied ID for the company.

hasTimelineComment•
non-null

Whether the merchant added a timeline comment to the company.

id•
non-null

A globally-unique ID.

lifetimeDuration•
non-null

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

locations•
non-null

The list of locations in the company.

locationsCount•

The number of locations that belong to the company.

mainContact•

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.

metafields•
non-null

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

name•
non-null

The name of the company.

note•

A note about the company.

orders•
non-null

The list of the company's orders.

ordersCount•

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

totalSpent•
non-null

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

updatedAt•
non-null

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

contactCount•
non-nullDeprecated

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

metafieldDefinitions•
non-nullDeprecated

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

privateMetafield•
Deprecated

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.

privateMetafields•
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?