createOfferGroupForProductSwitch
Create an Offer Group with the offers a supply point can switch to.
Arguments
The account and supply point to create the Offer Group for.
Returns
CreateOfferGroupForProductSwitchOutput type of the createOfferGroupForProductSwitch mutation.
- KT-CT-1111: Unauthorized.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-12401: Unable to create offer group.
- KT-CT-15704: Unable to determine the supply point for this offer.
- KT-CT-15706: This offer cannot be accepted at this time.
- KT-CT-15710: No offers are available for a product switch.
- KT-CT-15713: Product switch is not supported for this supply point's market.
- KT-CT-4719: No supply point found for identifier provided.
- KT-CT-4924: Unauthorized.
- KT-CT-7899: An internal error occurred.
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 CreateOfferGroupForProductSwitch($input: CreateOfferGroupForProductSwitchInput!) {
createOfferGroupForProductSwitch(input: $input) {
offerGroup {
...OfferGroupTypeFragment
}
}
}
Variables
{
"input": CreateOfferGroupForProductSwitchInput
}
Response
{
"data": {
"createOfferGroupForProductSwitch": {
"offerGroup": OfferGroupType
}
}
}