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)
The card is created when the link is claimed, whatever the
shareMethod. An instant-funded (prefunded) offer changes when you pay, not when the card appears: the purchase is captured during the generateVCShareLinks call instead of at claim. Either way a new link starts PENDING with virtualCardId null; EXISTING_USER and REGISTER_USER only bind it to a known recipient up front. 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.externalReferenceandexternalReferenceListare mutually exclusive, and each value must be non-empty and at most 255 characters.- When
externalReferenceListis supplied its length must equalquantity. - 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 (with REGISTER_USER, one per recipient that registered; see when a recipient registration fails), each of the form https://fluz.app/virtual-prepaid-card/{share_request_id}. shareRequestBatchId identifies the batch every link in the call belongs to.
getVCShareLinks
Lists previously generated share links so you can inspect status, recipients, expiration, and the issued card.Input fields
Response fields (GeneratedShareLink)
Examples
Reconciling orders
offerId identifies the Fluz card program, so it is the same value on every order you place and
cannot tell one of your customers from another. To attribute a link back to your own records, send
your own identifier when you generate it and filter on it when you read back.
Tag the links
UseexternalReference when the whole call belongs to one of your orders:
One reference for the call
externalReferenceList when one call covers several of your orders or customers. Entry i
belongs to link i, in the same order the links are returned (with REGISTER_USER, see
when a recipient registration fails):
One reference per link
Read them back
shareRequestDetails.externalReference, one row per link. Add
shareObjectStatuses to answer questions like which of your orders have been claimed or spent:
When a recipient registration fails
WithshareMethod = REGISTER_USER, each entry in recipientRegistrations is attempted on its own.
One entry failing does not fail the call: that recipient is reported as FAILED in
recipientRegistrationResults, and the call returns a link for each recipient that did register. So
a quantity of 3 with one failure returns two links.
Your references follow the recipients that survived, in order. If the second of three registrations
fails, the first link keeps the first reference and the remaining link keeps the third — the
third reference is not shifted onto the second recipient, and the dropped entry’s reference is not
stored anywhere:
Request
Second registration failed
ORDER-1 and ORDER-3. A filter on ORDER-2
returns nothing. Check recipientRegistrationResults whenever you send externalReferenceList, so
you know which of your orders actually got a link.
A registration fails with
REGISTRATION_EMAIL_TAKEN or REGISTRATION_PHONE_TAKEN when the email
or phone already belongs to a full Fluz account. If every registration fails, the whole call is
rejected and no links are created.What to know before you build on it
- Uniqueness is yours to manage. Fluz does not enforce it. If you reuse a reference across orders, a filter on it returns all of them.
- Matching is exact, on the trimmed value. There is no prefix or partial matching.
- Links created before this field existed have no reference. There is no backfill, so reconciliation by reference applies to links generated from that point forward. Those older links are still addressable by batch and display ID.
deactivateVCShareLinksdoes not acceptexternalReferences. Deactivate by batch ID or display ID. Read the links back first if you only hold your own reference.- Reconcile with the same credentials you generated with.
getVCShareLinksis scoped to the user whose token makes the call, not to the account. Links generated under a different user’s token in the same account are not returned. - Don’t reconcile on the card ID.
virtualCardIdis only populated once a link reachesISSUED, and a link that expires unclaimed never gets one. - A reference can return more than one row. When Fluz reissues a link, the original is set to
EXPIREDand a new link is created in the same batch with the same reference, so a filter on it returns both. Don’t count rows per order; useshareObjectStatusto tell the live link apart.
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 up front and bind the link to them.Create a bulk order
Issue many cards at once for programmatic distribution.