Webapi - Creating a misc cost

Webapi - Creating a misc cost

This method allows to create a misc cost in a simplified manner.

 The method to be used when creating a misc cost is:

 

POST url/api/mytenant/myorganization/maintenancecore/misccosts

 Json example for creating a misc cost:

  1. {
            "miscCostsKey""RF",
            "description""Refeições",
            "remarks"null
    }

This method allows to create a misc cost according to the parameters filled in:


  1. misccostKey: The misc cost key. This field is mandatory.
  2. description: Short description of the misc cost. This field is mandatory.
  3. remarks: Remarks.

When this method is executed successfully, it returns HttpStatusCode.201Created.



    • Related Articles

    • Webapi - Creating a misc cost type

      This method allows to create a misc cost type in a simplified manner.   The method to be used when creating a type of misc cost is:   POST url/api/mytenant/myorganization/maintenancecore/misccoststypes   Json example for creating a type of misc cost: ...
    • WebAPI - Creating a warehouse

      This method allows to create a warehouse in a simplified manner. The method to be used when creating a warehouse: POST url/api/mytenant/myorganization/inventorycore/warehouses Json example for creating a warehouse: 1. { "warehouseKey": "W2", ...
    • WebAPI - Creating a request

      This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
    • Webapi - Creating a misc cost report in a work order

      This method allows you to create a misc cost report in a work order in a simplified way. The method used to create a misc cost report in a work order is: POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportmisccosts Json example ...
    • 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 / ...