API Overview
Dokumentasi lengkap REST API MStore Backend untuk integrasi dengan client applications.🌐 Base URLs
🔐 Authentication
MStore API menggunakan JWT Bearer Token untuk authentication.Get Access Token
Use Token in Requests
📋 API Categories
Authentication
Login, register, refresh token, logout
Products
Product management, variants, pricing
Transactions
POS transactions, payments, refunds
Inventory
Stock management, warehouse operations
Customers
Customer management, loyalty points
Reports
Sales reports, analytics, exports
🎯 API Versioning
MStore API menggunakan URL versioning:v1Latest Version:
v1
📊 Response Format
Success Response
Error Response
🔢 HTTP Status Codes
| Status Code | Description |
|---|---|
200 OK | Request successful |
201 Created | Resource created successfully |
400 Bad Request | Invalid request parameters |
401 Unauthorized | Missing or invalid authentication |
403 Forbidden | Insufficient permissions |
404 Not Found | Resource not found |
422 Unprocessable Entity | Validation error |
429 Too Many Requests | Rate limit exceeded |
500 Internal Server Error | Server error |
🚦 Rate Limiting
API rate limits per endpoint:| Tier | Requests per Minute | Requests per Hour |
|---|---|---|
| Free | 60 | 1,000 |
| Basic | 300 | 10,000 |
| Premium | 1,000 | 50,000 |
| Enterprise | Custom | Custom |
📄 Pagination
List endpoints support pagination:🔍 Filtering & Sorting
Filtering
Sorting
- Prefix
-untuk descending - Comma-separated untuk multiple fields
🌍 Multi-Tenant
Semua API requests harus include Merchant ID di header:🛠️ SDKs & Tools
Postman Collection
Import Postman collection untuk testing
OpenAPI Spec
Download OpenAPI 3.0 specification
Go SDK
Official Go SDK documentation
Flutter SDK
Official Flutter SDK documentation
📞 Support
Butuh bantuan dengan API?- Documentation: docs.mstore.com
- Email: [email protected]
- Discord: Join our community
🔄 Changelog
Track API changes dan updates:API Changelog
View all API changes and updates