Skip to main content

CreateOfferResult

No description

union CreateOfferResult = CreatedOffer | CustomerAlreadyExistsError | CustomerNotFoundError | InputValidationError | InsuranceSystemError | UnauthorizedOperationError

Possible types

CreateOfferResult.CreatedOffer object

Information about the new offer that has been successfully created with the provided information.

CreateOfferResult.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

CreateOfferResult.CustomerNotFoundError object

Error indicating that the requested customer was not found in the system.

Common causes:

  • Customer does not exist in the system
  • Invalid customer identifier provided
  • On test environment, the customers reset every Thursday and customers created before that date are not available anymore.

CreateOfferResult.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

CreateOfferResult.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..

CreateOfferResult.UnauthorizedOperationError object

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

Common causes:

  • Missing permissions to sell the specific product

Returned By

createOffer mutation