This API retrieves the Material Receiving Reports (MRR) of a project from Smart Materials. You can either retrieve a single report using MRR Id or all the Material Receiving Reports of a project.
Required Privilege: API_READONLY
Headers
Header Name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/JSON |
Body
URL Format: GET https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/MaterialRecvRpts({key})
Specify values for the 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 Material Receiving Report Id (MrrId).
To retrieve all the Material Receiving Reports of a project, use the following URL:
GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/MaterialRecvRpts
Sample Code
GET https://{host}/Smat/V1/Projects(‘RS’)/Disciplines(‘PIPING’)/Nls(‘English’)/MaterialRecvRpts(5141)
Success Response
Status: 200 OK
Content:
{
"@odata.context": "https://localhost:59387/SMAT/V1/$metadata#Projects('RS')/Disciplines('PIPING')/Nls('English')/MaterialRecvRpts/$entity",
"MrrId": 10000095829,
"ProjId": "RS",
"MrrNumber": "KV_MRR_14",
"RevisionId": 0,
"DpId": 5020,
"MrrCreateDate": "2019-11-05T00:00:00+05:30",
"RecvType": "V",
"WhId": 10000010990,
"LocId": 10000010567,
"SmstId": 5701,
"MtrId": 10000025616,
"SgId": null,
"PohId": null,
"PostedDate": null,
"MatlRecvDate": "2019-10-25T00:00:00+05:30",
"BnlId": null
}
Element |
Description |
Type |
---|---|---|
MrrId |
Unique ID of the Material Receiving Report |
Integer |
ProjId |
Unique ID of the Project. Retrieved MRR belongs to this Project. |
String |
MrrNumber |
Name of the MRR |
String |
RevisionId |
Unique ID of the current MRR revision. Default value is 0. |
Integer |
DpId |
Unique ID of the Discipline. Retrieved MRR belongs to this Discipline. |
Integer |
MrrCreateDate |
Date and time when the MRR is created |
Date Time Offset |
RecvType |
Type of receiving |
String |
WhId |
Unique ID of the warehouse |
Integer |
LocId |
Unique ID of the location |
Integer |
SmstId |
Unique ID of the site material status |
Integer |
MtrId |
Unique ID of the material transfer report |
Integer |
SgId |
Unique ID of the shipment group |
Integer |
PohId |
Unique ID of the purchase order header |
Integer |
PostedDate |
Date and time when the MRR is posted to the inventory |
Date Time Offset |
MatlRecvDate |
Date and time when the material is received |
Date Time Offset |
BnlId |
Unique ID of the bin location |
Integer |