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•Date
At Time!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•Draft
Orders Order Connection!non-null The list of draft orders for the company contact.
- •ID!non-null
A globally-unique ID.
- Anchor to isMainContactis•Boolean!non-null
Main Contact Whether the contact is the main contact of the company.
- Anchor to lifetimeDurationlifetime•String!non-null
Duration The lifetime duration of the company contact, since its creation date on Shopify. Examples:
1 year
,2 months
,3 days
.- Anchor to localelocale•String
The company contact's locale (language).
- Anchor to ordersorders•Order
Connection!non-null The list of orders for the company contact.
- Anchor to roleAssignmentsrole•Company
Assignments Contact Role Assignment Connection!non-null The list of roles assigned to this company contact.
- Anchor to titletitle•String
The company contact's job title.
- Anchor to updatedAtupdated•Date
At Time!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!required
Id The ID of the company to assign the contact to.
- Anchor to customerIdcustomer•ID!required
Id The ID of the customer to assign as the contact.
Arguments
- Anchor to companyContactcompany•Company
Contact Contact The created company contact.
- Anchor to userErrorsuser•[Business
Errors Customer 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!required
Id 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•Company
Contact Contact The created company contact.
- Anchor to userErrorsuser•[Business
Errors Customer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a company contact.
- Anchor to companyContactIdcompany•ID!required
Contact Id 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•Company
Contact Contact The updated company contact.
- Anchor to userErrorsuser•[Business
Errors Customer User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields