657 B
657 B
GET /carrier
Protected. Requires a valid session cookie (credentials: 'include').
List carriers
Lists carriers for the selected company, ordered by sort and name.
Response 200
List of carriers
{
"carriers": [
{
"id": 1,
"name": "…",
"sort": 1,
"hasPackages": true,
"isReverse": true
}
]
}
Errors
| Status | Description |
|---|---|
| 400 | No company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Not authorized — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.