checkoutAddPromoCode
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
scalar
The ID of the checkout.
DEPRECATED: this field will be removed in Saleor 4.0. Use
id
instead.
checkoutAddPromoCode.id
● ID
scalar
The checkout's ID.
Added in Saleor 3.4
checkoutAddPromoCode.promoCode
● String!
non-null scalar
Gift card code or voucher code.
checkoutAddPromoCode.token
● UUID
scalar
Checkout token.
DEPRECATED: this field will be removed in Saleor 4.0. Use
id
instead.
Type
CheckoutAddPromoCode
object
Adds a gift card or a voucher to a checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.