Skip to main content
POST
/
material-requests
Create Material Request
curl --request POST \
  --url https://api.example.com/material-requests \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentId": "<string>",
  "status": "<string>",
  "productionOrderId": "<string>",
  "purchaseOrderId": "<string>",
  "notes": "<string>",
  "lineItems": [
    {}
  ]
}
'
{
  "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>"
    }
  ]
}

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

Body

application/json
documentId
string
required
status
string
required
productionOrderId
string | null
purchaseOrderId
string | null
notes
string | null
lineItems
Lineitems · object[] | null

Response

Successful Response

id
string
required
documentId
string
required
status
string
required
productionOrderId
string | null
purchaseOrderId
string | null
purchaseOrderDocumentId
string | null
notes
string | null
createdAt
string | null
production_order
Production Order · object
purchase_order
Purchase Order · object
lineItems
MaterialRequestLineItem · object[] | null