Integrate Revifly with your store. Create offers, manage vouchers, and validate redemptions.
All Brand API requests require your API Key and Secret in headers:
X-API-Key: your_brand_api_key
X-API-Secret: your_brand_api_secret
Your API credentials are available on the Dashboard. Keep them secure!
View API Credentialshttps://revifly.com/api/v1/brand/
| Method | Path | Description |
|---|---|---|
| POST | /api/v1/brand/offers | Create offer |
| GET | /api/v1/brand/offers | List offers |
| GET | /api/v1/brand/offers/{id} | Get single offer |
| PATCH | /api/v1/brand/offers/{id} | Update offer |
Create body: title, description, discount_type (percentage or fixed_amount), discount_value, start_date, and either duration_days (30 / 60 / 90 / 180 — recommended, triggers billing) or end_date (legacy). Optional: max_uses, min_purchase_amount, currency, limit_one_per_customer.
On update (PATCH), only title, description, max_uses, and limit_one_per_customer are editable. discount_type, discount_value, and min_purchase_amount are locked after creation.
Your Analytics dashboard shows the full distribution funnel for each offer:
| Stage | What it counts |
|---|---|
| Impressions | Times a publisher fetched your offer detail to show it to a user |
| Clicks | Users who landed on a Revifly-hosted voucher page for your offer |
| Vouchers | Voucher codes successfully generated |
| Redeemed | Vouchers applied at checkout (sales) |
Conversion rates between each stage are shown on the dashboard. Access it via Analytics in your Revifly app menu.
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/brand/vouchers | List vouchers (filter by offer_id, status, code) |
| GET | /api/v1/brand/vouchers/check?code=XXX | Check single voucher status |
| POST | /api/v1/brand/vouchers/validate | Validate for checkout — returns discount amount |
| POST | /api/v1/brand/vouchers/apply | Mark voucher as applied (checkout step) |
| POST | /api/v1/brand/vouchers/confirm | Confirm use after order completion |
| PATCH | /api/v1/brand/vouchers/update | Cancel or revoke a voucher |
Confirm is idempotent — calling it twice with the same order_id returns success. Calling it with a different order_id returns 409.
POST https://revifly.com/api/v1/brand/vouchers/validate
Content-Type: application/json
X-API-Key: your_api_key
X-API-Secret: your_api_secret
{
"voucher_code": "RV-ABC123",
"order_amount": 1000.00,
"currency": "INR"
}