Create Material Transfer Report Inventory - Intergraph Smart Materials - Version 2017 R1 (2.1) - Help - Hexagon

Intergraph Smart Materials Web API Help 2017 R1 (2.1)

Language
English
Product
Intergraph Smart Materials
Subproduct
Web API
Search by Category
Help
Version Smart Materials Web API
2017 R1 (2.1)

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’)
/Disciplines(‘:discipline’)/Nls(‘:language’)
/Idents

WhId

Source warehouse ID of the material

Decimal

Required

To view available warehouses, use:

GET https://{host}/Smat/V1/Projects(':project')
/Disciplines(':discipline')/Nls(':language')
/Warehouses

LocId

Source location ID of the material

Decimal

Required

To view available locations, use:

GET https://{host}/Smat/V1/Projects(':project')
/Disciplines(':discipline')/Nls(':language')
/Locations

BnlId

Source bin location ID of the material

Decimal

Optional

To view available bin locations, use:

GET https://{host}/Smat/V1/Projects(':project')
/Disciplines(':discipline')/Nls(':language')
/BinLocations

SmstId

Unique ID of the site material status

Decimal

Required

To view available site material status, use:

GET https://{host}/Smat/V1/Projects(':project')
/Disciplines(':discipline')/Nls(':language')
/SiteMaterialStatus

UnitId

Unique ID of the unit

Decimal

Required

To view available units, use:

GET https://{host}/Smat/V1/Projects(':project')/
Disciplines(':discipline')/Nls(':language')/
Units

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')
/Disciplines(':discipline')/Nls(':language')
/Heats

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
in screen C.10.06 Site Material Status

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

}