Contract Management | Earning Model
Service to manage entities of type 'EarningModel'.
Overview
URL | api/{tenantKey}/{orgKey}/contractManagement/earningModels |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive EarningModel
- PUT Set EarningModelKey EarningModel
- PUT Set Name EarningModel
- PUT Set AppliesTo EarningModel
- PUT Set Earning EarningModelDetail
- PUT Set QuantityKind EarningModelDetail
- PUT Set QuantityValue EarningModelDetail
- PUT Set QuantityFormula EarningModelDetail
- PUT Set ValueKind EarningModelDetail
- PUT Set ValueMoney EarningModelDetail
- PUT Set ValueFormula EarningModelDetail
- PUT Set Currency EarningModelDetail
- DELETE:
All Resources
This service uses the following resources:
- ApiEarningModelEarningModelDetailsResource
- ApiEarningModelResource
- EarningModelDetailResource
- EarningModelResource
- MoneyResource
All Enumerations
This service uses the following enumerations:
GET EarningModels
Returns the list of all the entity records available.
Response:
When successful, the response body contains the list of records available. See EarningModelResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET EarningModels (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 EarningModelResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET EarningModel 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 EarningModelResource. |
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 EarningModel by key
Returns the entity record that matches the specified key.
The following elements are required:
earningModelKey | (string) Earning Model. |
Response:
When successful, the response body contains the entity record. See EarningModelResource. |
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 EarningModel 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 EarningModel by key
Prints the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 EarningModelOriginal 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 EarningModel by key
Prints the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 EarningModels
Creates a new entity record.
The following elements are required:
earningModelResource | (ApiEarningModelResource) The request body should contain the entity record that should be created. See ApiEarningModelResource. |
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 ApiEarningModelResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Earning Model
Inserts a new 'Earning Model Detail' in the 'Earning Model'.
The following elements are required:
earningModelKey | (string) Earning Model. |
value | (ApiEarningModelEarningModelDetailsResource) The ApiEarningModelEarningModelDetailsResource instance. See ApiEarningModelEarningModelDetailsResource. |
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 EarningModel
Updates the value of attribute 'AppliesTo' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 Currency EarningModelDetail
Updates the value of attribute 'Currency' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 Earning EarningModelDetail
Updates the value of attribute 'Earning' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 EarningModelKey EarningModel
Updates the value of attribute 'EarningModelKey' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 IsActive EarningModel
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 EarningModel
Updates the value of attribute 'Name' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 QuantityFormula EarningModelDetail
Updates the value of attribute 'QuantityFormula' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 QuantityKind EarningModelDetail
Updates the value of attribute 'QuantityKind' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning Model. |
lineId | (string) The detail identifier. |
value | (enum QuantityKind) The request body should contain the new value for the attribute. See QuantityKind. |
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 QuantityValue EarningModelDetail
Updates the value of attribute 'QuantityValue' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 ValueFormula EarningModelDetail
Updates the value of attribute 'ValueFormula' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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 ValueKind EarningModelDetail
Updates the value of attribute 'ValueKind' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning Model. |
lineId | (string) The detail identifier. |
value | (enum EarningValueKind) The request body should contain the new value for the attribute. See EarningValueKind. |
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 ValueMoney EarningModelDetail
Updates the value of attribute 'ValueMoney' in the specified entity record.
The following elements are required:
earningModelKey | (string) Earning 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:
DELETE Earning Model Detail by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
earningModelKey | (string) Earning 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 EarningModel 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 EarningModel by key
Deletes the entity record that matches the specified key.
The following elements are required:
earningModelKey | (string) Earning 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
ApiEarningModelEarningModelDetailsResource
The following elements are required:
earning | (string) Earning. |
valueMoney | (MoneyResource) Value Money.
See MoneyResource . |
currency | (string) Currency. |
The following elements are optional:
quantityKind | (enum QuantityKind) Quantity Kind.
See QuantityKind. |
quantityValue | (decimal) Quantity Value. |
quantityFormula | (string) Quantity Formula. |
valueKind | (enum EarningValueKind) Value Kind.
See EarningValueKind. |
valueFormula | (string) Value Formula. |
ApiEarningModelResource
The following elements are required:
earningModelKey | (string) Earning Model. |
name | (string) Name. |
appliesTo | (enum ContractKind) Applicable to contracts of.
See ContractKind. |
The following elements are optional:
earningModelDetails | (List of ApiEarningModelEarningModelDetailsResource) Earning Model Details.
See ApiEarningModelEarningModelDetailsResource. |
EarningModelDetailResource
The following elements are required:
earning | (string) Earning. |
valueMoney | (MoneyResource) Value Money.
See MoneyResource . |
currency | (string) Currency. |
The following elements are optional:
quantityKind | (enum QuantityKind) Quantity Kind.
See QuantityKind. |
quantityValue | (decimal) Quantity Value. |
quantityFormula | (string) Quantity Formula. |
valueKind | (enum EarningValueKind) Value Kind.
See EarningValueKind. |
valueFormula | (string) Value Formula. |
EarningModelResource
The following elements are required:
earningModelKey | (string) Earning Model. |
name | (string) Name. |
appliesTo | (enum ContractKind) Applicable to contracts of.
See ContractKind. |
The following elements are optional:
earningModelDetails | (List of EarningModelDetailResource) Earning Model Details.
See EarningModelDetailResource. |
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.