Performs a finance calculation and returns the result.

POST {{baseUrl}}/calculation?proposal-id=<integer>&office-id=<integer>&amount-financed=<double>

This endpoint performs a finance calculation and returns the result. The result will not be persisted.

Request Params

KeyDatatypeRequiredDescription
proposal-idstringThe unique identifier for the proposal on which the new calculation will be based on. If not set, the office-id param is used.
office-idstringThe unique identifier for the office on which the new calculation will be based on, if no proposal-id is specified. If not set, the first office of the current user is selected.
amount-financedstringThe amount financed for the calculation. This field will only be considered (and is mandatory) if no proposal-id is specified.

Request Body

{"sheet"=>{"introducerPricelistId"=>"<integer>", "marketProductId"=>"<integer>", "paymentMethod"=>{"id"=>"<integer>", "name"=>"<string>"}, "paymentMode"=>"<string>", "paymentPeriod"=>"<string>", "term"=>"<integer>", "paymentProfile"=>{"profile1"=>"<integer>", "profile2"=>"<integer>"}, "paymentPerMonth"=>"<double>", "customerPto"=>"<double>", "residualValue"=>{"amount"=>"<double>", "percentage"=>"<double>", "usePercentage"=>"<boolean>", "manualSet"=>"<boolean>"}, "commissions"=>[{"type"=>{"id"=>"<integer>", "name"=>"<string>", "readonly"=>"<boolean>"}, "amount"=>"<double>", "percentage"=>"<double>", "usePercentage"=>"<boolean>", "manualSet"=>"<boolean>"}, {"type"=>{"id"=>"<integer>", "name"=>"<string>", "readonly"=>"<boolean>"}, "amount"=>"<double>", "percentage"=>"<double>", "usePercentage"=>"<boolean>", "manualSet"=>"<boolean>"}], "fees"=>[{"feeType"=>{"id"=>"<integer>", "name"=>"<string>", "readonly"=>"<boolean>", "code"=>"<string>"}, "name"=>"<string>", "amount"=>"<double>", "manualSet"=>"<boolean>", "feeIncluded"=>"<boolean>"}, {"feeType"=>{"id"=>"<integer>", "name"=>"<string>", "readonly"=>"<boolean>", "code"=>"<string>"}, "name"=>"<string>", "amount"=>"<double>", "manualSet"=>"<boolean>", "feeIncluded"=>"<boolean>"}], "specialPayments"=>[{"amount"=>"<double>", "type"=>{"id"=>"<integer>", "name"=>"<string>", "readonly"=>"<boolean>", "downPaymentType"=>"<boolean>", "code"=>"<string>"}, "equipmentDetails"=>"<string>", "serialNumber"=>"<string>"}, {"amount"=>"<double>", "type"=>{"id"=>"<integer>", "name"=>"<string>", "readonly"=>"<boolean>", "downPaymentType"=>"<boolean>", "code"=>"<string>"}, "equipmentDetails"=>"<string>", "serialNumber"=>"<string>"}], "optionFee"=>"<double>"}, "operation"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;sheet&quot;:{&quot;created&quot;:&quot;2016-06-19T01:58:01.332Z&quot;,&quot;marketProductId&quot;:8882513,&quot;introducerPricelistId&quot;:-4608341,&quot;paymentPeriod&quot;:&quot;\u003cstring\u003e&quot;,&quot;paymentMethod&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;},&quot;paymentMode&quot;:&quot;\u003cstring\u003e&quot;,&quot;rentals&quot;:[{&quot;value&quot;:98698519.51311341,&quot;startDate&quot;:&quot;2015-09-07&quot;,&quot;period&quot;:&quot;\u003cstring\u003e&quot;,&quot;numberOfRentals&quot;:31783555,&quot;paymentsPerRental&quot;:-5487396.197602302},{&quot;value&quot;:54903028.85020393,&quot;startDate&quot;:&quot;1952-06-29&quot;,&quot;period&quot;:&quot;\u003cstring\u003e&quot;,&quot;numberOfRentals&quot;:852427,&quot;paymentsPerRental&quot;:-48923807.69724683}],&quot;interestRate&quot;:-18106272.927004725,&quot;customerPto&quot;:-25471377.374991894,&quot;tariffRate&quot;:-71829873.10062115,&quot;calcTariffRate&quot;:16920469.135626927,&quot;selloutTariffRate&quot;:-20002731.604206935,&quot;upgradeValue&quot;:-73371632.17772552,&quot;totalAssetValue&quot;:63942903.62073901,&quot;amountFinanced&quot;:47014186.32859352,&quot;vatAmount&quot;:84999753.1111978,&quot;residualValue&quot;:{&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;percentage&quot;:&quot;\u003cdouble\u003e&quot;,&quot;usePercentage&quot;:&quot;\u003cboolean\u003e&quot;,&quot;manualSet&quot;:&quot;\u003cboolean\u003e&quot;},&quot;term&quot;:-84324606,&quot;commissions&quot;:[{&quot;type&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;readonly&quot;:&quot;\u003cboolean\u003e&quot;},&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;percentage&quot;:&quot;\u003cdouble\u003e&quot;,&quot;usePercentage&quot;:&quot;\u003cboolean\u003e&quot;,&quot;manualSet&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;type&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;readonly&quot;:&quot;\u003cboolean\u003e&quot;},&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;percentage&quot;:&quot;\u003cdouble\u003e&quot;,&quot;usePercentage&quot;:&quot;\u003cboolean\u003e&quot;,&quot;manualSet&quot;:&quot;\u003cboolean\u003e&quot;}],&quot;fees&quot;:[{&quot;feeType&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;readonly&quot;:&quot;\u003cboolean\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;manualSet&quot;:&quot;\u003cboolean\u003e&quot;,&quot;feeIncluded&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;feeType&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;readonly&quot;:&quot;\u003cboolean\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;manualSet&quot;:&quot;\u003cboolean\u003e&quot;,&quot;feeIncluded&quot;:&quot;\u003cboolean\u003e&quot;}],&quot;specialPayments&quot;:[{&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;type&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;readonly&quot;:&quot;\u003cboolean\u003e&quot;,&quot;downPaymentType&quot;:&quot;\u003cboolean\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;},&quot;equipmentDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;serialNumber&quot;:&quot;\u003cstring\u003e&quot;},{&quot;amount&quot;:&quot;\u003cdouble\u003e&quot;,&quot;type&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;readonly&quot;:&quot;\u003cboolean\u003e&quot;,&quot;downPaymentType&quot;:&quot;\u003cboolean\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;},&quot;equipmentDetails&quot;:&quot;\u003cstring\u003e&quot;,&quot;serialNumber&quot;:&quot;\u003cstring\u003e&quot;}],&quot;specialPaymentsSum&quot;:46106574.76641515,&quot;optionFee&quot;:-18703140.077906072},&quot;errors&quot;:[&quot;laboris in aute ut&quot;,&quot;nostrud pariatur&quot;],&quot;warnings&quot;:[&quot;adipisicing&quot;,&quot;et in&quot;]}