API Reference
Comprehensive documentation for DigiCart's REST and GraphQL APIs. Build powerful integrations and custom applications.
Quick Start
Get started with DigiCart APIs in minutes. Generate your API key and make your first request.
1
Generate API key in your admin dashboard2
Include the key in your request headers3
Start making API callsAuthentication
# Include in all requests
Authorization: Bearer YOUR_API_KEY
Products API
REST
Manage your product catalog
GET
/api/products
List all products
POST
/api/products
Create a new product
GET
/api/products/{id}
Get a specific product
PUT
/api/products/{id}
Update a product
DELETE
/api/products/{id}
Delete a product
Code Examples
Example requests in different programming languages
curl -X GET "https://your-store.com/api/products" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
JavaScript SDK
Official SDK for Node.js and browsers
Python SDK
Official Python library
PHP SDK
Official PHP library
API Explorer
Interactive API testing tool
Rate Limits
API usage limits and guidelines
REST API
1000 req/hour
GraphQL API
500 req/hour
Webhooks
Unlimited
Rate limits are per API key. Contact us for higher limits if needed.
Best Practices
Tips for optimal API usage
- Use pagination for large datasets
- Implement proper error handling
- Cache responses when appropriate
- Use webhooks for real-time updates
- Validate webhook signatures
Start Building with DigiCart APIs
Ready to integrate DigiCart into your applications? Get your API key and start building today.