How to create or delete a miscellaneous cost type?
This method allows to create a type of misc cost according to the parameters filled in: When this method is executed successfully, it returns HttpStatusCode.201Created. 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 the method are: When this method is executed successfully, it returns HttpStatusCode.204.Create Miscellaneous Cost Type
{
"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"
}Delete Miscellaneous Cost Type