Top up a card, or pay cashback onto it
const url = 'https://api.zwipe.co/v1/cards/example/loads';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount_cents":2000,"currency":"USD","reason":"topup","external_ref":"ph-pay-55187","location_id":"dallas-0042"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.zwipe.co/v1/cards/example/loads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount_cents": 2000, "currency": "USD", "reason": "topup", "external_ref": "ph-pay-55187", "location_id": "dallas-0042" }'Chain accounts only; requires cards:issue. Loads amount_cents onto an issued card from
your account’s float; reason tells a top-up from a cashback payout. Asynchronous: 202
with status: pending, then a load.* webhook, with GET /v1/loads/{load_id} as the
fallback. Final states:
succeeded: the money is on the card.failed: nothing was loaded (error_codesays why). The sameexternal_refand body send it again (202).in_doubt: the issuer did not answer in time, so it may have loaded it. Never send a replacement with a new reference. Zwipe reconciles it with the issuer, by hand and possibly over days, and it then turnssucceededorfailed, with itsload.*event.
external_ref is shared with issues: the same reference with the same card, amount and
reason returns the load (200); with another card, amount or reason, or one already used
by an issue, it is 409 external_ref_conflict. The issuer caps a card’s balance at
$5,000.00: a load that would take the balance above it fails (balance_limit).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The card_id of a card (UUID).
Request Bodyrequired
Section titled “Request Bodyrequired”object
$1.00 to $1,000.00 during the pilot, cashback included; accumulate cashback under $1.00 and pay it in a later load.
topup for money the customer paid you, cashback for a payout you fund.
Your persisted reference for this payment or payout, unique across your account (issues and loads alike). Reuse it with the original body for recovery; a new reference is a new order.
Your own id for the store, for reporting. Free text; it does not change which float pays.
Example
{ "amount_cents": 2000, "currency": "USD", "reason": "topup", "external_ref": "ph-pay-55187", "location_id": "dallas-0042"}Responses
Section titled “Responses”Same external_ref and body seen before; the load in its current state
object
Why the load failed (balance_limit, float_insufficient, provider_unavailable or the
issuer’s code) or is in_doubt (provider_timeout). Null otherwise.
The amount requested.
Example
{ "load_id": "0192f7c1-2b3c-7d4e-9f50-6a7b8c9d0e1f", "card_id": "0192f7a4-5c2e-7d3b-9a1f-4e8b2c6d0a11", "status": "succeeded", "error_code": null, "amount_cents": 2000, "currency": "USD", "reason": "topup", "external_ref": "ph-pay-55187", "location_id": "dallas-0042", "created_at": "2026-11-09T18:20:00Z"}Load accepted; the issuer is being called
object
Why the load failed (balance_limit, float_insufficient, provider_unavailable or the
issuer’s code) or is in_doubt (provider_timeout). Null otherwise.
The amount requested.
Example
{ "load_id": "0192f7c1-2b3c-7d4e-9f50-6a7b8c9d0e1f", "card_id": "0192f7a4-5c2e-7d3b-9a1f-4e8b2c6d0a11", "status": "pending", "error_code": null, "amount_cents": 2000, "currency": "USD", "reason": "topup", "external_ref": "ph-pay-55187", "location_id": "dallas-0042", "created_at": "2026-11-09T18:20:00Z"}Request does not match this contract (missing field, wrong type, bad format)
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": "validation_error", "message": "Request body invalid: value at `/email` does not match format: email", "details": [ { "pointer": "/email", "message": "value at `/email` does not match format: email" } ] }}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." }}The token lacks the endpoint’s scope (insufficient_scope), or this is a chain endpoint and
the account or card is not a chain one (chain_only).
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": "chain_only", "message": "This endpoint is for chain accounts and their cards." }}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." }}card_not_active: the card is not issued. external_ref_conflict: the reference was used
with another card, amount or reason.
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": "card_not_active", "message": "Card 0192f7a4-5c2e-7d3b-9a1f-4e8b2c6d0a11 is pending; load it once it is issued." }}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.

