> ## 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 name="idempotencyKey" type="UUID!" required>
  A unique client generated UUID to ensure a request is processed only once.
</ParamField>

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

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

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

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

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

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

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

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

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

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

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

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

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

<ParamField name="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>
