GET
/
api
/
orders
/
{id}
Get order by ID
curl --request GET \
  --url http://localhost:3000/api/orders/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "orderNumber": "ORD-0001",
    "request": "<string>",
    "priority": 123,
    "customer": "<string>",
    "material": "<string>",
    "quantity": 2,
    "stations": [
      "<string>"
    ],
    "currentStationIndex": 1,
    "stationHistory": [
      {
        "station": "<string>",
        "enteredAt": "2023-11-07T05:31:56Z",
        "exitedAt": "2023-11-07T05:31:56Z",
        "completedBy": "<string>"
      }
    ],
    "stationData": {},
    "paneCount": 0,
    "panesCompleted": 0,
    "progressPercent": 0,
    "stationBreakdown": {},
    "notes": "<string>",
    "claim": "<string>",
    "withdrawal": "<string>",
    "assignedTo": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Resource ID

Response

Order found

success
boolean
Example:

true

message
string
data
object