Overview
For e-commerce platforms not directly supported, Fanfare provides a comprehensive REST API for building custom integrations. This enables:- Product catalog management
- Consumer data synchronization
- Order creation and tracking
- Experience management
API Capabilities
Product Management
Create and manage products programmatically:Consumer Sync
Import consumers from your e-commerce platform:Order Integration
Report orders back to Fanfare:Integration Patterns
Product Sync
- Export products from your platform
- Transform to Fanfare format
- POST to
/api/products - Store the mapping of IDs
Checkout Flow
- Configure checkout URL in experience settings
- Fanfare redirects winners with consumer/product data
- Process payment on your platform
- Callback to Fanfare with order confirmation
Authentication
API requests require authentication:Rate Limits
| Endpoint | Rate Limit |
|---|---|
| Products | 100 req/min |
| Consumers | 100 req/min |
| Orders | 50 req/min |
Best Practices
Idempotency
Use idempotency keys for create operations:Error Handling
Handle common error responses:| Status | Description |
|---|---|
| 400 | Invalid request data |
| 401 | Authentication required |
| 403 | Permission denied |
| 429 | Rate limit exceeded |
| 500 | Server error |
Pagination
List endpoints support cursor pagination:Example Integrations
Node.js
Python
Support
For integration assistance:- Review the API Reference
- Contact [email protected]
- Request integration consulting