Validation
Requires access scope.
A checkout server side validation installed on the shop.
Anchor to Fields and connectionsFields and connections
- Anchor to blockOnFailureblock•Boolean!non-null
On Failure Whether the validation should block on failures other than expected violations.
- Anchor to enabledenabled•Boolean!non-null
Whether the validation is enabled on the merchant checkout.
- Anchor to errorHistoryerror•Functions
History Error History The error history on the most recent version of the validation function.
- •ID!non-null
Global ID for the validation.
- Anchor to metafieldmetafield•Metafield
A custom field, including its
namespace
andkey
, that's associated with a Shopify resource for the purposes of adding and storing additional information.- Anchor to metafieldsmetafields•Metafield
Connection!non-null A list of custom fields that a merchant associates with a Shopify resource.
- Anchor to shopifyFunctionshopify•Shopify
Function Function!non-null The Shopify Function implementing the validation.
- Anchor to titletitle•String!non-null
The merchant-facing validation name.
- Anchor to metafieldDefinitionsmetafield•Metafield
Definitions Definition Connection!non-nullDeprecated
Anchor to QueriesQueries
- •query
Validation available on the shop.
- •query
Validations available on the shop.
Anchor to MutationsMutations
- •mutation
Creates a validation.
- Anchor to validationvalidation•Validation
Create Input!required The input fields for a new validation.
Arguments
- Anchor to userErrorsuser•[Validation
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to validationvalidation•Validation
The created validation.
Fields
- •mutation
Update a validation.
- •ID!required
The ID representing the validation to update.
- Anchor to validationvalidation•Validation
Update Input!required The input fields to update a validation.
Arguments
- Anchor to userErrorsuser•[Validation
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
- Anchor to validationvalidation•Validation
The updated validation.
Fields