- Cash balance- A regular cash balance deposit.
- Gift card balance- A non-withdrawable deposit for gift card balance.
- Reserve balance - A deposit held in reserve balance.
Make a Deposit
Deposits require theMAKE_DEPOSIT scope on the access token.
To deposit funds into one of your Fluz balances, use the depositCashBalance mutation. This mutation accepts an input object type of DepositCashBalanceInput, which allows you to specify the following details:
- Amount: Required - The amount you wish to deposit.
- idempotencyKey: Required - A unique client-generated UUID to ensure a request is processed only once.
- Funding Source: The payment method from which the deposit will be made (e.g., bank account, credit or debit card, PayPal). In order to get your funding source’s ID, use the
getWalletquery.bankAccountId- If you want to pay with a bank account, define the bank account ID in thedepositCashBalancemutation.bankCardId- If you want to pay with a bank card, define the bank card ID in thedepositCashBalancemutation.paypalVaultID- If you want to pay with a PayPal account, define the PayPal account ID in thedepositCashBalancemutation.
- Deposit Destination: The balance where you want to deposit your funds. The available options for this are defined in the
CashBalanceDepositTypeenumerator:CASH_BALANCEGIFT_CARD_BALANCERESERVE_BALANCE
- Merchant Category Code: Only applies for GIFT_CARD_BALANCE. A four-digit number that classifies a business by the type of products or services it offers. Use
getMccListto retrieve a list of valid MCCs. userCashBalanceId- IfCASH_BALANCEis selected, you can specify the cash balance (spend account) to deposit your fundsmemo* - If you want to attach a note to this transaction, provide a free-text memo here. Max 255 characters.transactionCategory- If you want to categorize this transaction, provide a category name. Categories are created automatically on first use and reused if the same name is passed again.attachmentId- If you want to attach a file to this transaction, provide the ID returned by the upload endpoint. See Add Expense Details. 📘 See Add Expense Details for full details on uploading attachments and working with memos and categories.
Sample Request
graphql
DepositCashBalanceInput
Sample Response
Debit Card Deposits
A deposit funded by a debit card may be processed as an account funding transaction (AFT) — a card-network transaction type designed for moving funds into an account. Fluz applies it automatically where it is available; there is no field to request it. What it changes for you is the fee. AFT applies only when all of the following hold:- The funding source is a
bankCardId, and the card’scardTypeisDEBIT. depositTypeisCASH_BALANCE. Deposits toGIFT_CARD_BALANCEandRESERVE_BALANCEnever use AFT.- The card is AFT-eligible.
CREDIT and PREPAID bank cards never use AFT, and neither do bank accounts (bankAccountId) or PayPal (paypalVaultId). They are charged the standard rate for their payment method — this is a normal outcome, not an error.
Fees on Debit Card Deposits
AFT-eligible cards are charged an AFT-specific rate. Cards that are not AFT-eligible are charged the standard debit-card rate instead — this is a normal outcome, not an error. Because the two rates differ, readdepositFee from the response instead of computing the fee client-side.
Card Eligibility
Whether a card supports AFT is a property of the card itself rather than something you configure. Eligibility is evaluated when the deposit is submitted.Eligibility is not available in advance, and does not carry over to withdrawals.There is no query that reports whether a card supports AFT — it is reflected in the fee on the first deposit from that card. Deposit and withdrawal eligibility are also independent, so a card a user can deposit from is not necessarily a card you can send a withdrawal to. See Withdraw to External Account.
Keep an alternative funding source reachable in your UI so an ineligible or declined card does not dead-end the flow.
Deposit Response
Once you initiate a deposit with thedepositCashBalance mutation, you will get a response providing details about the deposit.
The
CashBalanceDeposit object will contain important information about the deposit you initiated.
📘 Please note Deposits may settle instantly or within 2-5 business days. To learn how settlement times are calculated, read this article.