recordSalesInteraction
Record a sales interaction by creating an opportunity and lead. Supply points are checked against the product offering. Industry data is then fetched for each market that has a configured validator, and industryData overrides replace individual fetched fields.
Arguments
Input fields for recording a sales interaction.
- KT-CT-10009: Provided term term is not of the valid format.
- KT-CT-10010: Duplicate term type found in the provided term set.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-12401: Unable to create offer group.
- KT-CT-12402: Unable to accept offer.
- KT-CT-12403: Product offering not found.
- KT-CT-12405: Missing rates for quoting.
- KT-CT-12428: Invalid offer selection.
- KT-CT-1605: Invalid input.
- KT-CT-3940: Invalid data.
- KT-CT-4121: Invalid phone number.
- KT-CT-4126: Invalid landline number.
- KT-CT-4127: Invalid mobile number.
- KT-CT-4415: Only one of streetAddress and structuredStreetAddress may be supplied.
- KT-CT-7899: An internal error occurred.
- KT-CT-8901: Unable to create lead.
- KT-CT-8902: Unable to create lead.
- KT-CT-8907: Lead not found.
- KT-CT-8912: Funnel not found.
- KT-CT-8913: Organisation is not valid to be assigned.
- KT-CT-8919: Funnel initial stage not set.
- KT-CT-8930: Unable to parse address.
- KT-CT-8931: Extra detail value is invalid.
- KT-CT-8935: National ID bad input.
- KT-CT-8936: Only one address is required to create an opportunity.
- KT-CT-8937: One or more Supply Points cannot be validated.
- KT-CT-8941: Invalid language preference code.
- KT-CT-8946: A team must also be provided when assigning a user.
- KT-CT-8947: The team you specified was not found.
- KT-CT-8948: The user you specified was not found.
- KT-CT-8949: The selected team does not belong to the specified partner.
- KT-CT-8950: The selected user does not belong to the specified partner.
- KT-CT-8951: The selected user is not a member of the specified team.
- KT-CT-8954: Unable to store payment method reference on lead.
- KT-CT-8956: Conflicting address inputs.
- KT-CT-8958: A lead contact must have at least one role.
- KT-CT-8964: The selected sales channel does not belong to the specified partner.
- KT-CT-8975: Supply point market is not sold by the product offering.
- KT-CT-8977: Supply point industry data is invalid.
- KT-CT-8978: Supply point industry data could not be fetched.
- KT-CT-8981: This lead cannot have a legal entity.
- KT-CT-8982: Unable to save the legal entity.
- KT-CT-8983: Legal entity not found.
- KT-CT-8986: Invalid lead type.
- KT-CT-8988: Business not found.
- KT-CT-8989: Duplicate business number.
- KT-CT-8990: External direct debit service is temporarily unavailable.
- KT-CT-8991: Lead type is not available.
- KT-CT-8993: The letter of authority could not be found on the broker organisation.
- KT-CT-8995: `leadType` must be provided.
- KT-CT-8996: Only one supply point is allowed per market on a domestic opportunity.
- KT-CT-8997: No lead type is configured.
- KT-CT-8998: The legal entity's details aren't enough or valid for an active legal entity.
- KT-CT-8999: The same supply point was given more than once.
- KT-CT-9017: Consent type not found.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation RecordSalesInteraction($input: RecordSalesInteractionInput!) {
recordSalesInteraction(input: $input) {
dateOfCreation
funnelCode
opportunityNumber
stage
}
}
Variables
{
"input": RecordSalesInteractionInput
}
Response
{
"data": {
"recordSalesInteraction": {
"dateOfCreation": "2024-01-14T04:12:31.847181+00:00",
"funnelCode": "community-simply-world-start-floor",
"opportunityNumber": "blood-method-try-fall-throw",
"stage": "center-treat-all-firm-total"
}
}
}