Menu
companyContactCreate
Creates a company contact and the associated customer.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the companyContactCreate action (under Company).
- Fill in the fields below, then reference the result from later steps as
{{companycontactcreate.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation CompanyContactCreate($companyId: ID!, $input: CompanyContactInput!) {
companyContactCreate(companyId: $companyId, input: $input) {
companyContact {
company {
contactCount
contactsCount
createdAt
customerSince
defaultCursor
defaultRole
externalId
hasTimelineComment
id
lifetimeDuration
locationsCount
mainContact
name
note
ordersCount
totalSpent
updatedAt
}
createdAt
customer {
amountSpent
canDelete
companyContactProfiles
createdAt
dataSaleOptOut
defaultAddress
defaultEmailAddress
defaultPhoneNumber
displayName
email
emailMarketingConsent
firstName
hasTimelineComment
id
identityProviderSubjects
lastName
lastOrder
legacyResourceId
lifetimeDuration
locale
market
mergeable
multipassIdentifier
note
numberOfOrders
phone
productSubscriberStatus
smsMarketingConsent
state
statistics
tags
taxExempt
taxExemptions
taxSettings
unsubscribeUrl
updatedAt
validEmailAddress
verifiedEmail
}
id
isMainContact
lifetimeDuration
locale
title
updatedAt
}
userErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"companyId": "string",
"input": {
"firstName": "string",
"lastName": "string",
"email": "string",
"title": "string",
"locale": "string",
"phone": "string"
}
}
Response
Read the result with {{companycontactcreate.response.data.data.companyContactCreate}}. If the API returns errors, the step fails and they are at {{companycontactcreate.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?