--- title: validation - GraphQL Admin description: Validation available on the shop. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/validation' md: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/validation.md' --- # validation query Requires `read_validations` access scope. Validation available on the shop. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the validation. *** ## Possible returns * Validation [Validation](https://shopify.dev/docs/api/admin-graphql/latest/objects/Validation) A server-side validation that enforces business rules before customers complete their purchases. Each validation links to a [`ShopifyFunction`](https://shopify.dev/docs/api/functions/latest/cart-and-checkout-validation) that implements the validation logic. Validations run on Shopify's servers and are enforced throughout the checkout process. Validation errors always block checkout progress. The `blockOnFailure` setting determines whether runtime exceptions, like timeouts, also block checkout. Tracks runtime exception history for the validation function and supports custom data through [`Metafield`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Metafield) objects. *** ## Examples * ### validation reference ## Query Reference ```graphql { validation(id) { # validation fields } } ```