GET
/
api
/
withdrawals
/
{id}
Get withdrawal by ID
curl --request GET \
  --url http://localhost:3000/api/withdrawals/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "withdrawalNumber": "<string>",
    "order": "<string>",
    "pane": "<string>",
    "withdrawnBy": "<string>",
    "material": "<string>",
    "quantity": 2,
    "status": "pending",
    "approvedBy": "<string>",
    "withdrawnDimensions": {
      "width": 1,
      "height": 1,
      "thickness": 1
    },
    "notes": "<string>",
    "inventory": "<string>",
    "withdrawnDate": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}
The withdrawal object includes withdrawalNumber (e.g. WDW-0001) when assigned.

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

Withdrawal found

success
boolean
Example:

true

message
string
data
object