- 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.
Depositing on behalf of your customers? A deposit made with a customer-scoped token needs payment collection set up for your app by the Fluz Platform team, in staging and in production. Until then the call returns
PG-0003. See Collect payments from your customers.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
Estimate the Fee
Before you submit a bank card or bank account deposit, call thegetDepositFeeEstimate query to show your user what it will cost. It requires the same MAKE_DEPOSIT scope and takes the same amount, deposit type and funding source you will deposit with. PayPal deposits (paypalVaultId) can’t be estimated.
feeis the estimated total funding fee, andtotalChargeAmountthe estimated charge to the funding source. The deposit’sdepositFeeis the fee actually charged. It equalsfee, or is lower in the two cases described below: when AFT routing can’t be known in advance, and when aGIFT_CARD_BALANCEdeposit is charged a lower merchant category tier than the one quoted.feeBreakdownshows what the fee is made of: Fluz’s funding fee (FLUZ_FEE), then any AFT fee charged on top of it: your application’s (DEVELOPER_FEE), or, when your application has none, a Fluz AFT fee (FLUZ_FEE). TheirfeeAmountvalues add up tofee. The list can be empty when no breakdown is available; readfeefor the total either way. Where one applies, each part also names the fee definition, override, payment rate or BIN configuration that priced it. When a part’s rate replaces a standard one,baseFeePercent/baseFeeFixedcarry the standard rate: the fee definition’s own rate for an override (FEE_OVERRIDE), or the payment method’s rate for a BIN configuration, merchant category tier or AFT rate. SeeDepositFeeComponent.- The estimate is never lower than the fee the deposit is charged. When Fluz can’t tell in advance whether a debit card deposit will route as an AFT, it quotes the higher rate, so the charge can only come in at or below it.
- For a
GIFT_CARD_BALANCEdeposit, the merchant category tier charged depends on the merchant category the deposit is routed under. The estimate takes no merchant category, so it quotes the highest tier configured for the card’s BIN at that amount.
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, don’t compute the fee client-side: quote it withgetDepositFeeEstimate before the deposit, then read depositFee from the response for the fee that was charged.
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. When Fluz has not yet confirmed a card’s eligibility,
getDepositFeeEstimate quotes the higher of the AFT and standard debit-card fees, and the fee on the first deposit from that card shows which one applied. 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.