How it works
Customer's website or app | your customer session vYour backend + order database | partner Bearer token, HTTPS /v1 vZwipe API + background issuance worker | issuer integration vCard issuer
Customer -- deliberate wallet action --> issuer-hosted wallet pageDivide the responsibilities
Section titled “Divide the responsibilities”| Component | Responsibility |
|---|---|
| Your frontend | Customer sign-in, forms, code entry, progress messages, balance display, wallet action. |
| Your backend | Partner credentials, customer authorization, trusted order amount, stable reference, API calls, saved mappings, recovery. |
| Zwipe | Partner permissions, restaurant ownership, idempotency records, background issuance, issuer communication. |
| Issuer | Card creation/loading, email verification service, current balance, available hosted links. |
The Zwipe token identifies your partner account. It is not a customer session and must remain on your server. Your backend must check which customer owns every requested order or card.
One order from start to finish
Section titled “One order from start to finish”- Resolve the signed-in customer and configured restaurant on your server.
- Follow the email verification flow.
- Store the immutable purchase data and
external_refin your database. - Submit the order to Zwipe. A
202response means a background job was accepted. - Save the returned
card_idand check status approximately every two seconds during a bounded foreground wait. - On
issued, retrieve the balance. Onin_doubt, use the recovery procedure. - Resume unfinished work from your backend after the app closes; a
card.*webhook tells your backend when the outcome is known.
HTTP status and card status are different
Section titled “HTTP status and card status are different”200 OK can contain a card whose status is pending, failed, or in_doubt. 202 Accepted does not mean the customer has usable funds. Read the JSON status and error_code, and use the dedicated balance endpoint for a timestamped balance.
Changing external_ref creates a different order. It is not a way to retry a slow request. See idempotency before implementing checkout retries.

