Skip to content

API reference

https://api.vauchflow.com

Include your secret API key in every request:

Authorization: Bearer vf_sk_YOUR_KEY
MethodPathDescription
POST/v1/vouchersCreate a single voucher
POST/v1/vouchers/bulkGenerate up to 50,000 codes (async)
GET/v1/vouchers/{code}Look up a voucher
POST/v1/vouchers/{code}/validateCheck eligibility — no redemption consumed
POST/v1/vouchers/{code}/redeemAtomically redeem
POST/v1/vouchers/{code}/rollbackReverse a redemption within 30 minutes
PATCH/v1/vouchers/{code}Update metadata or expiry
GET/v1/vouchersPaginated list with filters
MethodPathDescription
POST/v1/campaignsCreate a campaign with rules
GET/v1/campaignsList campaigns
GET/v1/campaigns/{id}Campaign detail + pool stats
PATCH/v1/campaigns/{id}Update name, end date, budget cap
POST/v1/campaigns/{id}/pausePause or resume
MethodPathDescription
POST/v1/customersRegister a customer reference (no PII required)
GET/v1/customers/{id}/redemptionsFull redemption history
DELETE/v1/customers/{id}GDPR right to erasure
GET/v1/customers/{id}/exportGDPR data portability (JSON or CSV)
MethodPathDescription
GET/v1/analytics/overviewTenant-level summary
GET/v1/analytics/campaigns/{id}Per-campaign metrics + time series
GET/v1/analytics/fraudVelocity anomalies and fraud alerts
GET/v1/reports/redemptionsExport full redemption log as CSV
CodeMeaning
200Success
201Created
202Accepted (async job started)
204No content
400Invalid request
401Authentication failed
404Resource not found
409Already redeemed / duplicate
422Idempotency key mismatch
429Rate limit exceeded — check Retry-After header