SystemX->Frontu (Standartized Materials)
5min
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
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.
Make the POST method and fill in this information:
JSON
1{
2 "title": "Kilogram",
3 "systemId": "MATERIALTYPE1",
4 "delted":false
5}

IMPORTANT: title is required for this POST method
And then you will get a response:
JSON
1{
2 "version": 1623147256,
3 "title": "Kilogram",
4 "guid": "839f7481-f647-c8bb-7a89-ee4b2c136c33",
5 "created": "2021-06-08T10:14:16+0000",
6 "updated": "2021-06-08T10:14:16+0000",
7 "deleted": false,
8 "systemId": "MATERIALTYPE1"
9}

Then you can create the standardized material, fill in information like:
JSON
1{
2 "title": "Standartized material",
3 "materialType": "MATERIALTYPE1",
4 "serialNumber": 83728347892374892,
5 "price": 99.99,
6 "systemId": "STANDARTIZEDMATERIAL1"
7}

IMPORTANT: title, materialType and the price is required for this POST method
And then you will get a response:
JSON
1{
2 "version": 1623147552,
3 "title": "Standartized material",
4 "serialNumber": "83728347892374892",
5 "hashtag": null,
6 "materialType": {
7 "title": "Kilogram",
8 "guid": "d8ca96bd-b727-ad93-da21-d7786a11f9c9",
9 "systemId": "MATERIALTYPE1",
10 },
11 "guid": "2c92b3c9-ed65-7426-37a7-d5e66dce0a90",
12 "created": "2021-06-08T10:19:12+0000",
13 "updated": "2021-06-08T10:19:12+0000",
14 "deleted": false,
15 "systemId": "STANDARTIZEDMATERIAL1",
16 "customValues": null
17}

Updated 13 Oct 2023


Did this page help you?