You are on page 1of 5

- Important! Please do not modify "Fabricator Co.

" -

Create A Product
API Doc: https://api-
prod.fabricator.metaltrail.com/api/#/products/CreateProductController_createProduct

Endpoint: https://api-staging.fabricator.metaltrail.com/v1/products

Method: POST

Request Body Sample:


{
"productName": "Carbon and alloy long product",
"technologyType": "ElectricArcFurnace",
"description": "",
"hsCode": "7208260030",
"heatNumber": "",
"grade": "",
"sku": "",
"facility": {
"globalLocationNumber": "",
"latitude": "-19.841644",
"longitude": "-43.986511",
"organizationName": "",
"streetAddress": "",
"addressLocality": "Minas Gerais",
"addressRegion": "Minas Gerais",
"postalCode": "",
"addressCountry": "Brazil"
},
"manufacturer": {
"name": "Fabricator Co." // please do not modify this
},
"weight": {
"unit": "Kg",
"value": "10000"
},
"observation": [
{
"type": "ChemicalProperty",
"name": "aluminum",
"description": "Aluminum",
"value": "0.05",
"unit": "%"
},
{
"type": "ChemicalProperty",
"name": "manganese",
"description": "Manganese",
"value": "1.65",
"unit": "%"
}
]
}

Postman Screenshots:
Create A Mill Test Report
API Doc: https://api-
prod.fabricator.metaltrail.com/api/#/products/MillTestController_addMillTestReport

Endpoint: https://api-staging.fabricator.metaltrail.com/v1/products/millTest

Method: POST

Request Body Sample:


{
"productId": "00000000-0000-0000-0000-000000000000",
"certifier": "Tom Tom",
"manufacturer": {
"name": "Fabricator Co." // please do not modify this
},
"specification": "S-00000000",
"originalCountryOfMeltAndPour": "Brazil",
"place": {
"globalLocationNumber": "",
"latitude": "-19.841644",
"longitude": "-43.986511",
"organizationName": "",
"streetAddress": "",
"addressLocality": "Minas Gerais",
"addressRegion": "Minas Gerais",
"postalCode": "",
"addressCountry": "Brazil"
},
"observation": [
{
"type": "ChemicalProperty",
"name": "aluminum",
"description": "Aluminum",
"value": "0.05",
"unit": "%"
},
{
"type": "ChemicalProperty",
"name": "manganese",
"description": "Manganese",
"value": "1.65",
"unit": "%"
}
]
}

Postman Screenshots:
Request Transfer Ownership
API Doc: https://api-
prod.fabricator.metaltrail.com/api/#/products/TransferController_transferOwnershipRequest

Endpoint: https://api-staging.fabricator.metaltrail.com/v1/products/transferownership/requests

Method: POST

Request Body Sample:


{
"productId": "00000000-0000-0000-0000-000000000000",
"receiver":
"did:key:z6MknqefJt2GxBVqD9NS3s11TP2jvxAswh9AXkfC5dM8Pctg",
"price": "4",
"hasDocuments": false
}

Postman Screenshots:

You might also like