This API retrieves detailed information of the quantities associated with an ident by using ident ID from a project in Smart Materials.
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: POST
URL Format:
https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/Idents({key})/IdentTotals
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 ID.
Sample Code
POST https://localhost:59387/smat/v1/Projects('RS')/Disciplines('PIPING')/Nls('English')/Idents(10000504671)/IdentTotals
Sample Input:
{
"ItemDetailsInput":
{
"InterestedTotals": ["BOM","Req","Traffic","Shipped","BOMIssue","OpenOSDs","StockReceipt"]
}
}
-
In the request body, you can specify the module names to "InterestedTotals" which you are looking for. Only these interested total quantities are retrieved and others are displayed as null. Valid inputs for InterestedTotals are BOM, Req, Inquiry, Order, Shipped, Traffic, Received, StockReceipt, BOMIssue, DirectIssue, MLDIssue, Reserved, ProvisionalReserved, OpenOSDs, and OnHand.
-
If you don't select any interested total, then the API retrieves all the total quantities.
-
If there is no quantity associated with a total , then the value displayed is 0.
Success Response
Status:200OK
{
"@odata.context": "https://localhost:59387/SMAT/V1/$metadata#Com.Ingr.Smat.Core.V1.ItemTotalsInfo",
"Ident": 10000504671,
"UnitId": 500127,
"BOMTotal": 300,
"ReqTotal": 100,
"InquiryTotal": null,
"OrderTotal": null,
"ShippedTotal": 60,
"TrafficActivityTotal": 10,
"ReceivedTotal": null,
"StockReceiptTotal": 72,
"BOMIssueTotal": 8,
"DirectIssueTotal": null,
"MLDIssueTotal": null,
"ReservedTotal": null,
"ProvisionalReservedTotal": null,
"NumberOfOpenOSDs": 2,
"OnHandTotal": null
}
Element |
Description |
Type |
---|---|---|
Ident |
Unique ID of the ident |
Integer |
BOMTotal |
Total sum of quantity of this ident on the BOM |
Integer |
ReqTotal |
Total sum of quantities of this ident on all the requisition line items that are released to the procurement.
|
Integer |
InquiryTotal |
Total sum of quantity of this ident on inquiries. |
Integer |
OrderTotal |
Total sum of quantity of this ident on approved |
Integer |
ShippedTotal |
Total sum of quantity of this ident on item shipments. |
Integer |
TrafficActivityTotal |
Total sum of quantity of this ident on Traffic i.e. |
Integer |
ReceivedTotal |
Total sum of received quantities of this ident.
|
Integer |
StockReceiptTotal |
Total sum of stock receipt for the ident. |
Integer |
BOMIssueTotal |
Total sum of BOM issue for this ident.
|
Integer |
DirectIssueTotal |
Total sum of direct issue for this ident.
|
Integer |
MLDIssueTotal |
Total sum of quantity of this ident issued with a MIR with issue type Miss, Lost, or Damaged |
Integer |
ReservedTotal |
Total sum of quantity of this ident already reserved on the BOM.
|
Integer |
ProvisionalReservedTotal |
Total sum of provisional reserved quantity for this ident. It covers all the reservations done manually. |
Integer |
NumberOfOpenOSDs |
Represents the number of over, short, and damaged reports (OS&Ds) for the selected ident |
Integer |
OnhandTotal |
Inventory On Hand Quantity (Recv Qty - Resv Qty - Issue Qty) |
Integer |
UnitId |
Refers to the quantity unit ID. The quantities will be converted to this unit shown based on the conversion factor defined in A.10.13 Unit to Unit. |
Integer |