Prerequisites: a Bearer access token carrying the
CREATE_SHARE_LINK scope. Basic auth is rejected. Contact your sales rep to enable access. See Authentication.What “hosted” / “open-loop” means. A hosted link points to a Fluz-hosted activation page. Open-loop means the resulting virtual card is a network card (Visa/Mastercard-style) that can be spent at many merchants, subject to your program’s rules — not a single-brand closed-loop gift card.
How it works
1
You generate links
Call
generateVCShareLinks with the offer, card limit, quantity, funding source, and a delivery method. Each link represents one card with its own limit, funded from the spend account you specify.2
Fluz creates a share request per link
Each link maps to one share request (
PENDING) and one hosted URL.3
The link is delivered
With
GENERATE_URL you get the URLs back to distribute yourself. With EMAIL or PHONE_NUMBER, Fluz delivers a link to each recipient for you.4
The recipient activates and claims the card
The recipient opens the link and verifies their phone number with a one-time code — no app download, no password. The card limit is drawn against your spend account at claim time, not when the link is generated. The card isn’t auto-revealed on claim; revealing it prompts the recipient to enter their PIN, or create one if they haven’t set one yet. See Recipient Experience for the full walkthrough.
Availability & scope
The card share-link object type is
VIRTUAL_CARD and the card type is SINGLE_LOAD.
Operation reference
There are three public operations, all gated by theCREATE_SHARE_LINK scope:
All Send Cards operations are on the Fluz GraphQL API at
POST https://<your-fluz-api-host>/api/v1/graphql with an Authorization: Bearer <access_token> header. The token must carry the CREATE_SHARE_LINK scope — without it, every operation returns “Missing permissions! Please contact your sales rep to get access to generate VC share links.”
generateVCShareLinks
Createsquantity share requests and returns one hosted link per request.
Input fields
Funding source.
userCashBalanceId (a spend account belonging to your, the sender’s, account) is the primary and required funding source. Optionally set usePrepaymentBalance and/or useRewardsBalance to true to let Fluz fall back to your prepayment or rewards balance if the spend account doesn’t cover the full amount at claim time. Bank accounts and bank cards are not supported as funding sources.Recipient identification & delivery (shareMethod)
EXISTING_USER and REGISTER_USER both create the virtual card as part of the generateVCShareLinks call, rather than deferring card creation to claim time. See Register & Send for the full EXISTING_USER flow, including how to register a recipient first with registerUser.Validation rules
cardLimitmust be a whole number and at least the program minimum.offerIdmust be a valid UUID v4 for an active offer whose merchant is shareable.quantitymust be a whole number.- The recipient field matching
shareMethod(recipientListEmail,recipientListPhone,recipientUserIds, orrecipientRegistrations) must have length equal toquantity. Mismatches return a clear error and create no records. recipientUserIdsandrecipientRegistrationsare mutually exclusive with each other and with the delivery-list fields.- Each ID in
recipientUserIdsmust be a valid, existing Fluz user. userCashBalanceIdis required and must be a valid UUID v4 owned by the sender’s account.usePrepaymentBalanceanduseRewardsBalanceare optional fallback sources and may both be enabled alongside it.- Invalid card types or malformed inputs return clear errors and create no records.
Examples
Response
shareLinks is an array of hosted URLs, one per quantity, each of the form https://fluz.app/virtual-prepaid-card/{share_request_id}.
getVCShareLinks
Lists previously generated share links so you can inspect status, recipients, expiration, and the issued card.Input fields
Response fields (GeneratedShareLink)
Examples
deactivateVCShareLinks
Deactivates (expires) links you generated — for example, if a batch was sent in error or you need to revoke unclaimed links. Deactivating a link sets it toEXPIRED; an unclaimed link can no longer be claimed.
Input fields
Get the batch IDs from
getVCShareLinks.
"3 share requests successfully deactivated!".
Expiration & freeze
The link’s expiration date does double duty:- Link expiration — after this date, an unclaimed link can no longer be claimed.
- Card freeze / lock date — for an issued card, this is the lock date (end of that day). After it, the card is frozen and cannot be spent.
- Card expiry is aligned to the end of the month of the freeze date (e.g., a freeze date of 6/15/2026 yields a card expiry of 6/30/2026).
daysUntilExpiration at generation time. If omitted, the program default (30 days) is used. This date is shown to the recipient (typically as a “Valid until” date) — see Recipient Experience.
Status & error reference
Share object statuses
For the states a recipient sees when a link is expired, revoked, or already claimed, see Recipient-facing link errors.
Common API errors
Notes & limitations
- Returned URL is the hosted destination, not a short link. Internally, links are also wrapped by a short-link provider, but the API returns the canonical hosted URL (
/virtual-prepaid-card/{share_request_id}). Distribute the URL exactly as returned. userCashBalanceIdis effectively required even though the schema marks it optional.- Hidden/internal fields are not part of this API. Object type and card type are fixed (
VIRTUAL_CARD/SINGLE_LOAD). Bank account and bank card funding are not yet enabled; do not send them.usePrepaymentBalanceanduseRewardsBalanceare the only supported additional funding sources today. - Gift-card hosted links are not supported. This API is for virtual cards only.
Next steps
Recipient experience
What your recipients see when they open a hosted link, and the rules that govern their card.
Register & Send
Use
EXISTING_USER to register a recipient and create their card up front, instead of at claim.Create a bulk order
Issue many cards at once for programmatic distribution.