Company Contact
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
A person that acts on behalf of company associated to a customer.
Anchor to Fields and connectionsFields and connections
- Anchor to companycompany•Company!non-null
The company to which the contact belongs.
- Anchor to createdAtcreated•
At DateTime!non-null The date and time (ISO 8601 format) at which the company contact was created at Shopify.
- Anchor to customercustomer•Customer!non-null
The customer associated to this contact.
- Anchor to draftOrdersdraft•
Orders DraftOrder Connection!non-null The list of draft orders for the company contact.
- •ID!non-null
A globally-unique ID.
- Anchor to isMainContactis•
Main Contact Boolean!non-null Whether the contact is the main contact of the company.
- Anchor to lifetimeDurationlifetime•
Duration String!non-null The lifetime duration of the company contact, since its creation date on Shopify. Examples:
1 year
,2 months
,3 days
.- Anchor to localelocale•
The company contact's locale (language).
- Anchor to ordersorders•Order
Connection!non-null The list of orders for the company contact.
- Anchor to roleAssignmentsrole•
Assignments The list of roles assigned to this company contact.
- Anchor to titletitle•
The company contact's job title.
- Anchor to updatedAtupdated•
At DateTime!non-null The date and time (ISO 8601 format) at which the company contact was last updated.
Anchor to MutationsMutations
- •mutation
Assigns the customer as a company contact.
- Anchor to companyIdcompany•
Id ID!required The ID of the company to assign the contact to.
- Anchor to customerIdcustomer•
Id ID!required The ID of the customer to assign as the contact.
Arguments
- Anchor to companyContactcompany•
Contact The created company contact.
- Anchor to userErrorsuser•
Errors [BusinessCustomer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Creates a company contact and the associated customer.
- Anchor to companyIdcompany•
Id ID!required The ID of the company that the company contact belongs to.
- Anchor to inputinput•Company
Contact Input!required The fields to use to create the company contact.
Arguments
- Anchor to companyContactcompany•
Contact The created company contact.
- Anchor to userErrorsuser•
Errors [BusinessCustomer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a company contact.
- Anchor to companyContactIdcompany•
Contact Id ID!required The ID of the company contact to be updated.
- Anchor to inputinput•Company
Contact Input!required The fields to use to update the company contact.
Arguments
- Anchor to companyContactcompany•
Contact The updated company contact.
- Anchor to userErrorsuser•
Errors [BusinessCustomer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields