---
title: GiftCardTransactionUserError - GraphQL Admin
description: >-
  Represents an error that happens during the execution of a gift card
  transaction mutation.
api_version: unstable
api_name: admin
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/unstable/objects/GiftCardTransactionUserError
  md: >-
    https://shopify.dev/docs/api/admin-graphql/unstable/objects/GiftCardTransactionUserError.md
---

# Gift​Card​Transaction​User​Error

object

Requires `read_gift_card_transactions` access scope.

Represents an error that happens during the execution of a gift card transaction mutation.

## Fields

* code

  [Gift​Card​Transaction​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/unstable/enums/GiftCardTransactionUserErrorCode)

  The error code.

* field

  [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)

  The path to the input field that caused the error.

* message

  [String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [gift​Card​Credit](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/giftCardCredit)

  mutation

  Credit a gift card.

  * id

    [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)

    required

    ### Arguments

    The ID of the gift card to be credited.

  * credit​Input

    [Gift​Card​Credit​Input!](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/GiftCardCreditInput)

    required

    The input fields to credit a gift card.

  ***

* [gift​Card​Debit](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/giftCardDebit)

  mutation

  Debit a gift card.

  * id

    [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)

    required

    ### Arguments

    The ID of the gift card to be debited.

  * debit​Input

    [Gift​Card​Debit​Input!](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/GiftCardDebitInput)

    required

    The input fields to debit a gift card.

  ***

***

## GiftCardTransactionUserError Mutations

### Mutated by

* [gift​Card​Credit](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/giftCardCredit)
* [gift​Card​Debit](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/giftCardDebit)

***

## Interfaces

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)

  interface

***

## GiftCardTransactionUserError Implements

### Implements

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)
