---
title: UserError - Partner API
description: Represents an error in a mutation.
api_version: 2026-04
source_url:
  html: https://shopify.dev/docs/api/partner/latest/objects/usererror
  md: https://shopify.dev/docs/api/partner/latest/objects/usererror.md
---

# User​Error

object

Represents an error in a mutation.

## Fields

* field

  [\[String!\]](https://shopify.dev/docs/api/partner/latest/scalars/String)

  The path to the input field that caused the error.

* message

  [String!](https://shopify.dev/docs/api/partner/latest/scalars/String)

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [app​Credit​Create](https://shopify.dev/docs/api/partner/latest/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/latest/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/latest/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/latest/input-objects/MoneyInput)

    required

    The amount that can be used towards future app purchases in Shopify.

  * description

    [String!](https://shopify.dev/docs/api/partner/latest/scalars/String)

    required

    The description of the app credit.

  * test

    [Boolean](https://shopify.dev/docs/api/partner/latest/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/latest/mutations/appCreditCreate)