API Documentation
Integrate SmartSell with your existing systems using our comprehensive RESTful API
Getting Started
Learn how to authenticate and make your first API request
Authentication
SmartSell API uses API key authentication. Include your API key in the Authorization header of all requests.
Note: Keep your API key secure and never expose it in client-side code.
Base URL
All API requests should be made to the following base URL:
https://api.smartsell.africa/v1/
Response Format
All responses are returned in JSON format with the following structure:
API Endpoints
Comprehensive list of available endpoints organized by resource type
Businesses
Method | Endpoint | Description |
---|---|---|
GET | /businesses | List all businesses |
POST | /businesses | Create a new business |
GET | /businesses/{id} | Get business details |
PUT | /businesses/{id} | Update business information |
Products
Method | Endpoint | Description |
---|---|---|
GET | /businesses/{business_id}/products | List all products |
POST | /businesses/{business_id}/products | Create a new product |
GET | /products/{id} | Get product details |
PUT | /products/{id} | Update product information |
DELETE | /products/{id} | Delete a product |
Sales
Method | Endpoint | Description |
---|---|---|
GET | /businesses/{business_id}/sales | List all sales transactions |
POST | /businesses/{business_id}/sales | Create a new sale |
GET | /sales/{id} | Get sale details |
GET | /sales/{id}/receipt | Get sale receipt |
Code Examples
Real-world examples to help you integrate SmartSell API quickly
Create a New Product
Create a New Product
};
Create a New Product
Create a New Product
Error Codes
Understanding API error responses and how to handle them
Code | Status | Description |
---|---|---|
200 | OK | Request successful |
201 | Created | Resource created successfully |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | Insufficient permissions |
404 | Not Found | Resource not found |
429 | Rate Limited | Too many requests |
500 | Server Error | Internal server error |
Need API Support?
Our developer support team is here to help you integrate SmartSell API successfully.