Introduction
Welcome to the Ecom e-commerce platform API documentation. This API allows you to build mobile and web applications that interact with the Ecom platform.Base URL
All API requests should be made to:API Version
The current API version is v2. All endpoints are prefixed with/api/v2.
Request Format
- All requests should be made over HTTPS
- Request body should be in JSON format or form-data
- Set appropriate
Content-Typeheader:application/jsonfor JSON requestsmultipart/form-datafor file uploads
Response Format
All API responses are returned in JSON format with the following structure:Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized - Invalid or missing authentication |
| 404 | Not Found - Resource doesn’t exist |
| 422 | Validation Error |
| 500 | Server Error |
Pagination
Many list endpoints support pagination with the following parameters:Page number
Items per page
Rate Limiting
API requests are rate-limited to prevent abuse. If you exceed the rate limit, you’ll receive a 429 status code.Language Support
The API supports multiple languages. Include the language preference in your requests:Language code (e.g., en, es, fr)
Error Handling
The API uses standard HTTP status codes and returns detailed error messages to help you debug issues.Next Steps
Authentication
Learn how to authenticate with the API
Products
Browse and search products
Cart
Manage shopping cart
Orders
Create and manage orders