Add Inventory Issuing details - 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 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
Ident, WhId, LocId, and
UnitId are null.

Decimal

Optional

To view available inventory items, use:

GET https://{host}/Smat/V1/Projects
(‘:project’)
/Disciplines(‘:discipline’)/
Nls(‘:language’)
/InvItems

LpId

Unique ID of the list position and required for
MIR by Reservation.

Decimal

Optional

To view available list positions, use:

GET https://{host}/Smat/V1/Projects
(‘:project’)
/Disciplines(‘:discipline’)/
Nls(‘:language’)
/ListPositions

IvprId

Unique ID of the inventory position reservation
and required for MIR by Reservation.

Decimal

Optional

To view available inventory
position
reservations, use:

GET https://{host}/Smat/V1/Projects
(‘:project’)
/Disciplines(‘:discipline’)/
Nls
(‘:language’)
/InvPosReservations

IssueQty

Issued Quantity

Decimal

Optional

IssueDate

Date and time of the material issue

Date Time Offset

Optional

In the absence of IssueDate,
application takes
the current date
in format YYYY-MM-DD.

Ident

Name of the ident

Decimal

Optional

To view available
idents, use:

GET https://{host}/Smat/V1/Projects
(‘:project’)
/Disciplines(‘:discipline’)/
Nls(‘:language’)
/Idents

WhId

Unique ID of the warehouse

Decimal

Optional

To view available warehouses,
use:

GET

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

LocId

Unique ID of the location

Decimal

Optional

To view available locations, use:

GET

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

SmstId

Unique ID of the site material status

Decimal

Optional

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

Optional

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 ident heat

Decimal

Optional

To view available
heats, use:

GET

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

SteelPlateId

Unique ID of the steel plate

Decimal

Optional

To view available steel plates, use:

GET

https://{host}/Smat/V1/Projects(
‘:project’)
/Disciplines(‘:discipline’)/
Nls(‘:language’)
/SteelPlates

IdentDeviation

Ident deviation for the selected item

String

Optional

SasId

Unique ID of the site attribute sets

Decimal

Optional

To view available
site attribute sets,
use:

GET

https://{host}/Smat/V1/Projects(‘:project’)
/Disciplines(‘:discipline’)/
Nls(‘:language’)
/SiteAttrSets

SiteStatInd

Allowed values are Y and N.

  • If value Y is passed, only those statuses that
    are marked as
    Use on Site on B.10.08
    are considered.

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

}