Preview

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

validateCart

Post the cart validations to the validation engine.

This page contains

    Arguments

    input CartValidationInput! PREVIEW

    CartValidationInput fields

    cartId ID!

    Represents the cart id required for validation

    itemIds [ID!]

    Represents the array of item IDs in the cart

    level CartValidationLevel! PREVIEW

    Represents the level of validation: PRE_FINALIZE or PREVENT_FINALIZE

    locale Locale

    Represent the locale in which validation needs to be triggered, if not provided cart locale will be used

    Return Fields

    cartValidation CartValidation PREVIEW

    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.