Skip to main content
Version: 3.x

checkoutAddPromoCode

Adds a gift card or a voucher to a checkout.

checkoutAddPromoCode(
checkoutId: ID
id: ID
promoCode: String!
token: UUID
): CheckoutAddPromoCode

Arguments

checkoutId (ID)

The ID of the checkout.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

id (ID)

The checkout's ID.

Added in Saleor 3.4.

promoCode (String)

Gift card code or voucher code.

token (UUID)

Checkout token.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

Type

CheckoutAddPromoCode

Adds a gift card or a voucher to a checkout.