Error Code Reference
HTTP Status Codes
| Code | Description |
|---|
| 200 | Success |
| 400 | Bad request parameters |
| 401 | Login or internal secret required |
| 403 | Insufficient permissions |
| 404 | Resource not found |
| 500 | Internal server error |
Common Error Messages
| Message | Description |
|---|
| Product not found | Product does not exist or is inactive |
| Insufficient stock | Not enough available stock |
| Insufficient balance | User balance is not enough |
| Minimum quantity is ... | Quantity is below the minimum order amount |
| Quantity cannot exceed 200 | Quantity is above the maximum order amount |
| Please provide both order number and email | Order lookup requires both order number and email |
Error Response Format
{
"success": false,
"error": "Product not found"
}