validateCart

Validates cart items through the validation engine

This page contains

    Arguments

    input CartValidationInput!

    CartValidationInput fields

    cartId ID!

    Unique identifier of the cart to validate

    itemIds [ID!]

    Array of item identifiers in the cart to validate

    level CartValidationLevel!

    Validation level: PRE_FINALIZE or PREVENT_FINALIZE

    locale Locale

    Locale for validation messages (if not provided, cart locale will be used)

    pageSource ValidationPageSource

    Page source from which the validation is triggered

    Return Fields

    cartValidation CartValidation

    Validation result

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.