Skip to main content
GET
/
material-requests
List Material Requests
curl --request GET \
  --url https://api.example.com/material-requests
{
  "data": [
    {
      "id": "<string>",
      "documentId": "<string>",
      "status": "<string>",
      "productionOrderId": "<string>",
      "purchaseOrderId": "<string>",
      "purchaseOrderDocumentId": "<string>",
      "notes": "<string>",
      "createdAt": "<string>",
      "production_order": {},
      "purchase_order": {},
      "lineItems": [
        {
          "id": "<string>",
          "materialRequestId": "<string>",
          "requiredQty": 123,
          "warehouseAvailableQty": 123,
          "qtyToPurchase": 123,
          "materialId": "<string>",
          "materialName": "<string>",
          "supplierId": "<string>",
          "uom": "<string>",
          "unitPrice": 123,
          "estimatedAmount": 123,
          "linkedPoLineId": "<string>",
          "status": "<string>"
        }
      ]
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "total": 123,
    "totalPages": 123,
    "hasNext": true,
    "hasPrev": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.vinmake.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-Org-Id
string | null

Query Parameters

page
integer
default:1
Required range: x >= 1
limit
integer
default:10
Required range: 1 <= x <= 100
status
string | null
search
string | null
sort
string
default:-created_at

Response

Successful Response

data
MaterialRequestResponse · object[]
required
pagination
PaginationInfo · object
required