Overview
The Offergrid Provider API lets you automate offer management and order fulfillment by integrating directly with your existing systems.Getting Started
1. Get Your API Key
Generate a Team API Key from your dashboard:- Sign in to offergrid.io
- Navigate to Settings → API Keys
- Click Generate New Key
- Save the key securely
2. Choose Your Integration Approach
Option A: Direct API Calls- Use HTTP requests from your application
- Full control and flexibility
- Best for custom integrations
- Receive real-time notifications
- Event-driven architecture
- Best for order automation
- Poll API periodically
- Simple to implement
- Best for batch processing
Common Integration Patterns
Pattern 1: Automated Offer Sync
Sync your internal product catalog to Offergrid:- Daily: For frequently changing catalogs
- Hourly: For dynamic pricing
- On-demand: When products update in your system
Pattern 2: Real-Time Order Processing
Use webhooks to process orders immediately:Pattern 3: Status Sync from Fulfillment System
Update Offergrid when your internal status changes:Core API Operations
Managing Offers
Create an offer
Create an offer
List all your offers
List all your offers
Update an offer
Update an offer
Delete an offer
Delete an offer
Managing Orders
List orders
List orders
Get order details
Get order details
Update order status
Update order status
Error Handling
Implement robust error handling:Rate Limiting
Be mindful of rate limits:- Burst: 100 requests per minute
- Sustained: 10,000 requests per hour
- Implement exponential backoff
- Cache responses when appropriate
- Batch operations where possible
- Use webhooks instead of polling
Security Best Practices
Store API keys securely
Store API keys securely
Use environment variables or secure key management:
Use HTTPS only
Use HTTPS only
Always use
https:// endpoints, never http://.Validate webhook signatures
Validate webhook signatures
Verify webhook requests actually come from Offergrid:
Implement request timeouts
Implement request timeouts
Don’t let API calls hang indefinitely:
Testing Your Integration
1. Use Draft Offers
Test withstatus: "draft" offers that won’t be visible to resellers: