--- title: GiftCardCreditTransaction - GraphQL Admin description: A credit transaction which increases the gift card balance. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/GiftCardCreditTransaction md: >- https://shopify.dev/docs/api/admin-graphql/unstable/objects/GiftCardCreditTransaction.md --- # Gift​Card​Credit​Transaction object Requires `read_gift_card_transactions` access scope. A credit transaction which increases the gift card balance. ## Fields * amount [Money​V2!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyV2) non-null The amount of the transaction. * gift​Card [Gift​Card!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/GiftCard) non-null The gift card that the transaction belongs to. * id [ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID) non-null A globally-unique ID. * metafield [Metafield](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Metafield) A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information. * namespace [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) ### Arguments The container the metafield belongs to. If omitted, the app-reserved namespace will be used. * key [String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) required The key for the metafield. *** * metafields [Metafield​Connection!](https://shopify.dev/docs/api/admin-graphql/unstable/connections/MetafieldConnection) non-null A list of [custom fields](https://shopify.dev/docs/apps/build/custom-data) that a merchant associates with a Shopify resource. * namespace [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) ### Arguments The metafield namespace to filter by. If omitted, the app-reserved namespace will be used. * keys [\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) List of keys of metafields in the format `namespace.key`, will be returned in the same format. * first [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * after [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Reverse the order of the underlying list. *** * metafields​By​Identifiers [\[Metafield\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Metafield) non-null The metafields associated with the resource matching the supplied list of namespaces and keys. * identifiers [\[Has​Metafields​Identifier!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/input-objects/HasMetafieldsIdentifier) required ### Arguments The list of metafields to retrieve by namespace and key. *** * note [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) A note about the transaction. * processed​At [Date​Time!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/DateTime) non-null The date and time when the transaction was processed. *** ## 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. *** *** ## <\~> GiftCardCreditTransaction Mutations ### Mutated by * <\~>[gift​Card​Credit](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/giftCardCredit) *** ## Interfaces * * [Gift​Card​Transaction](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/GiftCardTransaction) interface * [Has​Metafields](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/HasMetafields) interface * [Node](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/Node) interface *** ## ||-GiftCardCreditTransaction Implements ### Implements * ||-[Gift​Card​Transaction](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/GiftCardTransaction) * ||-[Has​Metafields](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/HasMetafields) * ||-[Node](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/Node)