API Documentation

Integrate DrivenCart with your applications using our REST API

What Can You Do with the API?

The DrivenCart API allows you to programmatically interact with your deals, affiliates, and customer data. Perfect for:

  • Automating deal creation and updates
  • Fetching sales data for reporting and analytics
  • Managing affiliate relationships programmatically
  • Integrating with your own systems and workflows
  • Building custom dashboards and tools
  • Syncing data with third-party platforms

Getting Started

Step 1: Get Your API Key

  1. Log in to your DrivenCart dashboard
  2. Navigate to Dashboard → API Docs
  3. Your unique API key will be displayed at the top
  4. Copy the API key and store it securely

Step 2: Authentication

Include your API key in the request header:

Authorization: Bearer YOUR_API_KEY

Step 3: Make API Calls

Example: Fetch your deals list

curl -X GET https://drivencart.com/api/deals \
  -H "Authorization: Bearer YOUR_API_KEY"

Available API Endpoints

Navigate to Dashboard → API Docs to view the complete list of available endpoints with:

  • Detailed endpoint descriptions
  • Request/response examples
  • Query parameters and filters
  • Error codes and handling
  • Rate limits and best practices

Common Endpoints Include:

  • GET /api/deals - List all your deals
  • POST /api/deals - Create a new deal
  • GET /api/purchases - Fetch purchase history
  • GET /api/affiliate/stats - View affiliate statistics

Response Format

All API responses are returned in JSON format:

{
  "success": true,
  "data": {
    // Response data here
  },
  "error": null
}

Error responses include a descriptive message:

{
  "success": false,
  "data": null,
  "error": "Invalid API key"
}

Rate Limits

To ensure fair usage and system stability:

  • Standard users: 100 requests per minute
  • Society11 Premier members: 200 requests per minute
  • If you exceed the limit, you'll receive a 429 Too Many Requests error
  • Implement exponential backoff when rate limited

Security Best Practices

  • Never expose your API key in client-side code or public repositories
  • Regenerate your API key immediately if it's compromised
  • Use HTTPS for all API requests
  • Store API keys in environment variables, not in your codebase
  • Implement proper error handling in your integration
  • Monitor your API usage regularly in the dashboard