Materials

API Methods ››
Parent Previous Next

Get material entries by filter

GET ./api/materials?[MaterialFilter]

       MaterialItemsFilter parameters:

MaterialId (optional)

SupplierId (optional)

UserId (optional)

ApproverUserId (optional)

ProjectId (optional)

DatesInUtc

EarliestMaterialDate (optional)

LatestMaterialDate (optional)

IncludeBooked (default = false)

IncludeUnsubmitted (default = true)

IncludeSubmitted (default = true)

IncludeApproved (default = true)

IncludeRejected (default = false)

IncludeInvoiced (default = true)

IsOrderRequired (optional)

HasPurchaseOrder (optional)

PurchaseOrderId (optional)

DestinationCurrencyId (optional)

Page (optional)

PageSize (optional)


Get material entry by ID

GET ./api/materials/{id}


Count material entries

GET ./api/materials/count?[MaterialFilter]


Add material entry

POST ./api/materials (new material entity in HTTP body)

(You can GET an example object to see what the POSTed object should look like.)


Update material entry

PUT ./api/materials/{id} (material entity in HTTP body)

(You can GET an example object to see what the POSTed object should look like.)


Delete material entry

DELETE ./api/materials/{id}


Submit material entry

POST ./api/materials/{id}/Submit


Reset material entry to unsubmitted

POST ./api/materials/{id}/Unsubmit


Reject material entry

POST ./api/materials/{id}/Reject


Approve material entry

POST ./api/materials/{id}/Approve