Contract Management | Deduction Model
Service to manage entities of type 'DeductionModel'.
Overview
URL | api/{tenantKey}/{orgKey}/contractManagement/deductionModels |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive DeductionModel
- PUT Set DeductionModelKey DeductionModel
- PUT Set Name DeductionModel
- PUT Set AppliesTo DeductionModel
- PUT Set Deduction DeductionModelDetail
- PUT Set CalculationKind DeductionModelDetail
- PUT Set EmployeeValue DeductionModelDetail
- PUT Set EmployeePercentage DeductionModelDetail
- PUT Set EmployeeFormulaValue DeductionModelDetail
- PUT Set EmployeeFormulaPercentage DeductionModelDetail
- PUT Set Currency DeductionModelDetail
- DELETE:
All Resources
This service uses the following resources:
- ApiDeductionModelDeductionModelDetailsResource
- ApiDeductionModelResource
- DeductionModelDetailResource
- DeductionModelResource
- MoneyResource
All Enumerations
This service uses the following enumerations:
GET DeductionModels
Returns the list of all the entity records available.
Response:
When successful, the response body contains the list of records available. See DeductionModelResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET DeductionModels (paged)
Returns a page of the list of all the entity records available.
The following elements are optional:
page | (int) The index of the page of the list that should be returned. This is a query string parameter. |
pageSize | (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter. |
Response:
When successful, the response body contains the list of records available. See DeductionModelResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET DeductionModel by identifier
Returns the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body contains the entity record. See DeductionModelResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET DeductionModel by key
Returns the entity record that matches the specified key.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
Response:
When successful, the response body contains the entity record. See DeductionModelResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Print DeductionModel by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Print DeductionModel by key
Prints the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Original Print DeductionModelOriginal by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Original Print DeductionModel by key
Prints the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
POST DeductionModels
Creates a new entity record.
The following elements are required:
deductionModelResource | (ApiDeductionModelResource) The request body should contain the entity record that should be created. See ApiDeductionModelResource. |
Response:
When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiDeductionModelResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Deduction Model
Inserts a new 'Deduction Model Detail' in the 'Deduction Model'.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
value | (ApiDeductionModelDeductionModelDetailsResource) The ApiDeductionModelDeductionModelDetailsResource instance. See ApiDeductionModelDeductionModelDetailsResource. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set AppliesTo DeductionModel
Updates the value of attribute 'AppliesTo' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
value | (enum ContractKind) The request body should contain the new value for the attribute. See ContractKind. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set CalculationKind DeductionModelDetail
Updates the value of attribute 'CalculationKind' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (enum DeductionValueKind) The request body should contain the new value for the attribute. See DeductionValueKind. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Currency DeductionModelDetail
Updates the value of attribute 'Currency' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Deduction DeductionModelDetail
Updates the value of attribute 'Deduction' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set DeductionModelKey DeductionModel
Updates the value of attribute 'DeductionModelKey' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set EmployeeFormulaPercentage DeductionModelDetail
Updates the value of attribute 'EmployeeFormulaPercentage' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set EmployeeFormulaValue DeductionModelDetail
Updates the value of attribute 'EmployeeFormulaValue' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set EmployeePercentage DeductionModelDetail
Updates the value of attribute 'EmployeePercentage' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set EmployeeValue DeductionModelDetail
Updates the value of attribute 'EmployeeValue' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The detail identifier. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IsActive DeductionModel
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
PUT Set Name DeductionModel
Updates the value of attribute 'Name' in the specified entity record.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
DELETE Deduction Model Detail by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
lineId | (string) The line identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE DeductionModel by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE DeductionModel by key
Deletes the entity record that matches the specified key.
The following elements are required:
deductionModelKey | (string) Deduction Model. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
Resources
ApiDeductionModelDeductionModelDetailsResource
The following elements are required:
deduction | (string) Deduction. |
employeeValue | (MoneyResource) Employee Value.
See MoneyResource . |
currency | (string) Currency. |
The following elements are optional:
calculationKind | (enum DeductionValueKind) Calculation Kind.
See DeductionValueKind. |
employeePercentage | (decimal) Employee Percentage. |
employeeFormulaValue | (string) Employee Formula Value. |
employeeFormulaPercentage | (string) Employee Formula Percentage. |
ApiDeductionModelResource
The following elements are required:
deductionModelKey | (string) Deduction Model. |
name | (string) Name. |
appliesTo | (enum ContractKind) Applicable to contracts of.
See ContractKind. |
The following elements are optional:
deductionModelDetails | (List of ApiDeductionModelDeductionModelDetailsResource) Deduction Model Details.
See ApiDeductionModelDeductionModelDetailsResource. |
DeductionModelDetailResource
The following elements are required:
deduction | (string) Deduction. |
employeeValue | (MoneyResource) Employee Value.
See MoneyResource . |
currency | (string) Currency. |
The following elements are optional:
calculationKind | (enum DeductionValueKind) Calculation Kind.
See DeductionValueKind. |
employeePercentage | (decimal) Employee Percentage. |
employeeFormulaValue | (string) Employee Formula Value. |
employeeFormulaPercentage | (string) Employee Formula Percentage. |
DeductionModelResource
The following elements are required:
deductionModelKey | (string) Deduction Model. |
name | (string) Name. |
appliesTo | (enum ContractKind) Applicable to contracts of.
See ContractKind. |
The following elements are optional:
deductionModelDetails | (List of DeductionModelDetailResource) Deduction Model Details.
See DeductionModelDetailResource. |
MoneyResource
The following elements are required:
amount | (decimal) The amount. |
The following elements are optional:
baseAmount | (decimal) The base amount. |
reportingAmount | (decimal) The reporting amount. |
fractionDigits | (int) The fraction digits. |
symbol | (string) The symbol. |
Notes: For the POST operation it is not necessary to send the fields: BaseAmount, ReportingAmount, FractionDigits and Symbol. Will be ignored.