Webapi - Creating a misc cost report in a work order

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 to create a misc cost report in a work order:
  1.     {
            "reportDate""2021-08-11T10:00:10.3886047+00:00",
            "miscCostDate""2021-08-11T10:00:10.3886047+00:00",
            "value": {
            "amount"34.00
            },
                "maxValue": {
            "amount"100.000000
        },
            "minimumValue": {
            "amount"10.000000
        },
            "quantity"1,
            "workOrder""OT9543",
            "assetType"2,
            "location"null,
            "equipment""MT02",
            "employee""0007",
            "company""DEMO",
            "miscCostsType""TIPOCD",
            "miscCost""DESLOC",
            "workOrderMaintenancePlan"null,
            "task"null
            "currency": “EUR”
        }

This method allows to create a misc cost report according to the parameters filled in:
  1. reportDate: The report date. Mandatory field.
  2. miscCostDate: The misc cost date. Mandatory field.
  3. value: The misc cost value. Mandatory field.
  4. maxValue: The maximum value defined on the selected misc cost. Mandatory field.
  5. Quantity: Quantity. Mandatory field.
  6. remarks: Remarks.
  7. WorkOrder: The key of the work order the misc cost will be recorded to. Mandatory field.
  8. AssetType: The asset type (2- equipment; 3- tool). Mandatory field.
  9. Location: The location's key.
  10. equipment: The equipment key..
  11. tool: The tool's key.
  12. Employee: Employee key.
  13. company: The company's key. Mandatory field.
  14. miscCostType: The misc cost type key. Mandatory field.
  15. miscCost: The misc cost key. Mandatory field.
  16. workorderMaintenancePlan: The maintenance plan key.
  17. Task: The task key.
  18. Currency: The currency's key. Mandatory field.
When this method is executed successfully, it returns HttpStatusCode.201Created.




    • Related Articles

    • 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 - Creating a consumption report in a work order

      This method allows you to create a consumption report in a work order in a simplified way.   The method used to create a consumption report in a work order is:   POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportConsumptions   ...
    • Webapi - Creating a task verification report for a work order

      This method allows you to create a task verification report for a work order in a simplified way. The method used to create a task verification report for a work order is:     ...
    • 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: { ...
    • Webapi - Creating a labor report in a work order

      This method allows you to create a labor report in a work order in a simplified way. The method used to create a labor report in a work order is:   POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportLabors   Json example to ...