Valuekeep DevelopmentParts and Inventory
DevelopmentParts and Inventory
Parts and Inventory
Back | List of Articles

How to create a Service-type part?

Last changed in 26/12/2024

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 type:

{


      "partKey": "P_024",

      "Description": "Peca 024",

      "ComplementaryDescription": "peca do postman 024",

      "Keyword": "P024",

      "Barcode": "P024",

      "Family": "OL",

      "Brand": "M",

      "BrandModel": "BM",

      "PartType": 1,

      "BaseUnit": "UN",

      "Supplier" : "FA_0022",

      "Remarks": "Peça importada postman",

      "PartSubType": "",

      "Warehouse": "W1",

      "MinStock": "10",

      "MaxStock": "100",

      "UnitCost": "2"
}
This method allows to create a part of the service type according to the filled in parameters:
  • PartKey: The part of the service type's key. This field is mandatory.
  • Description: Short description of the service. This field is mandatory.
  • ComplementaryDescription: Full description.
  • Keyword: Short description of the service.
  • Barcode: The service tag.
  • Picture: The service image.
  • Remarks: Location observation.
  • Family: The family's key.
  • Brand: The brand's key.
  • BrandModel: The model's key.
  • BaseUnit: The base unit key. This field is mandatory.
  • Supplier: The supplier key.
  • PartType: When creating a part of the service type, this field is filled in with "2". If you insert 1, a part of the part type without inventory extension will be created. This field is mandatory.
When this method is executed successfully, it returns HttpStatusCode.201 Created

Using this method, parts of the type 1 can be created. Parts of the type 2. Service. However, when creating parts of the type 1, this method does not create parts with inventory extension. To create a part with inventory extension, please see the article "webapi - Creating a part with inventory extension".

 

 

Bookmark or share this article
Esta página foi útil?
Obrigado pelo seu voto.
Related Articles
Record and Maintenance of Parts and Services How to create a warehouse? How to change a part or service attribute? How to delete a part or service? How to create a part with inventory extension?