Skip to main content

CreateCustomerResult

Result of registering a customer.

union CreateCustomerResult = CreatedCustomer | CustomerAlreadyExistsError | InputValidationError | InsuranceSystemError | UnauthorizedOperationError | UnexpectedError

Possible types​

CreateCustomerResult.CreatedCustomer object​

The customer was registered in the insurance system and assigned to your broker.

CreateCustomerResult.CustomerAlreadyExistsError object​

Error indicating that a customer record already exists in the core insurance system with the provided email address.

Resolution options:

  • Query the customers field to get the identifier of the existing customer and use it to create an offer
  • Use a different email address to create a new customer

CreateCustomerResult.InputValidationError object​

Error indicating that the provided input data failed validation.

Resolution:

  • Check the invalidInput field for specific validation errors
  • Ensure all required fields are provided
  • Verify that field values meet the specified constraints

CreateCustomerResult.InsuranceSystemError object​

Error indicating that the insurance system encountered an issue while processing the request that is not currently being handled by us. This includes

Common causes:

  • System maintenance/downtime: The insurance system is undergoing maintenance or is down intermittently, please try again later.
  • Invalid data combinations: The provided data is not valid, please check the reasons field for specific error details to fix the issue and try again..

CreateCustomerResult.UnauthorizedOperationError object​

Error indicating the partner lacks required authorization for the requested operation.

Common causes:

  • Missing permissions to sell the specific product
  • Missing permission to read policies
  • Reading the policies of sub-brokers without entire-tree access

CreateCustomerResult.UnexpectedError object​

In case an unexpected error occurs during the update customer operation. Please contact customer support for assistance.

Returned By​

createCustomer mutation