CheckoutAddPromoCode Object
Adds a gift card or a voucher to a checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [])
type CheckoutAddPromoCode {
checkout: Checkout
checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [CheckoutError!]!
}
Fields
checkout
checkout · Checkout
The checkout with the added gift card or voucher.
checkoutErrors
checkoutErrors · [CheckoutError!]!
errors
errors · [CheckoutError!]!
Used by
Schema: Saleor 3.23.43. Download SDL.