Skip to content

Core concepts

Identifier Created by Meaning
Your customer ID Your application The person allowed to access this order/card in your app. Never inferred from a client-supplied email alone.
external_ref Your backend Stable purchase reference, unique across your whole partner account, including all restaurants.
Top-level card_id Zwipe UUID for an issuance/load record. Use it in /v1/cards/{card_id} routes.
issuer.card_id Issuer Underlying issuer card identifier; nullable before confirmation. Several Zwipe records can share it.
issuer.order_id Issuer Issuer’s order identifier, when returned. Useful for reconciliation, not a Zwipe URL parameter.
brand_id + restaurant_id Agreed configuration Restaurant pair that selects the program/funding context.

Do not substitute issuer.card_id into the Zwipe card URL. Do not add balances from multiple issuance records that refer to the same issuer card.

All amounts are integer cents in USD: 100 = $1.00, 2500 = $25.00, 100000 = $1,000.00. The issuance request currently accepts 100 through 100000 cents, inclusive.

Calculate and persist cents on your server. Avoid converting user-entered floating-point dollars directly into a financial request. The amount sent to Zwipe should come from your validated order, not an editable browser field. Currency formatting belongs in the display layer.

Field Request constraint
first_name, last_name Required strings, 1–100 characters each.
email Required email string, maximum 254 characters.
phone International form matching ^\+[1-9][0-9]{6,14}$, for example +15551234567.
external_ref 1–128 characters matching ^[A-Za-z0-9._:-]+$.
currency USD.

Use the same persisted email string for verification, submission, and replay. The replay comparison uses exact email equality. Decide any normalization before storing the order; do not change it during a retry.

A single-restaurant partner can use its configured home restaurant by omitting venue. A partner without a home restaurant must send both IDs:

{"venue": {"brand_id": 123, "restaurant_id": 456}}

The venues:register scope allows an unclaimed pair to be registered to your partner on first issuance. It does not create the issuer’s funding configuration or authorize another partner’s restaurant. Arrange the valid pairs and funding configuration with Zwipe first.

Without registration permission, an unavailable pair returns 403 venue_not_registered; with that permission, a pair owned elsewhere returns 409 venue_claimed. These errors deliberately do not provide a restaurant directory.

Treat issuer.card_id, issuer.order_id, issuer.wallet_url, and issuer.collect_url as optional and nullable. A successful issuance does not guarantee every link is present. Wallet links are sensitive, time-limited values, not permanent identifiers. See wallet handoff.