Current balance of a card
const url = 'https://api.zwipe.co/v1/cards/example/balance';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.zwipe.co/v1/cards/example/balance \ --header 'Authorization: Bearer <token>'Requires cards:balance. Balance from the issuer. as_of is when the issuer last answered. A value less than
60 seconds old is returned as is; poll faster than that and you get the same number.
A failed card, unknown or malformed ID, or a card belonging to another partner returns 404.
The public route requires a confirmed issuer.card_id and sends that identifier with
the cardholder email to the issuer. It does not fall back to an email-only balance.
Without that identifier it returns 409 issuance_in_doubt; contact Zwipe to reconcile
an uncertain order. On cards from POST /v1/cards, a successful balance read confirms an
activation_pending card as issued.
Use this timestamped result for your balance screen instead of the stored amount in
the issuance/status response.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The card_id of a card (UUID).
Responses
Section titled “Responses”Balance
object
When the issuer reported this balance.
The tip-pad padding the issuer estimates is held on open restaurant authorizations, not the whole authorized amount. Null until the card’s first balance read that reported it.
Cashback and visit gifts on this card. Null until the card’s first balance read that reported them, and always null on the sandbox. A card without a cashback program has zero totals and a null offer.
object
object
Cashback earned and waiting for its payout onto the card (“in transit”).
Cashback already loaded onto the card (“received”).
The cashback rate this card earns now. A progressive offer raises the rate on each return visit
made within the window in window_days; rates lists the rate per visit.
object
Percent of each purchase paid back.
The next visit must happen before this to keep the boost.
The restaurant’s IANA time zone, for showing dates on its calendar.
The cycle is finished and the cardholder may start another with POST /v1/cards/{card_id}/cashback/restart.
This cycle, to name in a restart.
Money a restaurant gives the cardholder for a later visit.
object
Spendable now; zero until the gift unlocks.
For example waiting, available, in_use, used or expired.
Example
{ "card_id": "0192f7a4-5c2e-7d3b-9a1f-4e8b2c6d0a11", "balance_cents": 1875, "currency": "USD", "as_of": "2026-09-10T13:00:02Z", "on_hold_cents": 0, "rewards": { "cashback": { "pending_cents": 325, "paid_cents": 110 }, "offer": null, "visit_gifts": [] }}Missing, expired or unknown credentials
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "unauthorized", "message": "A valid Bearer token is required." }}Token lacks the scope this endpoint needs
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "insufficient_scope", "message": "This endpoint requires scope cards:issue." }}No such resource for this partner
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "not_found", "message": "Not found." }}The issuer never confirmed a card for this reference, so there is nothing to read. A balance by cardholder alone would answer with another restaurant’s card.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "issuance_in_doubt", "message": "This card has no confirmed issuer card yet. Contact Zwipe." }}Over the request limit (see Rate limit above). Wait Retry-After seconds.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "rate_limited", "message": "Too many requests. Retry after 1 second." }}Headers
Section titled “Headers”Seconds to wait before the next request.
The issuer failed or did not answer in time. Retry reads with bounded backoff. For uncertain writes, preserve the original reference and inspect the saved order before any deliberate retry; never create a new reference to bypass uncertainty.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Examples
Issuer unreachable or timed out
{ "error": { "code": "provider_unavailable", "message": "The card issuer did not respond." }}Issuer answered with an error
{ "error": { "code": "provider_error", "message": "The card issuer rejected the request (code 1203)." }}
