Customers and B2B
Admin API: 87 operations and 227 types.
Queries 31
companyReturns one business-to-business company by ID, or null when it does not exist.companyContactcompanyContactRoleconsentPolicyconsentPolicyRegionscustomerReturns one customer by ID, or null when the store has no such customer.customerAccountPagecustomerAccountPagescustomerByIdentifiercustomerMergeJobStatuscustomerMergePreviewcustomersLists the store's customers, a page at a time with first/after.customerSavedSearchesDeprecatedcustomersCountCounts the store's customers, optionally matching a query string.customerSegmentMembersLists the customers who belong to a segment, a page at a time with first/after.customerSegmentMembershipcustomerSegmentMembersQuerysegmentReturns one customer segment by ID, or null when it does not exist.segmentFilterssegmentFilterSuggestionssegmentMigrationsDeprecatedsegmentsLists the store's customer segments, a page at a time with first/after.segmentsCountsegmentValueSuggestionsstoreCreditAccountstoreCreditConfigurationtanqoryExtCookieBannertanqoryExtCustomerAccountSocialLoginsThe asked providers, connected or not (default: Google and Facebook).tanqoryExtCustomerAccountsSettingstanqoryExtCustomerPrivacyThe Customer privacy page settings the reference API has no operation for (see TanqoryExtCustomerPrivacy).tanqoryExtPosCustomersCustomers to attach to a register cart: those whose name, email or phone contains every word of query (at least 2 characters in all), newest first, f…
Mutations 56
companyAddressDeletecompanyAssignCustomerAsContactcompanyAssignMainContactcompanyContactAssignRolecompanyContactAssignRolescompanyContactCreatecompanyContactDeletecompanyContactRemoveFromCompanycompanyContactRevokeRolecompanyContactRevokeRolescompanyContactsDeletecompanyContactSendWelcomeEmailcompanyContactUpdatecompanyCreatecompanyDeletecompanyRevokeMainContactcompanyUpdateconsentPolicyUpdatecustomerAddressCreatecustomerAddressDeletecustomerAddressUpdatecustomerAddTaxExemptionscustomerCancelDataErasurecustomerCreatecustomerDeletecustomerEmailMarketingConsentUpdatecustomerGenerateAccountActivationUrlcustomerMergecustomerRemoveTaxExemptionscustomerReplaceTaxExemptionscustomerRequestDataErasurecustomerSegmentMembersQueryCreatecustomerSendAccountInviteEmailcustomerSetcustomerSmsMarketingConsentUpdatecustomerUpdatecustomerUpdateDefaultAddresscustomerWhatsAppMarketingConsentUpdategiftCardSendNotificationToCustomersegmentCreatesegmentDeletesegmentUpdatestoreCreditAccountCreditstoreCreditAccountDebittanqoryExtCompaniesCreateFromCustomersSets up one company for each customer, in one transaction: the company is named after the customer's default address company, else the customer's nam…tanqoryExtCompanyLocationCommentCreatePosts a staff comment on a company location's timeline.tanqoryExtCompanyOrderingStatusUpdateApproves or blocks ordering for a company.tanqoryExtCookieBannerUpdateSaves the cookie banner settings (and the opt out page's automation); fields left out keep their value.tanqoryExtCustomerAccountSocialLoginDisconnectDisconnects a provider: its credentials are deleted.tanqoryExtCustomerAccountSocialLoginUpdateSaves a provider's credentials and on/off.tanqoryExtCustomerAccountsSettingsUpdatetanqoryExtCustomerCommentCreatePosts a staff comment on a customer's timeline.tanqoryExtCustomerDataRequestEmails the store owner a copy of the customer's data and records the request on the customer's timeline.tanqoryExtCustomerMarketingConfirmConfirms the marketing subscription of a customer with the token of the confirmation message (PENDING becomes SUBSCRIBED).tanqoryExtCustomerPrivacyUpdateChanges the Customer privacy page settings.tanqoryExtCustomersImportImports rows of a customer CSV.
Objects 148
BusinessCustomerUserErrorCommentEventCommentEventAttachmentCompanyA business customer of the store, with its contacts, locations, orders, notes and amount spent.CompanyAddressDeletePayloadCompanyAssignCustomerAsContactPayloadCompanyAssignMainContactPayloadCompanyContactCompanyContactAssignRolePayloadCompanyContactAssignRolesPayloadCompanyContactConnectionCompanyContactCreatePayloadCompanyContactDeletePayloadCompanyContactEdgeCompanyContactRemoveFromCompanyPayloadCompanyContactRevokeRolePayloadCompanyContactRevokeRolesPayloadCompanyContactRoleCompanyContactRoleAssignmentCompanyContactRoleAssignmentConnectionCompanyContactRoleAssignmentEdgeCompanyContactRoleConnectionCompanyContactRoleEdgeCompanyContactsDeletePayloadCompanyContactSendWelcomeEmailPayloadCompanyContactUpdatePayloadCompanyCreatePayloadCompanyDeletePayloadCompanyRevokeMainContactPayloadCompanyUpdatePayloadConsentPolicyConsentPolicyErrorConsentPolicyRegionConsentPolicyUpdatePayloadCustomerA person who buys from the store: contact details, addresses, marketing consent, orders, amount spent and notes.CustomerAccountPageConnectionCustomerAccountPageEdgeCustomerAddressCreatePayloadCustomerAddressDeletePayloadCustomerAddressUpdatePayloadCustomerAddTaxExemptionsPayloadCustomerCancelDataErasurePayloadCustomerCancelDataErasureUserErrorCustomerConnectionA page of Customer objects, with pageInfo for the next page.CustomerCreatePayloadCustomerDeletePayloadCustomerEdgeCustomerEmailAddressCustomerEmailMarketingConsentStateCustomerEmailMarketingConsentUpdatePayloadCustomerEmailMarketingConsentUpdateUserErrorCustomerGenerateAccountActivationUrlPayloadCustomerMarketingConsentErrorCustomerMergeableCustomerMergeErrorCustomerMergePayloadCustomerMergePreviewCustomerMergePreviewAlternateFieldsCustomerMergePreviewBlockingFieldsCustomerMergePreviewDefaultFieldsCustomerMergeRequestCustomerMergeUserErrorCustomerPaymentMethodConnectionCustomerPaymentMethodEdgeCustomerPhoneNumberCustomerRemoveTaxExemptionsPayloadCustomerReplaceTaxExemptionsPayloadCustomerRequestDataErasurePayloadCustomerRequestDataErasureUserErrorCustomerSegmentMemberCustomerSegmentMemberConnectionA page of customers in a segment, with pageInfo for the next page, the total count and member statistics.CustomerSegmentMemberEdgeCustomerSegmentMembersQueryCustomerSegmentMembersQueryCreatePayloadCustomerSegmentMembersQueryUserErrorCustomerSendAccountInviteEmailPayloadCustomerSendAccountInviteEmailUserErrorCustomerSetPayloadCustomerSetUserErrorCustomerSmsMarketingConsentCustomerSmsMarketingConsentErrorCustomerSmsMarketingConsentStateCustomerSmsMarketingConsentUpdatePayloadCustomerStatisticsCustomerUpdateDefaultAddressPayloadCustomerUpdatePayloadCustomerWhatsAppMarketingConsentCustomerWhatsAppMarketingConsentUpdatePayloadGiftCardSendNotificationToCustomerPayloadGiftCardSendNotificationToCustomerUserErrorIdentityProviderSubjectMailingAddressConnectionMailingAddressEdgeSegmentA saved group of customers defined by a segment query, with its name and when it was created and last edited.SegmentAttributeStatisticsSegmentConnectionA page of Segment objects, with pageInfo for the next page.SegmentCreatePayloadSegmentDeletePayloadSegmentEdgeSegmentFilterConnectionSegmentFilterEdgeSegmentMembershipSegmentMembershipResponseSegmentMigrationSegmentMigrationConnectionSegmentMigrationEdgeSegmentStatisticsSegmentUpdatePayloadSegmentValueSegmentValueConnectionSegmentValueEdgeStoreCreditAccountStoreCreditAccountConnectionStoreCreditAccountCreditPayloadStoreCreditAccountCreditTransactionStoreCreditAccountCreditUserErrorStoreCreditAccountDebitPayloadStoreCreditAccountDebitTransactionStoreCreditAccountDebitUserErrorStoreCreditAccountEdgeStoreCreditAccountTransactionConnectionStoreCreditAccountTransactionEdgeStoreCreditConfigurationTanqoryExtCheckoutChannelTanqoryExtCompaniesFromCustomersPayloadReturn type of tanqoryExtCompaniesCreateFromCustomers.TanqoryExtCompanyLocationCommentPayloadTanqoryExtCompanyOrderingStatusUpdatePayloadTanqoryExtCookieBannerTanqoryExtCookieBannerPayloadTanqoryExtCustomerAccountsSettingsWhat the customer account lets customers do (Settings > Customer accounts).TanqoryExtCustomerAccountsSettingsPayloadTanqoryExtCustomerCommentPayloadTanqoryExtCustomerDataRequestPayloadTanqoryExtCustomerImportRowResultThe outcome of one row, in the order of rows.TanqoryExtCustomerPrivacyTanqoryExtCustomerPrivacyPayloadTanqoryExtCustomersImportPayloadReturn type for tanqoryExtCustomersImport.TanqoryExtCustomerUserErrorTanqoryExtMarketingConfirmationMessageTanqoryExtMarketingConfirmPayloadTanqoryExtPosCustomerA customer as a register shows it, to attach to a cart: nothing of their orders, addresses or payment methods.TanqoryExtPosCustomerConnectionTanqoryExtPosCustomerEdgeTanqoryExtPrivacyUserErrorTanqoryExtSegmentAuthorTanqoryExtSocialLoginTanqoryExtSocialLoginPayloadTaxSettings
Input objects 26
CompanyContactInputCompanyContactRoleAssignCompanyCreateInputCompanyInputConsentPolicyInputCustomerDeleteInputCustomerEmailMarketingConsentInputCustomerEmailMarketingConsentUpdateInputCustomerIdentifierInputCustomerInputCustomerMarketingConsentInputCustomerMergeOverrideFieldsCustomerSegmentMembersQueryInputCustomerSetIdentifiersCustomerSetInputCustomerSmsMarketingConsentInputCustomerSmsMarketingConsentUpdateInputCustomerWhatsAppMarketingConsentUpdateInputStoreCreditAccountCreditInputStoreCreditAccountDebitInputTanqoryExtCompaniesFromCustomersInputOptions of tanqoryExtCompaniesCreateFromCustomers.TanqoryExtCookieBannerInputTanqoryExtCustomerAccountsSettingsInputTanqoryExtCustomerImportRowInputOne row of a customer CSV.TanqoryExtCustomerPrivacyInputTanqoryExtSocialLoginInput
Enums 46
CompanyContactRoleAssignmentSortKeysCompanyContactRoleSortKeysCompanyContactSortKeysConsentPolicyErrorCodeCustomerCancelDataErasureErrorCodeCustomerConsentCollectedFromCustomerEmailAddressMarketingStateCustomerEmailAddressOpenTrackingLevelCustomerEmailMarketingConsentUpdateUserErrorCodeCustomerEmailMarketingStateCustomerMarketingConsentErrorCodeCustomerMarketingConsentStateCustomerMarketingOptInLevelCustomerMergeErrorCodeCustomerMergeErrorFieldTypeCustomerMergeRequestStatusCustomerPredictedSpendTierCustomerProductSubscriberStatusCustomerRequestDataErasureErrorCodeCustomerRfmGroupCustomerSavedSearchSortKeysCustomerSegmentMembersQueryUserErrorCodeCustomerSendAccountInviteEmailUserErrorCodeCustomerSetUserErrorCodeCustomerSmsMarketingConsentErrorCodeCustomerSmsMarketingStateCustomerSortKeysCustomerStateGiftCardSendNotificationToCustomerUserErrorCodeMailingAddressValidationResultPrivacyCountryCodeSegmentSortKeysShopCustomerAccountsSettingStoreCreditAccountCreditUserErrorCodeStoreCreditAccountDebitUserErrorCodeStoreCreditSystemEventTanqoryExtCheckoutPlacementTanqoryExtCompanyOrderingStatusTanqoryExtCookieBannerPositionTanqoryExtCookieBannerThemeTanqoryExtCustomerImportRowStatusWhat happened to one row of a customer import.TanqoryExtCustomerUserErrorCodeTanqoryExtPrivacyUserErrorCodeTanqoryExtSegmentAuthorKindTanqoryExtSocialLoginProviderTransactionSortKeys