Files
dashback/docs/api/routes/shipment/_id/shipping.get.md
2026-10-17 05:10:25 +02:00

47 lines
933 B
Markdown

# `GET /shipment/{id}/shipping`
Protected. Requires a valid session cookie (`credentials: 'include'`).
List packages of a shipment
Lists all packages (shippings) belonging to the specified shipment manifest.
## Path parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `id` | yes | integer | Shipment ID |
## Response `200`
List of packages
```json
{
"shippings": [
{
"id": 1,
"manifestId": 1,
"number": "…",
"trackingCode": "…",
"carrierId": 1,
"carrier": "…",
"type": "…",
"state": "…"
}
]
}
```
## Errors
| Status | Description |
|--------|-------------|
| 400 | Invalid ID or no company selected — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
| 404 | Shipment not found — `{"error":"…"}` |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._