User Tools

Site Tools


lukas:usage

Lukas calculator

General information

Following actions are used to calculate installment purchase costs.

The following link should be used for testing purposes:
http://mdsws.merlinx.pl/lukasV1/test.php

List of possible action types

ActionDescription
instalmentlistList of possible instalments
instalmentInstalment rates info

instalmentlist

Request

Parameters:

Element nameAttributeDescription
instalmentCnt--
tripPrice-Price of trip
payment-payment advance
<?xml version='1.0'?>
<mds>
  <auth>
    <login>LOGIN</login>
    <pass>PASSWORD</pass>
  </auth>
  <request>
    <type>instalmentlist</type>
    <conditions>
      <instalmentCnt>0</instalmentCnt>
      <tripPrice>1798</tripPrice>
      <payment>0</payment>
    </conditions>
  </request>
</mds>

Response

Parameters:

Element nameAttributeDescription
tripPrice-Price of trip
payment-payment advance
upFee-up fee
rate-loan interest
instalmentSum-sum of the installments
instalmentList-list of installments
instalment-ammount
instalmentmonthshow many months long will the loan be
<response>
  <tripPrice>1798</tripPrice>
  <payment>0</payment>
  <upFee>5%</upFee>
  <rate>15.1%</rate>
  <instalmentSum>0</instalmentSum>
  <instalmentList>
    <instalment months="12">167.82</instalment>
    <instalment months="6">317.65</instalment>
    <instalment months="10">197.78</instalment>
    <instalment months="15">137.85</instalment>
    <instalment months="18">117.87</instalment>
  </instalmentList>
  <currency>PLN</currency>
</response>

instalment

Request

Parameters:

Element nameAttributeDescription
instalmentCnt-how many months length
tripPrice-Price of trip
payment-payment advance
<?xml version='1.0'?>
<mds>
  <auth>
    <login>LOGIN</login>
    <pass>PASSWORD</pass>
  </auth>
  <request>
    <type>instalment</type>
    <conditions>
      <instalmentCnt>12</instalmentCnt>
      <tripPrice>1798</tripPrice>
      <payment>100</payment>
    </conditions>
  </request>
</mds>

Response

Parameters:

Element nameAttributeDescription
tripPrice-Price of trip
payment-payment advance
upFee-up fee
rate-loan interest
instalment-ammount
instalmentSum-sum of the installments
currency-currency
<response>
  <tripPrice>1798</tripPrice>
  <payment>100</payment>
  <upFee>5%</upFee>
  <rate>12.09%</rate>
  <instalment>158.48</instalment>
  <instalmentSum>1902</instalmentSum>
  <currency>PLN</currency>
</response>
lukas/usage.txt · Last modified: 2012/07/31 15:01 by zbyszekb