WebAPI - Creating a part with inventory extension

WebAPI - Creating a part with inventory extension

This method allows to create a part of the part type with inventory extension in a simplified manner.
The method to be used when creating a part with inventory extension is:
POST url/api/mytenant/myorganization/inventorycore/inventoryparts/extendinventoryparts
Json example to create a part of the part type with inventory extension:
  1. {
        "partKey":"I-0012",
        "Description":"parafuso",
        "ComplementaryDescription":null,
        "Keyword":"PF0012",
        "Barcode":"eTFp088",
        "Family":null,
        "Brand":null,
        "BrandModel":null,
        "PartType":1,
        "BaseUnit":"LT","
        Remarks":null,
        "PartSubType":"AS",
        "Warehouse":"W1",
        "MinStock":"500.00",
        "MaxStock":"700.00",
        "UnitCost":"9.00"
        }
This method allows to create a part with inventory extension according to the filled in parameters:
  1. PartKey: The parts' key. This field is mandatory.
  2. Description: Short description of the part. This field is mandatory.
  3. ComplementaryDescription: Full description.
  4. Keyword: Short description of the part.
  5. Barcode: The part tag.
  6. Family: The family's key.
  7. Brand: The brand's key.
  8. BrandModel: The model's key.
  9. PartType: When creating a part of the part type, this field is filled in with "1".  This field is mandatory.
  10. BaseUnit: The base unit key. This field is mandatory.
  11. Picture: The parts' image. 
  12. Remarks: Location observation.
  13. PartSubType: The key of the part subtype.
  14. BaseUnit: The base unit key. This field is mandatory.
  15. Warehouse: The default warehouse key. This field is mandatory.
  16. MinStock: The minimum stock value.
  17. MaxStock: The maximum stock value.
  18. UnitCost: The unitary price value.
 When this method is executed successfully, it returns HttpStatusCode.200 OK

    • Related Articles

    • Webapi - Creating a part of the service type

      This method allows to create a part of the service type in a simplified manner. The method to be used to create a part of the service type is:  POST url/api/mytenant/myorganization/businesscore/parts  Json example to create a part of the service ...
    • WebAPI - Creating a tool

      This method allows to create a tool in a simplified manner. The method to be used when creating a tool is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating a tool: 1.     {     "equipmentKey": "PCR", ...
    • WebAPI - Creating an equipment

      This method allows to create an equipment in a simplified manner. The method to be used when creating an equipment: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating an equipment: 1.       { ...
    • WebAPI - Changing a part or service attribute

      This method allows to change a part or service field.   The method to be used to change a part or service attribute is:    PUT  {{url}/api/{{tenant}}/{{organization}}/businesscore/parts/{{partKey}}/{{atributo}}   The parameters on the method are the ...
    • 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 ...