π¨Error Responses
π Error Response Structure
{
"success": false,
"message": "Human-readable error description",
"data": {}
}π·οΈ Error Code Categories
HTTP Status Codes
Status Code
Category
Description
β Common Error Scenarios
1. Missing Required Fields (400)
2. Field Length Exceeded (400)
3. Tenant Not Found (404)
4. Resource Not Found (404)
5. Storage/Delete Failure (500)
6. Internal Server Error (500)
6. Invalid Request Format (400)
β
How Request Validation Works
What We Check
When Validation Fails
Best Practice
π Validation Error Decoder
Understanding Error Field Paths
Error Path
What It Means
Common Validation Errors & Fixes
Error Message
What It Means
How to Fix
Field Requirements by Endpoint
Products API
Customers API
Orders API
Quick Fixes Checklist
π‘ Best Practices for Error Handling
Client-Side Implementation
Validation Before Submission
β
Pre-Flight Validation
Customer Validation Script
Order Validation Script
1. Check Request Headers
2. Validate JSON Structure
3. Enable Detailed Logging
4. Common Pitfalls
Issue
Solution
π When to Contact Support
π Related Resources
Last updated