enrollAccountInLoyaltyProgram
Enroll an account into the loyalty program.
Arguments
The account number to enroll in the loyalty program.
- KT-CT-1111: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
- KT-CT-9210: Unhandled Loyalty Points exception.
- KT-CT-9213: ineligible loyalty points enrollment.
- KT-CT-9226: A scheme code is required.
- KT-CT-9227: Invalid scheme code.
- KT-CT-9229: Invalid membership fields.
- KT-CT-9230: The scheme has no membership fields.
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 EnrollAccountInLoyaltyProgram($input: EnrollAccountInLoyaltyProgramInput!) {
enrollAccountInLoyaltyProgram(input: $input) {
outcome {
...EnrollAccountInLoyaltyProgramOutcomeFragment
}
}
}
Variables
{
"input": EnrollAccountInLoyaltyProgramInput
}
Response
{
"data": {
"enrollAccountInLoyaltyProgram": {
"outcome": EnrollAccountInLoyaltyProgramOutcome
}
}
}