This API retrieves all the purchase order line items of an ident, from a project in Smart Materials.
Only approved purchase order line items are retrieved.
Required Privilege: API_ITEM_DETAILS
Headers
Header Name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/JSON |
Body
HTTP Method: GET
URL Format:
https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/Idents({ident})/OrderTotalDetails
Specify values for the project, discipline, language, and key parameter in the URL. The project, discipline, and language, together define the project environment. The key parameter defines the ident.
Sample Code
Get http://localhost:57464/smat/v1/Projects('RS')/Disciplines('PIPING')/Nls('English')/Idents(11328918)/OrderTotalDetails
Success Response
Status: 200OK
{
"@odata.context": "http://in-smatapi.ingrnet.com/current/SMAT/V1/$metadata#Collection(Com.Ingr.Smat.V1.OrderLineItem)",
"value": [
{
"PoliId": 5840,
"ProjId": "DEMO",
"PohId": 5540,
"LineItemPosition": 1,
"LineItemSubPosition": 1,
"DpId": 5020,
"Ident": 11328918,
"PoliQty": 100,
"QuantityUnit": 5297,
"RevisedPromiseDate": null
}
]
}
Element |
Description |
Type |
---|---|---|
PoliId |
Unique ID of the purchase order line items |
Integer |
ProjId |
Unique ID of the project and retrieved line items belong to this project |
String |
PohId |
Unique ID of the purchase order header and |
Decimal |
LineItemPosition |
Order line item number |
Integer |
LineItemSubPosition |
Order sub line item number |
Integer |
DpId |
Unique ID of the discipline and retrieved order line items belong to this discipline |
Integer |
Ident |
Ident number |
Integer |
PoliQty |
Quantity of the line item |
Decimal |
QuantityUnit |
Unit of the order line item quantity |
Integer |
RevisedPromiseDate |
Revised original promise date |
Date Time Offset |