--- title: DisplayableError - Storefront API description: Represents an error in the input of a mutation. api_version: 2025-01 api_name: storefront type: interface api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2025-01/interfaces/DisplayableError' md: >- https://shopify.dev/docs/api/storefront/2025-01/interfaces/DisplayableError.md --- # Displayable​Error interface Represents an error in the input of a mutation. ## Fields * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. *** ## Types implemented in * [Cart​User​Error](https://shopify.dev/docs/api/storefront/2025-01/objects/CartUserError) OBJECT Represents an error that happens during execution of a cart mutation. * code [Cart​Error​Code](https://shopify.dev/docs/api/storefront/2025-01/enums/CartErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. * [Customer​User​Error](https://shopify.dev/docs/api/storefront/2025-01/objects/CustomerUserError) OBJECT Represents an error that happens during execution of a customer mutation. * code [Customer​Error​Code](https://shopify.dev/docs/api/storefront/2025-01/enums/CustomerErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. * [Metafield​Delete​User​Error](https://shopify.dev/docs/api/storefront/2025-01/objects/MetafieldDeleteUserError) OBJECT An error that occurs during the execution of cart metafield deletion. * code [Metafield​Delete​Error​Code](https://shopify.dev/docs/api/storefront/2025-01/enums/MetafieldDeleteErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. * [Metafields​Set​User​Error](https://shopify.dev/docs/api/storefront/2025-01/objects/MetafieldsSetUserError) OBJECT An error that occurs during the execution of `MetafieldsSet`. * code [Metafields​Set​User​Error​Code](https://shopify.dev/docs/api/storefront/2025-01/enums/MetafieldsSetUserErrorCode) The error code. * element​Index [Int](https://shopify.dev/docs/api/storefront/2025-01/scalars/Int) The index of the array element that's causing the error. * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. * [User​Error](https://shopify.dev/docs/api/storefront/2025-01/objects/UserError) OBJECT Represents an error in the input of a mutation. * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. * [User​Errors​Shop​Pay​Payment​Request​Session​User​Errors](https://shopify.dev/docs/api/storefront/2025-01/objects/UserErrorsShopPayPaymentRequestSessionUserErrors) OBJECT Error codes for failed Shop Pay payment request session mutations. * code [User​Errors​Shop​Pay​Payment​Request​Session​User​Errors​Code](https://shopify.dev/docs/api/storefront/2025-01/enums/UserErrorsShopPayPaymentRequestSessionUserErrorsCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) non-null The error message. *** ##### Variables ```json { "field": "", "message": "" } ``` ##### Schema ```graphql interface DisplayableError { field: [String!] message: String! } ```