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.
Represents information about a company which is also a customer of the shop.
contactRoles•
CompanyContactRoleConnection!
non-null
The list of roles for the company contacts.
contacts•
CompanyContactConnection!
non-null
The list of contacts in the company.
contactsCount•
Count
The number of contacts that belong to the company.
createdAt•
DateTime!
non-null
The date and time (ISO 8601 format) at which the company was created in Shopify.
customerSince•
DateTime!
non-null
The date and time (ISO 8601 format) at which the company became the customer.
defaultCursor•
String!
non-null
A default cursor that returns the single next record, sorted ascending by ID.
defaultRole•
CompanyContactRole
The role proposed by default for a contact at the company.
draftOrders•
DraftOrderConnection!
non-null
The list of the company's draft orders.
events•
EventConnection!
non-null
The paginated list of events associated with the host subject.
externalId•
String
A unique externally-supplied ID for the company.
hasTimelineComment•
Boolean!
non-null
Whether the merchant added a timeline comment to the company.
id•
ID!
non-null
A globally-unique ID.
lifetimeDuration•
String!
non-null
The lifetime duration of the company, since it became a customer of the shop. Examples: 2 days, 3 months, 1 year.
locations•
CompanyLocationConnection!
non-null
The list of locations in the company.
locationsCount•
Count
The number of locations that belong to the company.
mainContact•
CompanyContact
The main contact for the company.
metafield•
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•
MetafieldConnection!
non-null
A list of custom fields
that a merchant associates with a Shopify resource.
name•
String!
non-null
The name of the company.
note•
String
A note about the company.
orders•
OrderConnection!
non-null
The list of the company's orders.
ordersCount•
Count
The total number of orders placed for this company, across all its locations.
totalSpent•
MoneyV2!
non-null
The total amount spent by this company, across all its locations.
updatedAt•
DateTime!
non-null
The date and time (ISO 8601 format) at which the company was last modified.
contactCount•
Int!
non-nullDeprecated
The number of contacts that belong to the company. Use contactsCount instead.
metafieldDefinitions•
MetafieldDefinitionConnection!
non-nullDeprecated
List of metafield definitions. This field will be removed in a future version. Use the root metafieldDefinitions field instead.
privateMetafield•
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•
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.