Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Your secret API key as a Bearer token: Authorization: Bearer vxn_sk_.... Keys are created and scoped in the dashboard - see Authentication.

Headers

Idempotency-Key
string
required

Required. Stable opaque string, 8-255 chars. Same key + same body within 24h replays the original response (Idempotent-Replayed: true); same key + different body -> 409 idempotency_key_conflict. See Idempotency.

Required string length: 8 - 255

Path Parameters

id
string
required

Card template identifier. Opaque, server-issued token, e.g. crd_c4zdlocdwajf6wtmnvvkonv4oa. Must reference a coupon card with mechanics.is_reusable=true.

Pattern: ^crd_[A-Za-z0-9]+$

Response

Reissued. Returns how many holders were actually flipped back to usable, and the card's updated reset counters.

Result of POST /v1/cards/{id}/reissue_coupons: how many holders were actually flipped back to usable, plus the card's updated reset counters.

object
string
required
Allowed value: "coupon_reissue_result"
card_id
string
required

The reissued card. Opaque, server-issued token, e.g. crd_c4zdlocdwajf6wtmnvvkonv4oa.

Example:

"crd_sophcrprtvpmmnwxah2lomnkee"

holders_reissued
integer
required

Number of customers whose couponstatus was actually flipped from redeemed back to usable by THIS call. A customer who never redeemed was already usable and is not counted.

Required range: x >= 0
Example:

138

reset_count
integer
required

The card's mechanics.reset_count AFTER this call (same value a subsequent GET /v1/cards/{id} reports). Increments on every call, even when holders_reissued is 0.

Required range: x >= 0
Example:

4

last_reset_at
integer | null
required

Unix timestamp of this reissue (same as the card's mechanics.last_reset_at after this call).

Example:

1754035200