Skip to content

Top up a card, or pay cashback onto it

POST
/v1/cards/{card_id}/loads
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_code says why). The same external_ref and 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 turns succeeded or failed, with its load.* 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).

card_id
required
string

The card_id of a card (UUID).

Media typeapplication/json
object
amount_cents
required

$1.00 to $1,000.00 during the pilot, cashback included; accumulate cashback under $1.00 and pay it in a later load.

integer
>= 100 <= 100000
currency
required
string
Allowed values: USD
reason
required

topup for money the customer paid you, cashback for a payout you fund.

string
Allowed values: topup cashback
external_ref
required

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.

string
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
location_id

Your own id for the store, for reporting. Free text; it does not change which float pays.

string
>= 1 characters <= 64 characters

Example

{
"amount_cents": 2000,
"currency": "USD",
"reason": "topup",
"external_ref": "ph-pay-55187",
"location_id": "dallas-0042"
}

Same external_ref and body seen before; the load in its current state

Media typeapplication/json
object
load_id
required
string format: uuid
card_id
required
string format: uuid
status
required
string
Allowed values: pending succeeded failed in_doubt
error_code
required

Why the load failed (balance_limit, float_insufficient, provider_unavailable or the issuer’s code) or is in_doubt (provider_timeout). Null otherwise.

string | null
amount_cents
required

The amount requested.

integer
currency
required
string
Allowed values: USD
reason
required
string
Allowed values: topup cashback
external_ref
required
string
location_id
required
string | null
created_at
required
string format: date-time

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

Media typeapplication/json
object
load_id
required
string format: uuid
card_id
required
string format: uuid
status
required
string
Allowed values: pending succeeded failed in_doubt
error_code
required

Why the load failed (balance_limit, float_insufficient, provider_unavailable or the issuer’s code) or is in_doubt (provider_timeout). Null otherwise.

string | null
amount_cents
required

The amount requested.

integer
currency
required
string
Allowed values: USD
reason
required
string
Allowed values: topup cashback
external_ref
required
string
location_id
required
string | null
created_at
required
string format: date-time

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)

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": "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

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."
}
}

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).

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": "chain_only",
"message": "This endpoint is for chain accounts and their cards."
}
}

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."
}
}

card_not_active: the card is not issued. external_ref_conflict: the reference was used with another card, amount or reason.

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": "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.

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.