GET
/
api
/
panes
/
{id}
Get pane by ID or pane number
curl --request GET \
  --url http://localhost:3000/api/panes/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "paneNumber": "PNE-0001",
    "qrCode": "STDPLUS:PNE-0001",
    "request": "<string>",
    "order": "<string>",
    "material": "<string>",
    "inventory": "<string>",
    "currentStation": "<string>",
    "currentStatus": "pending",
    "routing": [
      "<string>"
    ],
    "customRouting": false,
    "dimensions": {
      "width": 1,
      "height": 1,
      "thickness": 1
    },
    "jobType": "<string>",
    "rawGlass": {
      "glassType": "<string>",
      "color": "<string>",
      "thickness": 123,
      "sheetsPerPane": 1
    },
    "glassType": "<string>",
    "glassTypeLabel": "<string>",
    "cornerSpec": "<string>",
    "dimensionTolerance": "<string>",
    "holes": [],
    "notches": [],
    "processes": [
      "<string>"
    ],
    "edgeTasks": [
      {
        "side": "<string>",
        "edgeProfile": "<string>",
        "machineType": "<string>",
        "status": "pending"
      }
    ],
    "withdrawal": "<string>",
    "remakeOf": "<string>",
    "mergedInto": "<string>",
    "laminateMergedAt": "2023-11-07T05:31:56Z",
    "laminateRole": "single",
    "parentPane": "<string>",
    "childPanes": [
      "<string>"
    ],
    "sheetLabel": "<string>",
    "laminateStation": "<string>",
    "startedAt": "2023-11-07T05:31:56Z",
    "completedAt": "2023-11-07T05:31:56Z",
    "deliveredAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Pane number in the path

The {id} parameter can be a MongoDB ObjectId or a pane number (e.g. PNE-0001). Pane numbers are resolved case-insensitively (pne-0001 matches PNE-0001), consistent with QR parsing that strips the STDPLUS: prefix.

mergedInto shape

After a laminate merge, retired panes reference the survivor via mergedInto. On GET, that field may be returned either as an ObjectId string or as a small populated object (e.g. { _id, paneNumber, currentStatus }) depending on populate settings — clients should read mergedInto._id when mergedInto is an object.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Pane ObjectId or pane number (e.g. PNE-0001)

Response

Pane found

success
boolean
Example:

true

message
string
data
object