Skip to main content

Arguments

Input fields for creating or updating a loyalty card.

Returns

CreateOrUpdateLoyaltyCardMutation

Create a Loyalty Card for the given account user.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can create or update loyalty cards

Query Complexity

1

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.

Query

mutation CreateOrUpdateLoyaltyCard($input: CreateOrUpdateLoyaltyCardInput!) { createOrUpdateLoyaltyCard(input: $input) { loyaltyCard { ...LoyaltyCardTypeFragment } } }

Variables

Response

{ "data": { "createOrUpdateLoyaltyCard": { "loyaltyCard": LoyaltyCardType } } }