Skip to main content
POST
Create Material Request

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Org-Id
string | null

Body

application/json
documentId
string
required
status
string
required
productionOrderId
string | null
purchaseOrderId
string | null
urgency
string | null
notes
string | null
bomId
string | null
bomDocumentId
string | null
wastagePercent
number | null
autoGenerated
boolean | null
lineItems
Lineitems · object[] | null
submittedById
string | null
submittedByName
string | null
approvedById
string | null
approvedByName
string | null
rejectedById
string | null
rejectedByName
string | null
rejectionReason
string | null

Response

Successful Response

id
string
required
documentId
string
required
status
string
required
urgency
string | null
productionOrderId
string | null
productionOrderDocumentId
string | null
salesOrderId
string | null
salesOrderDocumentId
string | null
purchaseOrderId
string | null
purchaseOrderDocumentId
string | null
notes
string | null
createdAt
string | null
submittedAt
string | null
approvedAt
string | null
rejectedAt
string | null
submittedById
string | null
submittedByName
string | null
approvedById
string | null
approvedByName
string | null
rejectedById
string | null
rejectedByName
string | null
rejectionReason
string | null
bomId
string | null
bomDocumentId
string | null
wastagePercent
number | null
autoGenerated
boolean | null
lineItemsCount
integer | null
totalEstimatedAmount
number | null
production_order
Production Order · object | null
purchase_order
Purchase Order · object | null
lineItems
MaterialRequestLineItem · object[] | null
approvalHistory
MaterialRequestApprovalHistory · object[] | null
linkedPurchaseOrders
MaterialRequestLinkedPurchaseOrder · object[] | null