Preview

ApplyDiscountCodePayload is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

ApplyDiscountCodePayload

Response payload containing the updated cart after applying a discount

This page contains

    Fields

    cart(locale: Locale): Cart PREVIEW

    Updated cart after applying the discount

    userErrors: [ApplyDiscountError!] PREVIEW

    List of errors that occurred during the operation

    Mutations for ApplyDiscountCodePayload

    applyDiscountToCart PREVIEW

    Applies a discount code to the cart