API Reference¶
Welcome to the R Commerce API Reference. Our REST API provides comprehensive access to all e-commerce functionality.
Base URL¶
Authentication¶
All API requests require authentication using an API key passed in the Authorization header:
Content Type¶
All requests should include the Content-Type header:
Response Format¶
All responses are returned in JSON format with a consistent structure:
Pagination¶
List endpoints support pagination using cursor-based pagination:
| Parameter | Type | Description |
|---|---|---|
page |
integer | Page number (default: 1) |
per_page |
integer | Items per page (default: 20, max: 100) |
Rate Limiting¶
API requests are rate limited to ensure service stability:
- Public endpoints: 100 requests/minute
- Authenticated endpoints: 1000 requests/minute
- Admin endpoints: 5000 requests/minute
Rate limit headers are included in all responses:
API Sections¶
- Authentication - API keys and JWT tokens
- Products - Product catalog management
- Orders - Order lifecycle management
- Customers - Customer accounts and addresses
- Cart - Shopping cart operations
- Coupons - Discount codes and promotions
- Payments - Payment processing
- Webhooks - Event notifications
- GraphQL - Alternative query interface
SDKs¶
Official SDKs are available for:
- JavaScript/TypeScript:
@rcommerce/sdk - Python:
rcommerce-python - Rust:
rcommerce-rs - PHP:
rcommerce-php
Support¶
For API support, contact: api-support@rcommerce.app