OrderLineItems - Intergraph Smart Materials - Version 2017 (2.0) - Help - Hexagon PPM

Intergraph Smart Materials Web API Help 2017 (2.0)

PPMProduct
Intergraph Smart Materials
PPMCategory_custom
Help

Name and Description

OrderLineItems - All order line items of a project are returned

URL Format

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

Specify values for ProjId, DisciplineCode and NlsDescription parameters in the URL.

Use the following read-only APIs to get the available values for each parameter.

/Projects,

/projects(':project')/Disciplines,

/projects(':project')/Disciplines(':discipline')/Nls

URL Parameter

:project, :discipline, :language

Data Parameter

None

Method

GET

Required Privilege

API_READONLY

Success Response

Response Metadata:

OrderLineItems is a collection of type WebApi.SPMaterials.Service.Models.EDM.MVW_ORDER_LINE_ITEMS.

MVW_ORDER_LINE_ITEMS Metadata:

<EntityType Name="OrderLineItem">

<Key>

<PropertyRef Name="PoliId"/>

</Key>

<Property Name="PoliId" Type="Edm.Int64" Nullable="false"/>

<Property Name="ProjId" Type="Edm.String"/>

<Property Name="PohId" Type="Edm.Decimal"/>

<Property Name="PoliPos" Type="Edm.Int32"/>

<Property Name="PoliSubPos" Type="Edm.Int16"/>

<Property Name="DpId" Type="Edm.Int64"/>

<Property Name="Ident" Type="Edm.Int64"/>

<Property Name="PoliQty" Type="Edm.Decimal"/>

</EntityType>

HTTP status code sent back to client on the API execution success: 
Code: 200 OK

Content:

{

"@odata.context": "https://{host}/Smat/V1/$metadata#Projects('{project}')/Disciplines('{discipline}')/Nls('{nls}')/OrderLineItems",

"value": [

{

PoliId: 134103,

ProjId: "CD",

PohId: 30622,

PoliPos: 1,

PoliSubPos: 1,

DpId: 5020,

Ident: 47607213,

PoliQty: 11

},

{

PoliId: 134123,

ProjId: "CD",

PohId: 30642,

PoliPos: 1,

PoliSubPos: 1,

DpId: 5020,

Ident: 47607213,

PoliQty: 10

}

]

}

Error Response

This API may fail with the following error messages: 
Error Code: 401 Unauthorized 
Content:

{

"error": {

"code": "",

"message": "Authorization has been denied for this request." }

}

Notes