Skip to content

Current balance of a card

GET
/v1/cards/{card_id}/balance
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.

card_id
required
string

The card_id of a card (UUID).

Balance

Media typeapplication/json
object
card_id
required
string format: uuid
balance_cents
required
integer
currency
required
string
Allowed values: USD
as_of
required

When the issuer reported this balance.

string format: date-time
on_hold_cents

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.

integer | null
rewards

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.

One of:
object
cashback
required
object
pending_cents
required

Cashback earned and waiting for its payout onto the card (“in transit”).

integer
paid_cents
required

Cashback already loaded onto the card (“received”).

integer
offer
required
One of:

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
name
required
string
kind
required
string
status
required
string
Allowed values: active expired completed base
rate
required

Percent of each purchase paid back.

number
base_rate
required
number
step
required
integer
completed_visits
required
integer
rates
required
Array<number> | null
window_days
required
Array<integer> | null
expires_at
required

The next visit must happen before this to keep the boost.

string | null format: date-time
program_ends_at
required
string | null format: date-time
time_zone

The restaurant’s IANA time zone, for showing dates on its calendar.

string | null
minimum_purchase_cents
required
integer
can_restart
required

The cycle is finished and the cardholder may start another with POST /v1/cards/{card_id}/cashback/restart.

boolean
enrollment_id

This cycle, to name in a restart.

string | null
visit_gifts
required
Array<object>

Money a restaurant gives the cardholder for a later visit.

object
id
required
string
amount_cents
required
integer
remaining_cents
required
integer
available_cents
required

Spendable now; zero until the gift unlocks.

integer
state
required

For example waiting, available, in_use, used or expired.

string
available_at
required
string | null format: date-time
expires_at
required
string | null format: date-time

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

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable code.

string
Allowed values: validation_error invalid_client unauthorized insufficient_scope not_found method_not_allowed unsupported_media_type external_ref_conflict card_exists card_not_active cardholder_email_conflict no_existing_card chain_only chain_account venue_claimed venue_not_registered venue_required provider_error provider_unavailable provider_timeout issuance_in_doubt restart_unavailable rate_limited internal_error
message
required
string
details

Present on validation_error. One entry per violated field.

Array<object>
object
pointer
required

JSON pointer into the request body, or the parameter name.

string
message
required
string

Example

{
"error": {
"code": "unauthorized",
"message": "A valid Bearer token is required."
}
}

Token lacks the scope this endpoint needs

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable code.

string
Allowed values: validation_error invalid_client unauthorized insufficient_scope not_found method_not_allowed unsupported_media_type external_ref_conflict card_exists card_not_active cardholder_email_conflict no_existing_card chain_only chain_account venue_claimed venue_not_registered venue_required provider_error provider_unavailable provider_timeout issuance_in_doubt restart_unavailable rate_limited internal_error
message
required
string
details

Present on validation_error. One entry per violated field.

Array<object>
object
pointer
required

JSON pointer into the request body, or the parameter name.

string
message
required
string

Example

{
"error": {
"code": "insufficient_scope",
"message": "This endpoint requires scope cards:issue."
}
}

No such resource for this partner

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable code.

string
Allowed values: validation_error invalid_client unauthorized insufficient_scope not_found method_not_allowed unsupported_media_type external_ref_conflict card_exists card_not_active cardholder_email_conflict no_existing_card chain_only chain_account venue_claimed venue_not_registered venue_required provider_error provider_unavailable provider_timeout issuance_in_doubt restart_unavailable rate_limited internal_error
message
required
string
details

Present on validation_error. One entry per violated field.

Array<object>
object
pointer
required

JSON pointer into the request body, or the parameter name.

string
message
required
string

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.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable code.

string
Allowed values: validation_error invalid_client unauthorized insufficient_scope not_found method_not_allowed unsupported_media_type external_ref_conflict card_exists card_not_active cardholder_email_conflict no_existing_card chain_only chain_account venue_claimed venue_not_registered venue_required provider_error provider_unavailable provider_timeout issuance_in_doubt restart_unavailable rate_limited internal_error
message
required
string
details

Present on validation_error. One entry per violated field.

Array<object>
object
pointer
required

JSON pointer into the request body, or the parameter name.

string
message
required
string

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.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable code.

string
Allowed values: validation_error invalid_client unauthorized insufficient_scope not_found method_not_allowed unsupported_media_type external_ref_conflict card_exists card_not_active cardholder_email_conflict no_existing_card chain_only chain_account venue_claimed venue_not_registered venue_required provider_error provider_unavailable provider_timeout issuance_in_doubt restart_unavailable rate_limited internal_error
message
required
string
details

Present on validation_error. One entry per violated field.

Array<object>
object
pointer
required

JSON pointer into the request body, or the parameter name.

string
message
required
string

Example

{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after 1 second."
}
}
Retry-After
integer
>= 1

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.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable code.

string
Allowed values: validation_error invalid_client unauthorized insufficient_scope not_found method_not_allowed unsupported_media_type external_ref_conflict card_exists card_not_active cardholder_email_conflict no_existing_card chain_only chain_account venue_claimed venue_not_registered venue_required provider_error provider_unavailable provider_timeout issuance_in_doubt restart_unavailable rate_limited internal_error
message
required
string
details

Present on validation_error. One entry per violated field.

Array<object>
object
pointer
required

JSON pointer into the request body, or the parameter name.

string
message
required
string

Examples

Issuer unreachable or timed out

{
"error": {
"code": "provider_unavailable",
"message": "The card issuer did not respond."
}
}