> ## 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.

# PurchaseGiftCardInput

> Input type for purchase gift card.

**Input object**

Input type for purchase gift card.

## Input fields

<ParamField body="idempotencyKey" type="UUID!" required>
  A unique client generated UUID to ensure a request is processed only once.
</ParamField>

<ParamField body="offerId" type="UUID">
  The unique identifier for the offer.
</ParamField>

<ParamField body="amount" type="Float!" required>
  The amount to purchase.
</ParamField>

<ParamField body="balanceAmount" type="Float">
  The balance amount.
</ParamField>

<ParamField body="bankAccountId" type="UUID">
  The unique identifier for the bank account.
</ParamField>

<ParamField body="bankCardId" type="UUID">
  The unique identifier of the bank card.
</ParamField>

<ParamField body="paypalVaultId" type="UUID">
  The unique identifier of the PayPal account.
</ParamField>

<ParamField body="exclusiveRateId" type="UUID">
  The unique identifier of the exclusive rate.
</ParamField>

<ParamField body="merchantSlug" type="String">
  Human readable unique identifier for merchant. Can be found in merchant list.
</ParamField>

<ParamField body="defaultToBalance" type="Boolean">
  Use balance as the fallback payment method if the primary payment method fails. Defaults to true.
</ParamField>

<ParamField body="minRewardRate" type="Float">
  The minimum reward rate to purchase if merchantSlug option is chosen.
</ParamField>

<ParamField body="userCashBalanceId" type="UUID">
  The unique identifier of the user cash balance id used for this purchase
</ParamField>

<ParamField body="memo" type="String">
  Optional memo to attach to this purchase transaction.
</ParamField>

<ParamField body="transactionCategory" type="String">
  Optional category name to attach to this purchase transaction.
</ParamField>

<ParamField body="attachmentId" type="String">
  ID of a previously uploaded attachment (PDF or PNG). Use the /api/v1/file-upload/transaction-memo-attachment endpoint to upload.
</ParamField>
