This API creates an inventory in Material Transfer Report (MTR) of Smart Materials.
Required Privilege: API_CREATE_INV_TRANSFER
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://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/ TransferHeaders({key})/Com.Ingr.Smat.V1.MTRInventory/
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 Transfer header Id.
Element |
Description |
Type |
Required |
Notes |
---|---|---|---|---|
Ident |
Name of the ident |
Decimal |
Required |
To view available idents, use: GET https://{host}/Smat/V1/Projects(‘:project’) |
WhId |
Source warehouse ID of the material |
Decimal |
Required |
To view available warehouses, use: GET https://{host}/Smat/V1/Projects(':project') |
LocId |
Source location ID of the material |
Decimal |
Required |
To view available locations, use: GET https://{host}/Smat/V1/Projects(':project') |
BnlId |
Source bin location ID of the material |
Decimal |
Optional |
To view available bin locations, use: GET https://{host}/Smat/V1/Projects(':project') |
SmstId |
Unique ID of the site material status |
Decimal |
Required |
To view available site material status, use: GET https://{host}/Smat/V1/Projects(':project') |
UnitId |
Unique ID of the unit |
Decimal |
Required |
To view available units, use: GET https://{host}/Smat/V1/Projects(':project')/ |
TagNumber |
Tag number of the ident |
String |
Optional |
|
HeatId |
Unique ID of the heat |
Decimal |
Optional |
To view available heats, use: GET https://{host}/Smat/V1/Projects(':project') |
ItrQty |
Item transfer quantity |
Decimal |
Optional |
|
ItrComment |
Transfer comment |
String |
Optional |
|
TargetBnlId |
Target bin location ID |
Decimal |
Optional |
|
TargetWhId |
Target warehouse ID |
Decimal |
Required |
|
TargetLocId |
Target location ID |
Decimal |
Required |
|
TargetSmstId |
Name of the receiving status defined |
Decimal |
Required |
Sample Code
POST http://localhost:53965/SMAT/V1//Projects('AB')/Disciplines('PIPING')/Nls('English')/TransferHeaders(45678)/Com.Ingr.Smat.V1.MTRInventory/
{
"invTransfer":{
"Ident":73354280,
"WhId":5921,
"LocId":10000003877,
"SmstId":5681,
"UnitId":502543,
"TagNumber":"243",
"TargetWhId":5923,
"TargetLocId":10000003877,
"TargetSmstId":5681
}
}
Success Response
Status: 200 OK
{
"@odata.context": " https://{host}/Smat/V1/$metadata#Edm.Int64",
"value": 10000006737
}