SystemX->Frontu (Standartized Materials)
Standartized Materials
Endpoints to use for the Standartized materials
For the creation of the standardized material you need to use this API endpoint: https://developers.frontu.com/create-update-standartizedmaterial
In the standardized material you need to use material type guid, so you can create it in this endpoint: https://developers.frontu.com/create-update-materialtype
Real-world data mapping examples of most common cases
First of all, as I mentioned you need to get a material type guid or create a new one.
So for the get, you just use this endpoint https://developers.frontu.com/get-all-materialtypesand you will get all possible material types data.
If you want to create a new one, you need to use this endpoint: https://developers.frontu.com/create-update-materialtype
Make the POST method and fill in this information:
{
"title": "Kilogram",
"systemId": "MATERIALTYPE1",
"delted":false
}IMPORTANT: title is required for this POST method
And then you will get a response:
{
"version": 1623147256,
"title": "Kilogram",
"guid": "839f7481-f647-c8bb-7a89-ee4b2c136c33",
"created": "2021-06-08T10:14:16+0000",
"updated": "2021-06-08T10:14:16+0000",
"deleted": false,
"systemId": "MATERIALTYPE1"
}Then you can create the standardized material, fill in information like:
{
"title": "Standartized material",
"materialType": "MATERIALTYPE1",
"serialNumber": 83728347892374892,
"price": 99.99,
"systemId": "STANDARTIZEDMATERIAL1"
}IMPORTANT: title, materialType and the price is required for this POST method
And then you will get a response:
{
"version": 1623147552,
"title": "Standartized material",
"serialNumber": "83728347892374892",
"hashtag": null,
"materialType": {
"title": "Kilogram",
"guid": "d8ca96bd-b727-ad93-da21-d7786a11f9c9",
"systemId": "MATERIALTYPE1",
},
"guid": "2c92b3c9-ed65-7426-37a7-d5e66dce0a90",
"created": "2021-06-08T10:19:12+0000",
"updated": "2021-06-08T10:19:12+0000",
"deleted": false,
"systemId": "STANDARTIZEDMATERIAL1",
"customValues": null
}