Issue and manage virtual cards, fund them, and follow the money — programmatically.
Getting started
Every request goes to https://ciaas-api.vercel.app over HTTPS. All endpoints are scoped to your
organization by the API key you present, so there is no account or tenant parameter anywhere in
this API — a key can only ever read and write its own organization's data.
Create keys from the API Keys page in the customer portal. Your first key must come from
there — creating one through this API requires a key you already hold.
Treat a key like a password. It grants full access to your
organization's cards, cardholders, and funding. Never commit one or expose it in a browser. If a
key is exposed, rotate it — the replacement is issued immediately and the old key keeps working
for a short grace period so you can deploy without downtime.
Idempotency
Send an Idempotency-Key header on any request that creates or moves something.
Retrying with the same key replays the original response instead of acting twice — so a network
timeout never risks issuing two cards or recording two funding loads.
Reusing a key with a different body returns IDEMPOTENCY_CONFLICT rather
than silently doing something unexpected. Use a fresh UUID per logical operation.
Errors
Errors use standard HTTP status codes and always return the same shape. The
code is stable and safe to branch on; message is human-readable and may change.
{
"error": {
"code": "KYC_NOT_APPROVED",
"message": "Cards cannot be issued to this cardholder: identity verification status is REVIEW.",
"details": null
}
}
Code
Meaning
UNAUTHENTICATED
Missing, invalid, revoked, or expired API key.
MFA_REQUIRED
Portal-only; not returned by this API.
FORBIDDEN
Your account does not currently have API access.
NOT_FOUND
No such resource on your account.
VALIDATION
A field is missing or malformed. See the message.
STATE_CONFLICT
The resource is not in a state that allows this action.
KYC_NOT_APPROVED
The cardholder’s identity verification is not approved, so no card can be issued.
CONTROLS_OUT_OF_BOUNDS
A spend control exceeds what the program allows.
INSUFFICIENT_FUNDS
Available balance does not cover the amount.
IDEMPOTENCY_CONFLICT
This Idempotency-Key was used with a different request body, or the original is still in flight.
CONFIRMATION_REQUIRED
Portal-only; not returned by this API.
RATE_THRESHOLD
Portal-only; not returned by this API.
RATE_LIMITED
Too many requests. Slow down and retry.
Pagination & amounts
List endpoints accept limit (1–100, default 25) and offset, and return
results newest-first under a data array.
All money is integer cents.50000 means $500.00. There are
no floating-point amounts anywhere in this API. Timestamps are epoch milliseconds.
Lifecycles
Card states
State
Meaning
Can move to
PENDING
Issuance requested, awaiting the processor.
ACTIVE, FAILED
ACTIVE
Usable for authorizations.
SUSPENDED, CLOSED
SUSPENDED
Frozen. Authorizations are declined.
ACTIVE, CLOSED
CLOSED
Terminated permanently.
terminal
FAILED
Issuance failed at the processor.
terminal
Dispute states
State
Meaning
CREATED
Opened, not yet submitted to the network.
SUBMITTED
Filed with the processor and network.
UNDER_REVIEW
Being adjudicated; evidence exchange in progress.
WON
Resolved in the cardholder’s favour; funds returned to your balance.
LOST
Resolved against the cardholder; the charge stands.
CANCELLED
Withdrawn before resolution.
API keys
Manage the credentials used to call this API. Your first key must be created from the portal — creating one here requires a key you already hold. Secrets are shown once at creation and stored only as a hash; if you lose one, rotate it.
GET/v1/api-keysB.2
List API keys
Returns metadata for every key on your account. Secrets are never returned.
Returns a cardholder and their current KYC status.
Path parameters
Field
Type
Description
id
string
required
The cardholder ID.
PATCH/v1/cardholders/:idB.3
Update a cardholder
Updates mutable contact fields. Identity fields are immutable once verification has run.
Path parameters
Field
Type
Description
id
string
required
The cardholder ID.
Body
Field
Type
Description
email
string
optional
New contact email.
phone
string
optional
New contact phone.
Cards
Issue and manage virtual cards. Spend controls set here are enforced at authorization time, and are always bounded by the limits configured on your program.
POST/v1/cardsB.4
Issue a card
Issues a virtual card to a cardholder under one of your programs.
Body
Field
Type
Description
cardholderId
string
required
Who the card is for. Their KYC status must be APPROVED.
programId
string
required
Program to issue under. See GET /v1/programs.
nickname
string
optional
A label for your own reference.
controls
object
optional
Spend controls. Any limit you omit inherits the program bound; any limit looser than the program bound is rejected.
controls.perTxnLimitCents
integer
optional
Maximum for a single authorization.
controls.dailyLimitCents
integer
optional
Rolling 24-hour spend cap.
controls.monthlyLimitCents
integer
optional
Rolling 30-day spend cap.
controls.lifetimeLimitCents
integer
optional
Total spend cap for the life of the card.
controls.velocityMaxPerHour
integer
optional
Maximum authorizations per hour.
controls.mccAllowList
string[]
optional
If set, only these merchant category codes are approved.
controls.mccBlockList
string[]
optional
Merchant category codes to always decline.
controls.singleUse
boolean
optional
Decline any authorization after the first successful one.
Amounts are always integer cents. 50000 means $500.00.
The full card number is never returned by this API — use the secure display endpoint.
Filter by status: PENDING, ACTIVE, SUSPENDED, CLOSED, FAILED.
limit
integer
optional
Results per page, 1–100. Defaults to 25.
offset
integer
optional
Number of results to skip. Defaults to 0.
GET/v1/cards/:idB.4
Retrieve a card
Returns card metadata, including masked number and current spend controls.
Path parameters
Field
Type
Description
id
string
required
The card ID.
POST/v1/cards/:id/freezeB.4
Freeze a card
Suspends a card. New authorizations are declined until it is unfrozen.
Path parameters
Field
Type
Description
id
string
required
The card ID.
Body
Field
Type
Description
reason
string
optional
Recorded on the audit trail.
POST/v1/cards/:id/unfreezeB.4
Unfreeze a card
Returns a suspended card to active. It begins approving authorizations again immediately.
Path parameters
Field
Type
Description
id
string
required
The card ID.
POST/v1/cards/:id/terminateB.4
Terminate a card
Permanently closes a card. This cannot be undone and a closed card can never return to active.
Path parameters
Field
Type
Description
id
string
required
The card ID.
Body
Field
Type
Description
reason
string
optional
Recorded on the audit trail.
PATCH/v1/cards/:id/controlsB.4
Update spend controls
Replaces the card’s spend controls. Takes effect on the next authorization.
Path parameters
Field
Type
Description
id
string
required
The card ID.
Body
Field
Type
Description
…
object
optional
Same control fields accepted when issuing a card.
POST/v1/cards/:id/secure-display-tokenB.5
Create a secure display token
Mints a short-lived, single-use token for viewing the full card number and CVV. The page is rendered by the card processor — those values never pass through this platform, which is what keeps you out of PCI scope. Render the returned URL in an iframe.
Path parameters
Field
Type
Description
id
string
required
The card ID.
The token is burned on first render and expires in about a minute.
Every reveal is recorded on your audit trail — who, when, which card — without capturing the values.
Your balance is pre-funded and pooled: card authorizations draw against available funds. Every movement is recorded as balanced, immutable double-entry ledger entries.
GET/v1/funding/balanceB.6
Retrieve balances
Returns available, held, and posted balances in cents.
available is spendable now; held is reserved by pending authorizations; posted is settled spend.
Records an incoming funding load against your balance. The funds themselves move over conventional bank rails; this records the load and is reconciled against arrival.
Lists individual double-entry ledger lines. Entries are immutable; corrections appear as new compensating entries.
Query parameters
Field
Type
Description
limit
integer
optional
Results per page, 1–100. Defaults to 25.
offset
integer
optional
Number of results to skip. Defaults to 0.
Transactions
Every authorization on your cards and its lifecycle through clearing, reversal, and refund.
GET/v1/transactionsB.7
List transactions
Lists transactions, most recent first.
Query parameters
Field
Type
Description
cardId
string
optional
Only transactions on this card.
cardholderId
string
optional
Only transactions for this cardholder.
status
string
optional
Filter by status: AUTHORIZED, CLEARED, REVERSED, REFUNDED, DECLINED.
from
integer
optional
Epoch milliseconds, inclusive lower bound.
to
integer
optional
Epoch milliseconds, inclusive upper bound.
limit
integer
optional
Results per page, 1–100. Defaults to 25.
offset
integer
optional
Number of results to skip. Defaults to 0.
GET/v1/transactions/:idB.7
Retrieve a transaction
Returns a transaction with its full lifecycle event history.
Path parameters
Field
Type
Description
id
string
required
The transaction ID.
When a transaction is DECLINED, declineReason is one of: CARD_NOT_ACTIVE, INSUFFICIENT_FUNDS, PER_TXN_LIMIT, DAILY_LIMIT, MONTHLY_LIMIT, LIFETIME_LIMIT, VELOCITY_LIMIT, MCC_BLOCKED, SINGLE_USE_EXHAUSTED, CUSTOMER_NOT_ACTIVE.