This API adds inventory items to the specified Material Issue Report (MIR) of Smart Materials.
Required Privilege: API_CREATE_INV_ISSUES
Headers
Header Name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/JSON |
Body
URL Format: POST https://(loacalhost)/smat/Project/Projects(':project')/Disciplines(':discipline')/Nls(':language')/IssuingHeaders({key})/Com.Ingr.Smat.V1.MIRInventory/
Specify values for project, discipline, language, and key parameter in the URL. The project, discipline, and language together, define the project environment and the key parameter defines the Issuing header Id.
Element |
Description |
Type |
Required |
Notes |
---|---|---|---|---|
IviId |
Unique ID of the Inventory item and is required when |
Decimal |
Optional |
To view available inventory items, use: GET https://{host}/Smat/V1/Projects |
LpId |
Unique ID of the list position and required for |
Decimal |
Optional |
To view available list positions, use: GET https://{host}/Smat/V1/Projects |
IvprId |
Unique ID of the inventory position reservation |
Decimal |
Optional |
To view available inventory GET https://{host}/Smat/V1/Projects |
IssueQty |
Issued Quantity |
Decimal |
Optional |
|
IssueDate |
Date and time of the material issue |
Date Time Offset |
Optional |
In the absence of IssueDate, |
Ident |
Name of the ident |
Decimal |
Optional |
To view available GET https://{host}/Smat/V1/Projects |
WhId |
Unique ID of the warehouse |
Decimal |
Optional |
To view available warehouses, GET https://{host}/Smat/V1/Projects(‘:project’) |
LocId |
Unique ID of the location |
Decimal |
Optional |
To view available locations, use: GET https://{host}/Smat/V1/Projects(':project') |
SmstId |
Unique ID of the site material status |
Decimal |
Optional |
To view available GET https://{host}/Smat/V1/Projects(':project') |
UnitId |
Unique ID of the unit |
Decimal |
Optional |
To view available GET https://{host}/Smat/V1/Projects |
TagNumber |
Tag number of the ident |
String |
Optional |
|
HeatId |
Unique ID of the ident heat |
Decimal |
Optional |
To view available GET https://{host}/Smat/V1/Projects( |
SteelPlateId |
Unique ID of the steel plate |
Decimal |
Optional |
To view available steel plates, use: GET https://{host}/Smat/V1/Projects( |
IdentDeviation |
Ident deviation for the selected item |
String |
Optional |
|
SasId |
Unique ID of the site attribute sets |
Decimal |
Optional |
To view available GET https://{host}/Smat/V1/Projects(‘:project’) |
SiteStatInd |
Allowed values are Y and N.
|
String |
Optional |
Sample Code
POST https://(loacalhost)/smat/Projects('AB')/Disciplines('PIPING')/Nls('English')/IssuingHeaders (7895)/Com.Ingr.Smat.V1.MIRInventory/
{
"invIssue":{
"Ident":73354280,
"WhId":5921,
"LocId":6783,
"SmstId":5681,
"UnitId":502543,
"IssueQty":1,
"TagNumber":"TAG001",
"HeatId":5805
}
Success Response
Status: 200 OK
{
"@odata.context": "https://{host}/Smat/V1/$metadata#Edm.Int64",
"value": 10000011208
}