createTransfer to send money between Fluz accounts that are connected to your application. The money lands in the recipient’s spend account right away.
Before you start
- Your application must be a public application.
- The recipient must be a user who authorized your application, or your application’s own account. To pay any other Fluz account, use
sendMoney. - To send as your application (Basic Auth), your application must be
ACTIVE.
Quick start
Collect $10 from a user into your application:Who sends the money
How you authenticate decides who the sender is.
Bearer token: a user access token from
generateUserAccessToken or the OAuth refresh flow. It must include the MAKE_PAYOUT_TRANSFER_SEND scope.
Basic Auth: your application’s API key.
Input
CreateTransferInput
Where the money comes from
- By default, from the sender’s spend account.
- With
bankCardId,bankAccountIdorpaypalVaultId, Fluz deposits from that source into the sender’s spend account first, then sends. Pass at most one, and only with a Bearer token. - Rewards balance and prepayment / gift card balance can’t fund a transfer.
TransferDestination
Identify the recipient by account ID, or by the external reference ID you assigned when you onboarded them. Pass one, not both.Response
Examples
Collect a payment from a user (Bearer)
destination needed. It defaults to your application. To fund it from the user’s linked card, bank account or PayPal instead of their balance, add bankCardId, bankAccountId or paypalVaultId.
Pay out to a user (Basic Auth)
accountId instead of externalReferenceId.
Send between two of your users (Bearer)
Idempotency
Every request needs a uniqueidempotencyKey, a UUID you generate. If you send the same key again, you get the original result back and no second transfer is made. Keys are valid for 10 minutes. Use a new key for every new transfer, and never reuse a key from another kind of transfer.