Skip to main content
Anchor to BusinessCustomerUserError

BusinessCustomerUserError

object

Requires read_customers access scope or read_companies access scope.

An error that happens during the execution of a business customer mutation.

•BusinessCustomerErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Deletes a list of companies.

Arguments

•[ID!]!required

A list of IDs of companies to delete.


Fields

•[ID!]

A list of IDs of the deleted companies.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes a company address.

Arguments

•ID!required

The ID of the address to delete.


Fields

•ID

The ID of the deleted address.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Assigns the customer as a company contact.

Arguments

•ID!required

The ID of the company to assign the contact to.

•ID!required

The ID of the customer to assign as the contact.


Fields

•CompanyContact

The created company contact.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Assigns the main contact for the company.

Arguments

•ID!required

The ID of the company contact to be assigned as the main contact.

•ID!required

The ID of the company to assign the main contact to.


Fields

•Company

The company for which the main contact is assigned.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Assigns a role to a contact for a location.

Arguments

•ID!required

The ID of the contact to assign a role to.

Anchor to companyContactRoleIdcompanyContactRoleId
•ID!required

The ID of the role to assign to a contact.

•ID!required

The ID of the location to assign a role to a contact.


Fields

Anchor to companyContactRoleAssignmentcompanyContactRoleAssignment
•CompanyContactRoleAssignment

The company contact role assignment.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Assigns roles on a company contact.

Arguments

•ID!required

The contact whose roles are being assigned.

•[CompanyContactRoleAssign!]!required

The new roles to assign.


Fields

•[CompanyContactRoleAssignment!]

A list of newly created assignments of company contacts to a company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a company contact and the associated customer.

Arguments

•ID!required

The ID of the company that the company contact belongs to.

•CompanyContactInput!required

The fields to use to create the company contact.


Fields

•CompanyContact

The created company contact.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes a company contact.

Arguments

•ID!required

The ID of the company contact to delete.


Fields

Anchor to deletedCompanyContactIddeletedCompanyContactId
•ID

The ID of the deleted company contact.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Removes a company contact from a Company.

Arguments

•ID!required

The ID of the company contact to remove from the Company.


Fields

Anchor to removedCompanyContactIdremovedCompanyContactId
•ID

The ID of the removed company contact.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Revokes a role on a company contact.

Arguments

•ID!required

The ID of the contact to revoke a role from.

Anchor to companyContactRoleAssignmentIdcompanyContactRoleAssignmentId
•ID!required

The ID of the role assignment to revoke from a contact.


Fields

Anchor to revokedCompanyContactRoleAssignmentIdrevokedCompanyContactRoleAssignmentId
•ID

The role assignment that was revoked.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Revokes roles on a company contact.

Arguments

•ID!required

The contact whose roles are being revoked.

•BooleanDefault:false

Flag to revoke all roles on the contact.

•[ID!]

The current role assignment IDs to revoke.


Fields

Anchor to revokedRoleAssignmentIdsrevokedRoleAssignmentIds
•[ID!]

A list of role assignment IDs that were removed from the company contact.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes one or more company contacts.

Arguments

•[ID!]!required

The list of IDs of the company contacts to delete.


Fields

Anchor to deletedCompanyContactIdsdeletedCompanyContactIds
•[ID!]

The list of IDs of the deleted company contacts.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a company contact.

Arguments

•ID!required

The ID of the company contact to be updated.

•CompanyContactInput!required

The fields to use to update the company contact.


Fields

•CompanyContact

The updated company contact.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a company.

Arguments

•CompanyCreateInput!required

The fields to use when creating the company.


Fields

•Company

The created company.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes a company.

Arguments

•ID!required

The ID of the company to delete.


Fields

•ID

The ID of the deleted company.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates an address on a company location.

Arguments

•CompanyAddressInput!required

The input fields to use to update the address.

•[CompanyAddressType!]!required

The list of address types on the location to update.

•ID!required

The ID of the company location to update addresses on.


Fields

•[CompanyAddress!]

The list of updated addresses on the company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Assigns roles on a company location.

Arguments

•ID!required

The location whose roles are being assigned.

•[CompanyLocationRoleAssign!]!required

The roles to assign.


Fields

•[CompanyContactRoleAssignment!]

A list of newly created assignments of company contacts to a company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates one or more mappings between a staff member at a shop and a company location.

Arguments

•ID!required

The ID of the company location to assign the staff member to.

•[ID!]!required

The list of IDs of the staff members to assign.


Fields

Anchor to companyLocationStaffMemberAssignmentscompanyLocationStaffMemberAssignments
•[CompanyLocationStaffMemberAssignment!]

The list of created staff member assignments.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates a company location.

Arguments

•ID!required

The ID of the company that the company location belongs to.

•CompanyLocationInput!required

The fields to use to create the company location.


Fields

•CompanyLocation

The created company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes a company location.

Arguments

•ID!required

The ID of the company location to delete.


Fields

Anchor to deletedCompanyLocationIddeletedCompanyLocationId
•ID

The ID of the deleted company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes one or more existing mappings between a staff member at a shop and a company location.

Arguments

Anchor to companyLocationStaffMemberAssignmentIdscompanyLocationStaffMemberAssignmentIds
•[ID!]!required

The list of IDs of the company location staff member assignment to delete.


Fields

Anchor to deletedCompanyLocationStaffMemberAssignmentIdsdeletedCompanyLocationStaffMemberAssignmentIds
•[ID!]

The list of IDs of the deleted staff member assignment.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Revokes roles on a company location.

Arguments

•ID!required

The location whose roles are being revoked.

•[ID!]!required

The current roles to revoke.


Fields

Anchor to revokedRoleAssignmentIdsrevokedRoleAssignmentIds
•[ID!]

A list of role assignment IDs that were removed from the company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes a list of company locations.

Arguments

•[ID!]!required

A list of IDs of company locations to delete.


Fields

Anchor to deletedCompanyLocationIdsdeletedCompanyLocationIds
•[ID!]

A list of IDs of the deleted company locations.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Sets the tax settings for a company location.

Arguments

•ID!required

The ID of the company location that the tax settings get assigned to.

•[TaxExemption!]

The list of tax exemptions to assign to the company location.

•[TaxExemption!]

The list of tax exemptions to remove from the company location.

•Boolean

Whether the location is exempt from taxes.

•String

The unique tax registration ID for the company location.


Fields

•CompanyLocation

The company location with the updated tax settings.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a company location.

Arguments

•ID!required

The ID of the company location to update.

•CompanyLocationUpdateInput!required

The input fields to update in the company location.


Fields

•CompanyLocation

The updated company location.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Revokes the main contact from the company.

Arguments

•ID!required

The ID of the company to revoke the main contact from.


Fields

•Company

The company from which the main contact is revoked.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates a company.

Arguments

•ID!required

The ID of the company to be updated.

•CompanyInput!required

The input fields to update the company.


Fields

•Company

The updated company.

•[BusinessCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

Deprecated mutations


Was this section helpful?


Was this section helpful?