Skip to main content
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.
Demo open loop cards

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.
The recipient becomes an authorized user of that virtual card object only — they do not gain access to your account, balances, or any other cards. Send cards flow diagram

Availability & scope

The card share-link object type is VIRTUAL_CARD and the card type is SINGLE_LOAD.
Gift cards: Despite the “virtual cards and gift cards” framing of the broader initiative, there is no hosted gift-card claim flow today. Gift-card balances appear in this area only as a potential funding source for hosted virtual cards (planned, not yet enabled). Document and build against virtual cards only.

Operation reference

There are three public operations, all gated by the CREATE_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.” Creates quantity 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

  • cardLimit must be a whole number and at least the program minimum.
  • offerId must be a valid UUID v4 for an active offer whose merchant is shareable.
  • quantity must be a whole number.
  • The recipient field matching shareMethod (recipientListEmail, recipientListPhone, recipientUserIds, or recipientRegistrations) must have length equal to quantity. Mismatches return a clear error and create no records.
  • recipientUserIds and recipientRegistrations are mutually exclusive with each other and with the delivery-list fields.
  • Each ID in recipientUserIds must be a valid, existing Fluz user.
  • userCashBalanceId is required and must be a valid UUID v4 owned by the sender’s account. usePrepaymentBalance and useRewardsBalance are optional fallback sources and may both be enabled alongside it.
  • externalReference and externalReferenceList are mutually exclusive, and each value must be non-empty and at most 255 characters.
  • When externalReferenceList is supplied its length must equal quantity.
  • Invalid card types or malformed inputs return clear errors and create no records.

Examples

For EXISTING_USER, register the recipient first (or use an existing user’s ID directly) — see Register & Send for the full walkthrough, including the registerUser call and response handling.

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.
The response gives you the URLs and the batch ID, but not the per-link display IDs. Read the batch back with getVCShareLinks filtered by shareRequestBatchIds to pick those up (needed for per-link listing and deactivation).
Lists previously generated share links so you can inspect status, recipients, expiration, and the issued card.

Input fields

Recommended flow. On the first call, filter by shareObjectStatuses only. The response gives you shareRequestBatchId and shareRequestDisplayId values; use those to filter precisely on subsequent calls (and to deactivate).

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. Use externalReference when the whole call belongs to one of your orders:
One reference for the call
Use 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
Each link’s record stores only its own entry — the list itself is not persisted on any link.

Read them back

Your value comes back on 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

With shareMethod = 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
Reading that batch back returns two links, carrying 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.
  • deactivateVCShareLinks does not accept externalReferences. 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. getVCShareLinks is 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. virtualCardId is only populated once a link reaches ISSUED, 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 EXPIRED and 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; use shareObjectStatus to tell the live link apart.
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 to EXPIRED; an unclaimed link can no longer be claimed.

Input fields

Get the batch IDs from getVCShareLinks.
Returns a human-readable confirmation string, e.g. "3 share requests successfully deactivated!".
If a recipient has already claimed a link (status ISSUED/USED), deactivating the link does not claw back the issued card. To stop spend on an already-issued card, use the relevant card lifecycle/freeze controls.

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).
Set the window with 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.
  • userCashBalanceId is 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. usePrepaymentBalance and useRewardsBalance are 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.