--- title: UserError - Partner API description: Represents an error in a mutation. api_version: 2025-01 api_name: partner type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/partner/2025-01/objects/usererror md: https://shopify.dev/docs/api/partner/2025-01/objects/usererror.md --- # User​Error object Represents an error in a mutation. ## Fields * field [\[String!\]](https://shopify.dev/docs/api/partner/2025-01/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/partner/2025-01/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [app​Credit​Create](https://shopify.dev/docs/api/partner/2025-01/mutations/appCreditCreate) mutation Allows an app to create a credit for a shop that can be used towards future app purchases. This mutation is only available to Partner API clients that have been granted the `View financials` permission. * app​Id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) required ### Arguments The id of the app to associate the credit with. Example value: `gid://partners/App/123`. * shop​Id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) required The id of the shop to be credited. Example value: `gid://partners/Shop/456`. * amount [Money​Input!](https://shopify.dev/docs/api/partner/2025-01/input-objects/MoneyInput) required The amount that can be used towards future app purchases in Shopify. * description [String!](https://shopify.dev/docs/api/partner/2025-01/scalars/String) required The description of the app credit. * test [Boolean](https://shopify.dev/docs/api/partner/2025-01/scalars/Boolean) Default:false Specifies whether the app credit is a test transaction. *** *** ## <\~> UserError Mutations ### Mutated by * <\~>[app​Credit​Create](https://shopify.dev/docs/api/partner/2025-01/mutations/appCreditCreate)