The API returns standard HTTP codes and descriptive error messages:Common HTTP Codes#
| Code | Meaning | Recommended Action |
|---|
200 | Success | Process response normally |
201 | Created | Order created successfully |
400 | Bad Request | Verify submitted data |
401 | Unauthorized | Verify JWT token |
404 | Not Found | Verify resource ID |
409 | Conflict | Resource already exists (e.g., duplicate order) |
500 | Internal Error | Contact support |
Error Example#
{
"statusCode": 400,
"message": "Invalid CNPJ. Please check and try again.",
"error": "Bad Request"
}
Modified at 2026-03-13 16:43:36