Status Values & Error Reference

Data Models

Branch Status Values

  • active: Branch is operational.
  • inactive: Branch is not operational.
  • paused: Branch is temporarily paused.

Sales Register Status Values

  • active: Register is operational.
  • inactive: Register is not in use.
  • maintenance: Register is under maintenance.

Error Responses

All endpoints return consistent error structures:

CodeDescription
400Bad Request - Invalid input data.
401Unauthorized - Missing or invalid JWT token.
403Forbidden - Insufficient permissions for the resource.
404Not Found - Resource doesn't exist.
500Internal Server Error.

Example Error

{
  "message": "Error description"
}