Voucher API
The Voucher API provides endpoints to create, manage, and track promotional discounts.
Why Choose Voucher API?¶
Transform your promotional strategy with an API built for scale, reliability, and developer productivity. From startup flash sales to enterprise loyalty programs, we power discount experiences that convert.
Smart Targeting
Create sophisticated targeting rules based on customer segments, purchase history, geographic location, and custom attributes.
Real-time Analytics
Track campaign performance, conversion rates, and ROI with detailed analytics. A/B test different discount strategies effortlessly.
Lightning Fast
Sub-50ms response times globally with 99.9% uptime SLA. Built on modern infrastructure with automatic scaling and redundancy.
Enterprise Security
Bank-grade security with SOC 2 compliance, end-to-end encryption, and comprehensive audit logs for all operations.
Global Scale
Multi-currency support, localized validation rules, and timezone-aware campaigns. Deploy promotions across 150+ countries instantly.
Developer Experience
Comprehensive SDKs, interactive API explorer, webhook integrations, and detailed error handling. Build faster, debug easier.
Discount Types¶
Build any promotional scenario with our flexible discount engine:
Percentage Discounts
Classic percentage-based discounts with advanced conditional logic
Fixed Amount Discounts
Dollar-value discounts with currency conversion and regional pricing
BOGO & Tiered Offers
Complex promotional logic for sophisticated marketing campaigns
Get Started in Minutes
Create your first voucher with a simple API call. No complex setup required.
curl -X POST "https://api.voucher.com/v1/vouchers" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"code": "WELCOME20",
"type": "percentage",
"value": 20,
"conditions": {
"min_order_value": 5000,
"max_uses": 1000,
"valid_until": "2024-12-31T23:59:59Z",
"customer_limit": 1
},
"metadata": {
"campaign": "new_customer_welcome",
"source": "landing_page"
}
}'