checkoutAddPromoCode Mutation
Adds a gift card or a voucher to a checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
checkoutAddPromoCode(
checkoutId: ID
id: ID
promoCode: String!
token: UUID
): CheckoutAddPromoCode
Arguments
checkoutAddPromoCode.checkoutId
● ID
deprecated scalar miscellaneous
DEPRECATED
Use id
instead.
The ID of the checkout.
checkoutAddPromoCode.id
● ID
scalar miscellaneous
The checkout's ID.
checkoutAddPromoCode.promoCode
● String!
non-null scalar miscellaneous
Gift card code or voucher code.
checkoutAddPromoCode.token
● UUID
deprecated scalar miscellaneous
DEPRECATED
Use id
instead.
Checkout token.
Type
CheckoutAddPromoCode
object checkout
Adds a gift card or a voucher to a checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.