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:
{
"miscCostTypeKey": "JANTAR",
"description": "Jantar",
"maxValue": {
"amount": 100.00,
"fractionDigits": 2,
"symbol": "€"
},
"minValue": {
"amount": 12.00,
"fractionDigits": 2,
"symbol": "€"
},
"defaultValue": {
"amount": 25.00,
"fractionDigits": 2,
"symbol": "€"
},
"remarks": null,
"miscCost": "Refeiçoes",
"currency": "EUR",
"company": "DEMO"
}
This
method allows to create a type of misc cost according to the parameters filled
in:
- misccostTypeKey: The
misc cost type key. This field is mandatory.
- description:
Short description of the misc cost type. This field is mandatory.
- maxValue:
Maximum value.
- minValue:
Minimum value.
- defaultValue:
Default value.
- remarks:
Remarks.
- miscCost:
The misc cost key. This field is mandatory.
- currency:
The currency's key. This field is mandatory.
- company:
The company's key. This field is mandatory.
When this method
is executed successfully, it returns HttpStatusCode.201Created.
Related Articles
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
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 - Deleting a misc cost type
This method allows you to delete a misc cost type. The method to be used when deleting a misc cost type is: DELETE url/api/mytenant/myorganization/maintenancecore/misccoststypes/{{companyKey}}/{{misccoststypeKey}} The parameters being replaced on ...
WebAPI - Creating a requisition type
This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition: ...
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 ...