Customer records, custom fields, and audience membership.
Queries
customerFields
Lists CustomerFields
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)byStatus(CustomerFieldStatusFilter) — The status of the CustomerField to filter results byfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)isCustom(Boolean) — Whether or not the CustomerField is a custom fieldlast(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to filter resultssortBy(SortCustomerFieldsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: CustomerFieldConnection! — A connection to a list of items.
customerFieldsByIds
A list of CustomerFields by IDs
Arguments
ids([ID!]!) — The IDs of the CustomerFields
Returns: [CustomerField]! — A field on a Customer profile
customerFieldsByKeys
A list of CustomerFields by keys
Arguments
keys([String!]!) — The keys of the CustomerFields
Returns: [CustomerField]! — A field on a Customer profile
customersByExternalIds
A list of Customers by integrated customer external IDs
Arguments
externalIds([ID!]!) — The external IDs of the integrated customersintegrationId(ID!) — The ID of the Integration
Returns: [Customer]! — A profile for an individual contact
searchCustomerFields
Deprecated: Use Query.customerFields instead
Lists CustomerFields
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)byStatus(CustomerFieldStatusFilter) — The status of the CustomerField to filter results byfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)isCustom(Boolean) — Whether or not the CustomerField is a custom fieldlast(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to filter resultssortBy(SortCustomerFieldsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: CustomerFieldConnection! — A connection to a list of items.
searchCustomers
Searches Customers
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to applysortBy(SortCustomersBy) — The sort keysortDir(SortDirection) — The sort directiontimeZone(String) — The time zone to use for the search
Returns: CustomerConnection! — A connection to a list of items.
searchCustomersInAudience
Searches Customers
Arguments
after(String) — A cursor to search after (only include first & after or last & before)audienceId(ID!) — The ID of the audience to search inbefore(String) — A cursor to search before (only include first & after or last & before)first(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to applysearchAsTeamId(ID!) — The ID of the Team to search assearchAsUserId(ID!) — The ID of the User to search assortBy(SortCustomersBy) — The sort keysortDir(SortDirection) — The sort directiontimeZone(String!) — The time zone to use for the search
Returns: CustomerConnection! — A connection to a list of items.
Mutations
createCustomer
Creates a new Customer
Arguments
assignedTo([ID!]) — The Users assigned to the Customerattributes([CustomerFieldAttributeCreateInput!]) — The Customer's attributescreatorId(ID) — The User who is creating the Customer
Returns: CreateCustomerPayload!
createCustomerField
Creates a new CustomerField
Arguments
allowMultiple(Boolean!) — Whether the CustomerField allows multiple valuescurrency(Currency) — The currency of the CustomerFieldcustomerFieldGroupId(ID) — (optional) The initial customer field group to assign this field todescription(String) — The description of the CustomerFieldisUserEditable(Boolean!) — Whether the CustomerField is user editablekey(String!) — The key of the CustomerFieldlabel(String!) — The label of the CustomerFieldoptions([CustomerFieldOptionInput!]) — The options of the CustomerFieldorder(CustomerFieldOrder) — The order of preference for single-value CustomerFieldstype(CustomerFieldType!) — The type of the CustomerField
Returns: CreateCustomerFieldPayload!
initiateCustomerMerge
Initiates a background process to merge multiple Customers into one
Arguments
merges([MergeCustomersInput!]!) — The list of merges to perform
Returns: InitiateCustomerMergePayload!
requestCustomerDeletion
Queues a Customer to be deleted
Arguments
identifier(String!) — The identifier that will be used to find the customer to be deletedidentifierType(CustomerDeletionIdentifierType!) — The identifier type
Returns: RequestCustomerDeletionPayload!
updateCustomerField
Updates an existing CustomerField
Arguments
actor(ActorContext) — The context of the User & Team making the requestdescription(String) — The description of the CustomerFieldid(ID!) — The ID of the CustomerField to updateisAiEditable(Boolean) — Whether the CustomerField is AI editableisHidden(Boolean) — Whether the CustomerField is hiddenisUserEditable(Boolean) — Whether the CustomerField is user editablelabel(String) — The label of the CustomerFieldllmDescription(String) — The description of the CustomerField for AIoptions([CustomerFieldOptionInput!]) — The options of the CustomerField. Pass null to clear, omit to leave unchanged.
Returns: UpdateCustomerFieldPayload!
updateCustomerFieldAttributes
Applies a set of CustomerFieldAttributeChanges to a Customer
Arguments
changes([CustomerFieldAttributeChangeInput!]!) — The CustomerFieldAttributeChanges to applyid(ID!) — The ID of the Customer to apply the changes tokey(String!) — The key of the CustomerField to apply the changes to
Returns: UpdateCustomerFieldAttributesPayload!
updateCustomerV2
Updates a Customer
Arguments
archived(Boolean!) — Whether the Customer is archivededitorId(ID) — The ID of the user who is editing the Customerid(ID!) — The ID of the Customer to update
Returns: UpdateCustomerV2Payload!
Objects
CreateCustomerError
Fields
additional_details(String)code(CreateCustomerErrorCode!)human_readable_message(String!)
CreateCustomerFailure
Fields
errors([CreateCustomerError!]!)
CreateCustomerFieldError
Fields
code(CreateCustomerFieldErrorCode!)human_readable_message(String!)
CreateCustomerFieldFailure
Fields
errors([CreateCustomerFieldError!]!)
CreateCustomerFieldSuccess
Fields
customerField(CustomerField!)
CreateCustomerSuccess
Fields
customer(EditableCustomer!)
Customer
A profile for an individual contact
Fields
accepts_marketing(Boolean) — Whether the Customer accepts marketing — 🚧 Deprecated: Use EmailMarketingSubscription & SmsMarketingSubscriptionaddresses([String!]!) — The associated physical addresses of the Customeraggregations(CustomerAggregation!) — Aggregated metrics about the Customerassigned_users([User]!) — The Users that are assigned to the Customerbirthday(String) — The birthday of the Customer in one of the following formats: YYYY/MM/DD, MM/DD, MMcities([String!]!) — All of the cities of the Customercountries([String!]!) — All of the countries of the Customercreated_at(DateTime!) — The date the Customer was createdcreator(User) — The User that created the Customercustom_fields([CustomerCustomField!]!) — The custom fields associated to the Customerdefault_address(String) — The associated default physical address of the Customerdefault_address_line_1(String) — The first line of the default physical address of the Customerdefault_address_line_2(String) — The second line of the default physical address of the Customerdefault_city(String) — The city of the Customerdefault_country(String) — The country of the Customerdefault_email_address(String) — The default email address of the Customerdefault_phone_number(String) — The default phone number of the Customerdefault_postal_code(String) — The postal code of the Customerdefault_province(String) — The state/province of the Customerdeleted_at(DateTime) — The date the Customer was deleteddisplay_name(String) — The display identifier of the Customeremail_addresses([String!]!) — All of the associated email addresses of the Customeremail_marketing_subscriptions([EmailMarketingSubscription!]!) — The EmailMarketingSubscriptions of the Customerfirst_name(String) — The first name of the Customerfirst_seen(DateTime) — The date the Customer first interacted with the Brandfull_name(String) — The full name of the Customerid(ID!) — The unique identifier of the Customerintegrated_customers([IntegratedCustomer!]!) — The IntegratedCustomers of the Customeris_archived(Boolean!) — Whether the Customer has been archivedis_merged(Boolean!) — Whether the Customer has been mergedlast_name(String) — The last name of the Customermerged([Customer!]!) — The Customers that were merged into this onemerged_into(Customer) — The Customer that this Customer was merged intophone_numbers([String!]!) — All of the associated phone numbers of the Customerpostal_codes([String!]!) — All of the postal codes of the Customerprovinces([String!]!) — All of the states/provinces of the Customersms_marketing_subscriptions([SmsMarketingSubscription!]!) — The SmsMarketingSubscriptions of the Customertags([String!]!) — The tags associated with the Customerupdated_at(DateTime!) — The date the Customer was last updatedweb_url(URL!) — The URL to the Customer inside the web application — 🚧 Deprecated: No longer supported
CustomerAggregation
Aggregated metrics about a Customer's history
Fields
average_order_value(Money) — The average amount of money spent per-order by the Customertotal_discount_value(Money!) — The total amount of discounts applied to the Customertotal_number_of_items(NonNegativeInt!) — The total number of items purchased by the Customertotal_number_of_orders(NonNegativeInt!) — The total number of purchases made by the Customertotal_refund_value(Money!) — The total amount of refunds issued to the Customertotal_spent(Money!) — The total amount of money spent by the Customer in their lifetime
CustomerConnection
A connection to a list of items.
Fields
edges([CustomerEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
CustomerCustomField
Fields
field(CustomerField!) — The CustomerField associated to the CustomerCustomFieldvalues([String!]!) — The values for the CustomerCustomField as a list of strings
CustomerDeletion
A request to delete a Customer's data
Fields
created_at(DateTime!) — The date and time the CustomerDeletion was createdid(ID!) — The ID of the CustomerDeletionidentifier(String!) — The identifier of the Customer to be deletedidentifier_type(CustomerDeletionIdentifierType!) — The type of identifier used to find the Customerrequested_by_integration(Integration)requested_by_user(User)
CustomerEdge
An edge in a connection.
Fields
CustomerField
A field on a Customer profile
Fields
allow_multiple(Boolean!) — Whether the CustomerField allows multiple valuescreated_at(DateTime!) — The date the CustomerField was createdcurrency(Currency) — The currency of the CustomerFielddescription(String!) — The description of the CustomerFieldid(ID!) — The unique identifier of the CustomerFieldis_custom(Boolean!) — Whether the CustomerField is a custom fieldis_hidden(Boolean!) — Whether the CustomerField is hiddenis_user_editable(Boolean!) — Whether the CustomerField is user editablekey(String!) — The key of the CustomerFieldlabel(String!) — The label of the CustomerFieldoptions([CustomerFieldOption!]) — The options of the CustomerFieldorder(CustomerFieldOrder!) — The order of values of the CustomerFieldtype(CustomerFieldType!) — The datatype of the CustomerFieldupdated_at(DateTime!) — The date the CustomerField was last updated
CustomerFieldAiSourceInfo
AI provenance metadata for an EditableCustomerFieldAttribute whose value was written by the AI Notetaker
Fields
created_at(DateTime!) — When the AI wrote this field valuenote_id(ID) — The ID of the source note, if availablesource_excerpt(String) — The excerpt from the note that the AI used to set this field value
CustomerFieldAttributeAbsoluteDateValue
An absolute date value for a CustomerFieldAttribute
Fields
as_absolute_date(DateTime!) — The absolute date representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeBooleanValue
A boolean value for a CustomerFieldAttribute
Fields
as_boolean(Boolean!) — The boolean representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeEmailAddressValue
An email address value for a CustomerFieldAttribute
Fields
as_email_address(String!) — The email address representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeLocationValue
A location value for a CustomerFieldAttribute
Fields
as_location(Address!) — The location representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeNumberValue
A number value for a CustomerFieldAttribute
Fields
as_number(Decimal!) — The number representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributePhoneNumberValue
A phone number value for a CustomerFieldAttribute
Fields
as_phone_number(String!) — The phone number representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeRecurringDateValue
A recurring date value for a CustomerFieldAttribute
Fields
as_recurring_date(PartialLocalDate!) — The recurring date representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeStringValue
A string value for a CustomerFieldAttribute
Fields
as_string(String!) — The string representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldAttributeURLValue
A URL value for a CustomerFieldAttribute
Fields
as_url(URL!) — The URL representation of the valueas_value(String!) — The primitive representation of the value
CustomerFieldConnection
A connection to a list of items.
Fields
edges([CustomerFieldEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.
CustomerFieldEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(CustomerField) — The item at the end of the edge
CustomerFieldOption
Fields
hidden(Boolean) — Whether the CustomerFieldOption has been hiddenlabel(String!) — The label of the CustomerFieldOptionvalue(String!) — The value of the CustomerFieldOption
EditableCustomer
An editable profile for an individual contact
Fields
assigned_users([User]!) — The Users that are assigned to the EditableCustomerattributes([CustomerFieldAttribute!]!) — The attributes of the EditableCustomercreated_at(DateTime!) — The date the EditableCustomer was createdcreator(User) — The User that created the EditableCustomerdeleted_at(DateTime) — The date the EditableCustomer was deletedid(ID!) — The unique identifier of the EditableCustomeris_archived(Boolean!) — Whether the EditableCustomer has been archivedis_merged(Boolean!) — Whether the EditableCustomer has been mergedmerged([EditableCustomer!]!) — The EditableCustomers that were merged into this onemerged_at(DateTime) — The date the EditableCustomer was mergedmerged_into(EditableCustomer) — The EditableCustomer that this EditableCustomer was merged intoupdated_at(DateTime!) — The date the EditableCustomer was last updated
EditableCustomerFieldAttribute
An editable attribute on a Customer profile
Fields
ai_source_info(CustomerFieldAiSourceInfo) — AI provenance metadata for this field attribute. When present, indicates the value was written by the AI Notetaker, but may be null even when task_v2_approval_item_id is set if the underlying approval item cannot be loaded or parsed.ai_source_status(CustomerFieldAiSourceStatus!) — The AI source status of the field attribute, indicating whether the current value was set by AI or manuallyallow_changing(Boolean!) — Whether the CustomerFieldAttribute is editableallow_removing(Boolean!) — Whether the CustomerFieldAttribute is removableattribute(CustomerFieldAttributeValue!) — The value of the CustomerFieldAttributecreated_at(DateTime!) — The date the CustomerFieldAttribute was createdcustomer(EditableCustomer!) — The EditablerCustomer associated to the CustomerFieldAttributefield(CustomerField!) — The CustomerField associated to the CustomerFieldAttributeupdated_at(DateTime!) — The date the CustomerFieldAttribute was last updated
InitiateCustomerMergeError
Fields
code(InitiateCustomerMergeErrorCode!)human_readable_message(String!)
InitiateCustomerMergeFailure
Fields
errors([InitiateCustomerMergeError!]!)
InitiateCustomerMergeSuccess
Fields
operation(OperationStatus!)
IntegratedCustomer
A customer from an Integration
Fields
attributes([CustomerFieldAttribute!]!) — The attributes of the IntegratedCustomercreated_at(DateTime!) — The date the IntegratedCustomer was createdexternal_id(ID!) — The external unique identifier of the IntegratedCustomerid(ID!) — The unique identifier of the IntegratedCustomerintegration(Integration!) — The Integration associated to the IntegratedCustomerupdated_at(DateTime!) — The date the IntegratedCustomer was last updated
RequestCustomerDeletionError
Fields
code(RequestCustomerDeletionErrorCode!)human_readable_message(String!)
RequestCustomerDeletionFailure
Fields
errors([RequestCustomerDeletionError!]!)
RequestCustomerDeletionSuccess
Fields
customerDeletion(CustomerDeletion!)
ResolvedCustomerFieldAttribute
A read-only attribute on a Customer profile
Fields
allow_changing(Boolean!) — Whether the CustomerFieldAttribute is editableallow_removing(Boolean!) — Whether the CustomerFieldAttribute is removableattribute(CustomerFieldAttributeValue!) — The value of the CustomerFieldAttributecreated_at(DateTime!) — The date the CustomerFieldAttribute was createdfield(CustomerField!) — The CustomerField associated to the CustomerFieldAttributeintegrated_customer(IntegratedCustomer!) — The Integration associated to the CustomerFieldAttributeintegration(Integration!) — The Integration associated to the CustomerFieldAttributeupdated_at(DateTime!) — The date the CustomerFieldAttribute was last updated
UpdateCustomerFieldAttributesError
Fields
additional_details(String)code(UpdateCustomerFieldAttributesErrorCode!)human_readable_message(String!)
UpdateCustomerFieldAttributesFailure
Fields
UpdateCustomerFieldAttributesSuccess
Fields
customer(EditableCustomer!)
UpdateCustomerFieldError
Fields
code(UpdateCustomerFieldErrorCode!)human_readable_message(String!)
UpdateCustomerFieldFailure
Fields
errors([UpdateCustomerFieldError!]!)
UpdateCustomerFieldSuccess
Fields
customerField(CustomerField!)
UpdateCustomerV2Error
Fields
additional_details(String)code(UpdateCustomerV2ErrorCode!)human_readable_message(String!)
UpdateCustomerV2Failure
Fields
errors([UpdateCustomerV2Error!]!)
UpdateCustomerV2Success
Fields
customer(EditableCustomer!)
Interfaces
CustomerFieldAttributeInterface
Fields
allow_changing(Boolean!) — Whether the CustomerFieldAttribute is editableallow_removing(Boolean!) — Whether the CustomerFieldAttribute is removableattribute(CustomerFieldAttributeValue!) — The value of the CustomerFieldAttributecreated_at(DateTime!) — The date the CustomerFieldAttribute was createdfield(CustomerField!) — The CustomerField associated to the CustomerFieldAttributeupdated_at(DateTime!) — The date the CustomerFieldAttribute was last updated
Implemented by
CustomerFieldAttributeValueInterface
Fields
as_value(String!) — The primitive representation of the value
Implemented by
CustomerFieldAttributeAbsoluteDateValueCustomerFieldAttributeBooleanValueCustomerFieldAttributeEmailAddressValueCustomerFieldAttributeLocationValueCustomerFieldAttributeNumberValueCustomerFieldAttributePhoneNumberValueCustomerFieldAttributeRecurringDateValueCustomerFieldAttributeStringValueCustomerFieldAttributeURLValue
Unions
CreateCustomerFieldPayload
Possible types
CreateCustomerPayload
Possible types
CustomerFieldAttribute
An attribute on a Customer profile
Possible types
CustomerFieldAttributeValue
A value for a CustomerFieldAttribute
Possible types
CustomerFieldAttributeAbsoluteDateValueCustomerFieldAttributeBooleanValueCustomerFieldAttributeEmailAddressValueCustomerFieldAttributeLocationValueCustomerFieldAttributeNumberValueCustomerFieldAttributePhoneNumberValueCustomerFieldAttributeRecurringDateValueCustomerFieldAttributeStringValueCustomerFieldAttributeURLValue
InitiateCustomerMergePayload
Possible types
RequestCustomerDeletionPayload
Possible types
UpdateCustomerFieldAttributesPayload
Possible types
UpdateCustomerFieldPayload
Possible types
UpdateCustomerV2Payload
Possible types
Input Objects
CustomerFieldAttributeAbsoluteDateValueInput
A CustomerFieldAttributeAbsoluteDateValue to be added/updated
Fields
value(DateTime!)
CustomerFieldAttributeBooleanValueInput
A CustomerFieldAttributeBooleanValue to be added/updated
Fields
value(Boolean!)
CustomerFieldAttributeChangeInput
A CustomerFieldAttributeChange to be added
Fields
attribute(CustomerFieldAttributeInput) — The CustomerFieldAttribute changetype(CustomerFieldAttributeChangeType!) — The type of change to be made to the CustomerFieldAttribute
CustomerFieldAttributeCreateInput
A CustomerFieldAttribute to be added
Fields
attribute(CustomerFieldAttributeInput!) — The CustomerFieldAttribute changekey(ID!) — The key of the CustomerField to add the attribute to
CustomerFieldAttributeEmailAddressValueInput
A CustomerFieldAttributeEmailAddressValue to be added/updated
Fields
value(String)
CustomerFieldAttributeInput
A CustomerFieldAttribute to be added/updated
Fields
absolute_date(CustomerFieldAttributeAbsoluteDateValueInput) — The CustomerFieldAttributeAbsoluteDateValue to be added/updatedboolean(CustomerFieldAttributeBooleanValueInput) — The CustomerFieldAttributeBooleanValue to be added/updatedemail_address(CustomerFieldAttributeEmailAddressValueInput) — The CustomerFieldAttributeEmailAddressValue to be added/updatedlocation(CustomerFieldAttributeLocationValueInput) — The CustomerFieldAttributeLocationValue to be added/updatednumber(CustomerFieldAttributeNumberValueInput) — The CustomerFieldAttributeNumberValue to be added/updatedphone_number(CustomerFieldAttributePhoneNumberValueInput) — The CustomerFieldAttributePhoneNumberValue to be added/updatedrecurring_date(CustomerFieldAttributeRecurringDateValueInput) — The CustomerFieldAttributeRecurringDateValue to be added/updatedstring(CustomerFieldAttributeStringValueInput) — The CustomerFieldAttributeStringValue to be added/updatedurl(CustomerFieldAttributeURLValueInput) — The CustomerFieldAttributeURLValue to be added/updated
CustomerFieldAttributeLocationValueInput
A CustomerFieldAttributeLocationValue to be added/updated
Fields
value(AddressInput!)
CustomerFieldAttributeNumberValueInput
A CustomerFieldAttributeNumberValue to be added/updated
Fields
value(Decimal!)
CustomerFieldAttributePhoneNumberValueInput
A CustomerFieldAttributePhoneNumberValue to be added/updated
Fields
CustomerFieldAttributeRecurringDateValueInput
A CustomerFieldAttributeRecurringDateValue to be added/updated
Fields
value(PartialLocalDateInput!)
CustomerFieldAttributeStringValueInput
A CustomerFieldAttributeStringValue to be added/updated
Fields
value(String!)
CustomerFieldAttributeURLValueInput
A CustomerFieldAttributeURLValue to be added/updated
Fields
value(URL!)
CustomerFieldOptionInput
Fields
hidden(Boolean) — Whether the CustomerFieldOption has been hiddenlabel(String!) — The label of the CustomerFieldOptionvalue(String!) — The value of the CustomerFieldOption
ExternalCustomerCustomFieldInput
A CustomField to associated with the ExternalCustomer
Fields
key(String!) — The key of the custom fieldvalues([String!]!) — The values of the custom field
ExternalCustomerInput
An ExternalCustomer to be added/updated
Fields
birthday(PartialLocalDateInput) — The birthday of the ExternalCustomercreated_at(DateTime) — The date the ExternalCustomer was createdcustom_fields([ExternalCustomerCustomFieldInput!]) — Custom fields to associate with the ExternalCustomerdefault_address(AddressInput) — The default address of the ExternalCustomerdeleted_at(DateTime) — The date the ExternalCustomer was deletedemail_address(EmailAddress) — The email address of the ExternalCustomeremail_marketing_subscription_status(ExternalCustomerMarketingSubscriptionStatus) — The email marketing subscription status of the ExternalCustomerfirst_name(String) — The first name of the ExternalCustomerid(ID!) — The unique identifier of the ExternalCustomerlast_name(String) — The last name of the ExternalCustomerphone_number(String) — The phone number of the ExternalCustomersms_marketing_subscription_status(ExternalCustomerMarketingSubscriptionStatus) — The sms marketing subscription status of the ExternalCustomertags([String!]) — Tags to associate withe ExternalCustomerupdated_at(DateTime) — The date the ExternalCustomer was last updated
MergeCustomersInput
A Customer ID and a list of Customer IDs to merge
Fields
customerId(ID!) — The ID of the Customer to merge intocustomerIdsToMerge([ID!]!) — The IDs of the Customers to mergeunarchive(Boolean) — Unarchive the target Customer
Enums
CreateCustomerErrorCode
Values
CUSTOMER_FIELD_INVALID— One or more of the provided customer fields was invalidCUSTOMER_FIELD_NOT_FOUND— One or more of the provided customer fields was not found
CreateCustomerFieldErrorCode
Values
AI_EDITABLE_FIELD_MUST_BE_USER_EDITABLE— The AI editable field must be user editable.CURRENCY_ONLY_FOR_NUMBER— The currency field can only be provided with number fields.CUSTOMER_FIELD_GROUP_NOT_FOUND— The provided customerFieldGroupId was not found.FORBIDDEN— You do not have permission to perform this actionINVALID_KEY— The key must be a non-empty string using only lowercase letters, numbers, and underscores. It must also end in an underscore.INVALID_OPTION_VALUE— A provided option value is invalid.KEY_ALREADY_EXISTS— A field with this key already exists.MAXIMUM_AMOUNT_OF_CUSTOM_FIELDS_CREATED— This integration has already created the maximum allowed amount of custom fields.ORDER_CANNOT_BE_PROVIDED_WHEN_ALLOW_MULTIPLE— The order field can not be provided with non-multiple fields.ORDER_MUST_BE_PROVIDED_WHEN_ALLOW_SINGLE— The order field must be provided with non-multiple fields.UNSUPPORTED_CUSTOM_FIELD_TYPE— The provided custom field type is not supported.
CustomerDeletionIdentifierType
Values
CUSTOMER_IDEMAIL_ADDRESS
CustomerFieldAiSourceStatus
The AI source status of an editable customer field attribute, indicating whether the current value was set by AI or manually. Fields whose AI-written value was cleared are surfaced via EditableCustomer.fields_with_ai_removed_values instead.
Values
AI_ACTIVE— The field was set by AI and the current value still matches the AI suggestionMANUAL— The field was set manually — no AI approval item is linked to itMANUALLY_OVERRIDDEN— The field was originally set by AI but has since been manually changed
CustomerFieldAttributeChangeType
Values
APPEND— Places the value to the attribute at the end, leaving existing valuesCLEAR— Removes all existing values from the attributeOMIT— Removes the value from the attribute, leaving other valuesPREPEND— Places the value to the attribute at the beginning, leaving existing valuesSET— Sets the value of the attribute, clearing any existing valueSET_DEFAULT— Places the value to the attribute at the beginning, leaving existing values
CustomerFieldOrder
The order of values of a CustomerField
Values
ANYDEFAULT_FIRSTHIGHEST_VALUE_FIRSTLATEST_UPDATED_FIRSTLOWEST_VALUE_FIRSTOLDEST_UPDATED_FIRST
CustomerFieldStatusFilter
The status of the CustomerField to filter results by
Values
ACTIVEALLDELETED
CustomerFieldType
The datatype of a CustomerField
Values
ABSOLUTE_DATEBOOLEANEMAILLOCATIONNUMBERPHONE_NUMBERRECURRING_DATESTRINGURL
ExternalCustomerMarketingSubscriptionStatus
Values
SUBSCRIBEDUNSUBSCRIBED
InitiateCustomerMergeErrorCode
Values
CUSTOMERS_TO_MERGE_REQUIRED— The customers to merge must be providedCUSTOMER_ALREADY_MERGED— The customer has already been mergedCUSTOMER_DELETED— The customer has been deletedCUSTOMER_NOT_FOUND— The customer was not foundCUSTOMER_TO_MERGE_INCLUDES_SELF— You cannot merge a customer into itself
RequestCustomerDeletionErrorCode
Values
CUSTOMER_DELETION_ALREADY_EXISTS— The customer deletion already exists with the given identifier for the given brandFORBIDDEN— You do not have permission to perform this actionINVALID_IDENTIFIER— The identifier is invalid
SortCustomerFieldsBy
The available keys to sort CustomerFields
Values
CREATED_ATUPDATED_AT
SortCustomersBy
The available keys to sort Customers
Values
CREATED_ATFIRST_PURCHASE_DATEFIRST_SEENLAST_MESSAGE_DATELAST_PURCHASE_DATENAMETOTAL_SPENDUPDATED_AT
UpdateCustomerFieldAttributesErrorCode
Values
CONCURRENCY_ERROR— The customer has been updated since this request was initiatedCUSTOMER_DELETED— The customer is deletedCUSTOMER_FIELD_INVALID— The customer field value is invalidCUSTOMER_FIELD_NOT_FOUND— The customer field with the provided key could not be foundCUSTOMER_MERGED— The customer has already been merged into another customer and cannot be updatedCUSTOMER_NOT_FOUND— The customer with the provided ID could not be found
UpdateCustomerFieldErrorCode
Values
AI_EDITABLE_FIELD_MUST_BE_USER_EDITABLE— The AI editable field must be user editable.CUSTOMER_FIELD_NOT_FOUND— The submitted customer field was not foundFORBIDDEN— You do not have permission to perform this actionINVALID_OPTION_VALUE— A provided option value is invalid.MISSING_OPTION_VALUE— An existing option value is missing.
UpdateCustomerV2ErrorCode
Values
CUSTOMER_DELETED— The customer has been deletedCUSTOMER_NOT_FOUND— The customer was not foundEDITOR_NOT_FOUND— The editor was not found
