> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fluz.app/llms.txt
> Use this file to discover all available pages before exploring further.

# purchaseGiftCard

> Initiates a gift card purchase transaction.

Initiates a gift card purchase transaction. Requires PURCHASE\_GIFTCARD scope. The offerId or merchantSlug fields cannot both be empty. If both are provided, offerId will be used.

```graphql theme={null}
mutation {
  purchaseGiftCard(
    input: PurchaseGiftCardInput!
  ): UserPurchase
}
```

## Arguments

<ParamField body="input" type="PurchaseGiftCardInput!" required>
  *No description provided in the schema yet.*
</ParamField>

## Returns

[`UserPurchase`](/api-reference/types/user-purchase) — UserPurchase represents a record of a purchase made by a user, detailing the payment methods and other relevant information.
