Skip to content

Zwipe sends an event to your webhook URL

POST

Sent when a webhook URL is set on your partner account. Verify Zwipe-Signature before parsing, answer 2xx, then process the event in the background; slow handlers cause redeliveries.

Zwipe-Signature
required
string

t=<unix seconds>,v1=<hex>. v1 is HMAC-SHA256 with your webhook secret over <t>.<raw request body>. Compare in constant time and reject a t more than 5 minutes from your clock.

Example

t=1789043703,v1=5f2b8c0e9a1d4f7b3c6e8a2d0f1b4c7e9a3d5f8b2c4e6a1d7f0b3c5e8a2d4f6b
Media typeapplication/json

Something happened to one of your cards. card.* carries data.card, the card as it was when the event was created, without issuer.wallet_url and issuer.collect_url: read GET /v1/cards/{card_id} for them, so they stay out of webhook logs. load.* carries data.load and transaction.created carries data.transaction (chain accounts only, and not yet for cards brought with POST /v1/cardholders/{external_id}/card/link).

object
id
required

Unique per event. Dedupe on it; a redelivery repeats the same id.

string
type
required

card.issued: the card is active. On cards from POST /v1/cards, a card that was in_doubt and has an issuer.card_id turns issued when a balance read (GET /v1/cards/{card_id}/balance) succeeds; the event follows it. card.failed: the issuer rejected the order or could not be reached; error_code says which, and the same external_ref may be ordered again. card.in_doubt: the outcome is uncertain; when the issuer never answered, it arrives a few minutes after the order. load.succeeded, load.failed, load.in_doubt: a load reached that state; one that was in_doubt sends load.succeeded or load.failed once Zwipe reconciles it. transaction.created: the issuer reported a new settled entry on the card, usually within a couple of minutes; data.transaction matches the entry GET /v1/cards/{card_id}/transactions lists.

string
Allowed values: card.issued card.failed card.in_doubt load.succeeded load.failed load.in_doubt transaction.created
created_at
required
string format: date-time
data
required

Exactly one of these, matching type.

One of:
object
card
required
object
card_id
required

UUID of this Zwipe issuance/load record; on a chain card, of the card itself (its loads are Load records). Use it in status and balance routes; it is not a PAN or the issuer’s card ID.

string format: uuid
status
required

pending until the issuer has answered. in_doubt: the issuer may hold a card (see error_code); do not submit a replacement load with a new reference. A replay with the original reference returns that uncertain record without reissuing.

string
Allowed values: pending issued failed in_doubt
error_code
required

Why the card is failed (the issuer’s code, provider_unavailable, or for a chain card float_insufficient) or in_doubt: provider_timeout (no answer in time, or an error after the order may have been taken), provider_unconfirmed (the issuer took the order but did not confirm the card and its full load) or activation_pending (the card exists but is not active yet). After activation_pending, a successful GET /v1/cards/{card_id}/balance turns a POST /v1/cards card issued; Zwipe confirms a chain card itself. After provider_unconfirmed the card stays in_doubt and may hold less than amount_cents: reconcile with Zwipe; current balance can also include other loads and spending. Null otherwise.

string | null
balance_cents
required

Stored amount in cents, which can initially reflect the requested load rather than a confirmed live balance; on a chain card, the first load only. Use GET /v1/cards/{card_id}/balance and its as_of timestamp for display.

integer
currency
required
string
Allowed values: USD
external_ref
required
string
created_at
required
string format: date-time
issuer
required

What the card issuer returned. Provider-specific and best effort: absent fields mean the issuer did not send them, except in webhook events, which always omit the two links. Treat the links as bearer capabilities and do not log them.

object
card_id

The issuer’s own card ID, not the UUID used in Zwipe routes. Several issuance/load records may share it.

string | null
order_id
integer | null
wallet_url

Hosted page that adds the card to Apple Wallet. Valid for 72 hours after the underlying card’s first issuance; anyone holding it can add the card and see its full number, expiry and CVV. Show it only to the cardholder; never store or log it. A repeat order for an email that already has a card at that restaurant loads that card and returns no link: wallet_url and collect_url are null. On cards from POST /v1/cards there is no link-refresh endpoint; chain cards use POST /v1/cards/{card_id}/wallet-links and always have null links here. Google Wallet is not supported.

string | null
collect_url

Separate issuer-hosted card collection flow, when available. Not a dedicated card-details iframe or wallet-link refresh. Treat it as sensitive access.

string | null
venue
required

Restaurant this card was issued for, and whose issuer account funded it. Equal to the restaurant on your account when the request omitted venue. Never null for a card from POST /v1/cards; null for a chain card, except one brought from a restaurant with POST /v1/cardholders/{external_id}/card/link, which keeps that restaurant.

One of:

A restaurant, by its PizzaBox platform ids.

object
brand_id
required
integer
>= 1
restaurant_id
required
integer
>= 1
cardholder_external_id

Your customer id, on chain cards only.

string | null

Example

{
"id": "evt_0192f7a6b1c84e2f9d3a7b5c1e0f2a4d",
"type": "card.issued",
"created_at": "2026-09-10T12:35:03Z",
"data": {
"card": {
"card_id": "0192f7a4-5c2e-7d3b-9a1f-4e8b2c6d0a11",
"status": "issued",
"error_code": null,
"balance_cents": 2500,
"currency": "USD",
"external_ref": "ph-order-12345",
"created_at": "2026-09-10T12:34:56Z",
"venue": {
"brand_id": 123,
"restaurant_id": 456
},
"issuer": {
"card_id": "7793338",
"order_id": 4242
}
}
}
}

Received. Any other answer, or none within 10 seconds, is retried.