Card lifecycle
POST /v1/cards returns 202 and queues issuance. Retrieve GET /v1/cards/{card_id} to learn the result. The HTTP status of the initial request is not the final issuance outcome.
| Status | Meaning | Customer UI and next action |
|---|---|---|
pending |
Queued or still being processed. | “Preparing your card.” Poll about every two seconds during a bounded wait. |
issued |
An active card was confirmed, possibly through a successful balance read. | Display the card and fetch a dated balance. |
failed |
The attempt was classified as rejected or the provider was unreachable. | Explain that the order needs attention. Review error_code before retrying the same reference. |
in_doubt |
An order may have been accepted, a load may be partial, or activation is incomplete. | “We’re confirming your card.” Preserve the order and recover as below. |
Polling and timing
Section titled “Polling and timing”Issuance often takes seconds, but the issuer call allows about 90 seconds and queue delay is additional. A 30-second UI wait is not a business deadline. End the spinner gracefully, keep the saved card_id, and resume status checks later or in your background worker.
The service distinguishes jobs that never started from issuer calls with unknown outcomes. An identical replay can requeue an old unclaimed job; a started operation whose response is unknown becomes in_doubt. Follow the exposed status rather than declaring failure based only on elapsed time.
Recover an uncertain order
Section titled “Recover an uncertain order”Check issuer.card_id, which is different from the top-level Zwipe UUID:
- Present: call
GET /v1/cards/{card_id}/balance. Afteractivation_pending, a successful read marks the recordissued; retrieve the card again to update its status. Afterprovider_unconfirmedthe card staysin_doubt: contact Zwipe to reconcile the load. - Absent: the balance endpoint returns
409 issuance_in_doubt. Contact your Zwipe integration contact with the order reference and card ID. There is no public reconciliation operation. - Read fails: retain the uncertain state. Retry a read later with bounded backoff; do not submit a new load or payment.
Common card error_code values are provider_timeout, provider_unconfirmed, and activation_pending. A failed card may carry issuer-specific codes. These card fields are separate from the HTTP error envelope.
provider_unconfirmed may indicate a partial load. Keep the original amount and reconcile with Zwipe. Current balance can also reflect later spending or other loads, so a difference alone is not enough to trigger an automatic charge or refund.
Which balance to display
Section titled “Which balance to display”The card response’s balance_cents is stored and can initially reflect the requested load. It has no freshness timestamp. Use /balance, which returns as_of, for the customer’s balance screen.
Freeze, unfreeze, close, replace, cancel, and refund are not public API operations today. Arrange exceptional handling with Zwipe instead of showing an action your integration cannot complete.

