Performs a finance calculation, adds it to the proposal and returns the updated proposal.
POST {{baseUrl}}/proposals/:proposal-id/calculation
This endpoint performs a finance calculation, adds it to the proposal and returns the updated proposal.
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
Key | Datatype | Required | Description |
---|---|---|---|
If-Match | string | (Required) The If-Match HTTP request header makes the request conditional. For PUT and other modifying methods, it will only modify the resource in case the ETag indicated by the If-Match header is identical to the resource's current ETag. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"calculationResponse":{"sheet":{"created":"2000-03-08T14:57:38.233Z","marketProductId":-65393443,"introducerPricelistId":-87947118,"paymentPeriod":"\u003cstring\u003e","paymentMethod":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"},"paymentMode":"\u003cstring\u003e","rentals":[{"value":-22207564.486494437,"startDate":"2020-01-28","period":"\u003cstring\u003e","numberOfRentals":96550709,"paymentsPerRental":-21804106.53558664},{"value":14374320.197098762,"startDate":"2000-07-02","period":"\u003cstring\u003e","numberOfRentals":71700075,"paymentsPerRental":36708216.19512305}],"interestRate":-18928158.222184524,"customerPto":-59301438.474631764,"tariffRate":-57827825.88523223,"calcTariffRate":-77426650.06730092,"selloutTariffRate":-20180690.01563014,"upgradeValue":-17388343.59771055,"totalAssetValue":-53602043.53990792,"amountFinanced":-65804722.68429957,"vatAmount":59027758.364375114,"residualValue":{"amount":"\u003cdouble\u003e","percentage":"\u003cdouble\u003e","usePercentage":"\u003cboolean\u003e","manualSet":"\u003cboolean\u003e"},"term":-99530769,"commissions":[{"type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"amount":"\u003cdouble\u003e","percentage":"\u003cdouble\u003e","usePercentage":"\u003cboolean\u003e","manualSet":"\u003cboolean\u003e"},{"type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"amount":"\u003cdouble\u003e","percentage":"\u003cdouble\u003e","usePercentage":"\u003cboolean\u003e","manualSet":"\u003cboolean\u003e"}],"fees":[{"feeType":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"name":"\u003cstring\u003e","amount":"\u003cdouble\u003e","manualSet":"\u003cboolean\u003e","feeIncluded":"\u003cboolean\u003e"},{"feeType":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"name":"\u003cstring\u003e","amount":"\u003cdouble\u003e","manualSet":"\u003cboolean\u003e","feeIncluded":"\u003cboolean\u003e"}],"specialPayments":[{"amount":"\u003cdouble\u003e","type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"downPaymentType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"equipmentDetails":"\u003cstring\u003e","serialNumber":"\u003cstring\u003e"},{"amount":"\u003cdouble\u003e","type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"downPaymentType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"equipmentDetails":"\u003cstring\u003e","serialNumber":"\u003cstring\u003e"}],"specialPaymentsSum":-91373105.97267035,"optionFee":71992594.37325537},"errors":["qui ad","dolore eu magna in"],"warnings":["ut anim in","reprehenderit consectetur"]},"proposal":{"id":48140012,"proposalNumber":-40714651,"contractNumber":"fugiat incididu","label":"sed qui inci","specialConditionText":"in in nisi","created":"2015-05-26T13:22:10.966Z","updated":"1985-08-31T01:23:47.432Z","currency":"consequat elit ut tempor","officeId":-50856955,"salesContactId":92173534,"customer":{"businessPartner":{"registrationNumber":"\u003cstring\u003e","sourceCountryCode":"\u003cstring\u003e","companyType":"\u003cstring\u003e"},"introducerCustomerLabel":"culpa anim aliq","customerPartnerLimit":4445404,"address":{"city":"London","country":{"code":"\u003cstring\u003e","hasRegions":"\u003cboolean\u003e","name":"\u003cstring\u003e"},"id":52533,"address1":"Main Street","address2":"\u003cstring\u003e","houseNumber":"7","houseName":"The Manor","flatName":"Unit 4","postalCode":"52236","phoneNumber":"\u003cstring\u003e","mobilePhoneNumber":"\u003cstring\u003e","email":"jon.doe@xyz.com","region":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"}},"invoiceAddress":{"city":"London","country":{"code":"\u003cstring\u003e","hasRegions":"\u003cboolean\u003e","name":"\u003cstring\u003e"},"id":52533,"address1":"Main Street","address2":"\u003cstring\u003e","houseNumber":"7","houseName":"The Manor","flatName":"Unit 4","postalCode":"52236","phoneNumber":"\u003cstring\u003e","mobilePhoneNumber":"\u003cstring\u003e","email":"jon.doe@xyz.com","region":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"}},"invoiceContact":{"name":"dolore cillum consectetu","email":"/dgQElLil.m%.*n4w.M6.l^W6CN\u0026/%1@vm.2rR8HQ.SJCXHcXA.mc","phone":"ea Ut"}},"equipmentSuppliers":[{"registrationNumber":"\u003cstring\u003e","sourceCountryCode":"\u003cstring\u003e","companyType":"\u003cstring\u003e"},{"registrationNumber":"\u003cstring\u003e","sourceCountryCode":"\u003cstring\u003e","companyType":"\u003cstring\u003e"}],"signatories":[{"firstName":"eu","lastName":"irure","registrationNumber":"in irure in eiusm","email":"Y.qk.0MS38azqes.k#D-.RIbNg'.zQ.8/~O/~j#%.d_D7F$+cN%.^H*F0.~p/?6}N.8b7@OK.NPwySG","phone":"moll","jobTitle":{"id":-75609369,"name":"elit ex amet dolor","isCustom":true},"jobTitleCustom":"dolor cupidatat deserunt proident v","boardmember":true,"type":"CUSTOMER"},{"firstName":"a","lastName":"Excepteur dolore ea ex amet","registrationNumber":"aliquip non","email":"~#$G}2G|.BzX3M.Puy.BzZ'.6AF*U?x.MHK3dFNu}b.\u0026?4.dnHU_TO%A.0tZJpfHztiy.wsJ.JH\u0026Q0oRk@27bDG.U0Dx6LZqIn.SuPeph9OuF9.IHs74D-EXTr.mJhF9.GHKd.0fm.hnZ.muETfX.NdWca","phone":"ex ad","jobTitle":{"id":42875301,"name":"laborum aliquip tempor","isCustom":true},"jobTitleCustom":"dolore esse anim","boardmember":false,"type":"INTRODUCER"}],"currentCalculation":{"created":"2016-08-08T13:31:24.533Z","marketProductId":-82579354,"introducerPricelistId":-22099966,"paymentPeriod":"\u003cstring\u003e","paymentMethod":{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e"},"paymentMode":"\u003cstring\u003e","rentals":[{"value":69951772.35761368,"startDate":"1974-08-20","period":"\u003cstring\u003e","numberOfRentals":8294336,"paymentsPerRental":7634705.765633449},{"value":44963082.25679484,"startDate":"1948-02-28","period":"\u003cstring\u003e","numberOfRentals":-44013990,"paymentsPerRental":-67459895.18421954}],"interestRate":44361619.595347166,"customerPto":66728816.50966072,"tariffRate":-82576789.5829368,"calcTariffRate":1449917.3323515356,"selloutTariffRate":-4361790.442318633,"upgradeValue":-6893244.190630421,"totalAssetValue":90915596.30241886,"amountFinanced":-26462126.345191047,"vatAmount":-37024926.01867715,"residualValue":{"amount":"\u003cdouble\u003e","percentage":"\u003cdouble\u003e","usePercentage":"\u003cboolean\u003e","manualSet":"\u003cboolean\u003e"},"term":88894294,"commissions":[{"type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"amount":"\u003cdouble\u003e","percentage":"\u003cdouble\u003e","usePercentage":"\u003cboolean\u003e","manualSet":"\u003cboolean\u003e"},{"type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"amount":"\u003cdouble\u003e","percentage":"\u003cdouble\u003e","usePercentage":"\u003cboolean\u003e","manualSet":"\u003cboolean\u003e"}],"fees":[{"feeType":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"name":"\u003cstring\u003e","amount":"\u003cdouble\u003e","manualSet":"\u003cboolean\u003e","feeIncluded":"\u003cboolean\u003e"},{"feeType":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"name":"\u003cstring\u003e","amount":"\u003cdouble\u003e","manualSet":"\u003cboolean\u003e","feeIncluded":"\u003cboolean\u003e"}],"specialPayments":[{"amount":"\u003cdouble\u003e","type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"downPaymentType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"equipmentDetails":"\u003cstring\u003e","serialNumber":"\u003cstring\u003e"},{"amount":"\u003cdouble\u003e","type":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"readonly":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"downPaymentType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"equipmentDetails":"\u003cstring\u003e","serialNumber":"\u003cstring\u003e"}],"specialPaymentsSum":-78351612.85480945,"optionFee":77434968.79997626},"decision":{"decisionStatus":"MORE_INFORMATION_REQUIRED","decisionRequestedDate":"1963-03-20T12:22:33.670Z","decisionDate":"1985-07-06T08:00:48.800Z","decisionValidUntilDate":"2021-07-09T05:13:05.134Z","comment":"ipsum commodo ullamco","condition":"sit Lorem dolor","reason":"deserunt Duis officia cupidatat","commentToRiskAnalyst":"fugiat minim irure dolore","siemensMayContactCustomer":true},"status":"WAITING_FOR_DECISION"}}