WebAPI - Record and Maintenance of Parts and Services
This method allows to manage the record and maintenance of parts and services. For the inventory (parts), besides recording the part, it is also possible to classify it in terms of inventory, by identifying: the default warehouse, the minimum and maximum stock quantities, the unitary cost, etc.
The method used is: POST /api/mytenant/myorganization/inventorycore/inventoryparts/extendinventoryparts.
Example (Json) for the record and maintenance of a part or service.
{
"partKey": "I-0001",
"Description": "Oil",
"ComplementaryDescription": null,
"Keyword": "Oil",
"Barcode": "ZKH268C77",
"Family": "O",
"Brand": "",
"BrandModel": "",
"PartType": 1,
"BaseUnit": "LT",
"Remarks": "",
"PartSubType": "",
"Warehouse": "W1",
"MinStock": "100.000000",
"MaxStock": "500.000000",
"UnitCost": "8.500000"
}
Description of the attributes available on the request:
- PartKey: Part/Service identifier (code). On the record, it depends on the applied sequence.
- Description: summary description of the Part/Service.
- ComplementaryDescription: additional Part/Service description.
- Keyword: Part/Service key term (applicable in searches).
- Barcode: Part/Service barcode.
- Family: Part/Service family identifier (code).
- Brand: Part/Service brand identifier (code).
- BrandModel: Part/Service model identifier (code).
- PartType: Part/Service typology identifier (code).
- BaseUnit: Part/Service base unit identifier (code).
- Remarks: other relevant Part/Service observations.
- PartSubType: Part/Service subtype identifier (code).
- Warehouse: Part warehouse (default) identifier (code).
- MinStock: Part minimum stock quantity.
- MaxStock: Part maximum stock quantity.
- UnitCost: Part unitary cost on the warehouse (classified by default).
When this method is executed successfully, it returns HttpStatusCode.OK.
Related Articles
WebAPI – How do I update the task verification record?
This method allows you to change the task verification record of a work order. The method to be used for changing the work order task verification record is: POST /api/mytenant/myorganization/maintenance/ ...
WebAPI – How do I update the labor report?
This method allows you to change the labor record of a work order. The method to be used for changing the work order labor record is: POST /api/mytenant/myorganization/maintenance/workorderreportlabors/ ...
WebAPI – How do I update the material consumption report?
This method allows to change a material consumption. The method to be used when changing the work order material consumption ...
WebAPI – How to update the misc costs report?
This method allows you to change the misc cost of a work order. The method to be used for changing one other cost is: POST /api/mytenant/myorganization/maintenance/workorderreportmisccosts / ...
WebAPI – How can I change the work order state?
This method allows you to change a work order state. The method to be used for changing the work order change is: Post {{url}/api/{{tenant}}/{{organization}}/maintenance/workorders/changeSchemaEntityState/{{companyKey}} The parameters in the method ...