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-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-3940: Invalid data.
- KT-CT-3956: Temporary error occurred.
- KT-CT-4121: Invalid phone number.
- KT-CT-4126: Invalid landline number.
- KT-CT-4127: Invalid mobile number.
- 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-8976: Only one supply point is allowed for each market.
- KT-CT-8977: Supply point industry data is invalid.
- KT-CT-8978: Supply point industry data could not be fetched.
- 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": "1983-12-30T15:48:25.533287+00:00",
"funnelCode": "vote-any-protect-last-radio",
"opportunityNumber": "ball-out-throw-live-area",
"stage": "receive-anything-student-again-doctor"
}
}
}