Permalink: |
Revocation a trust limit
- URL for sending requests - https://debt.wmtransfer.com/api/creditlinedel.aspx
- method – POST
- accept types: application/xml
- request format:
<service.request> <wmid>WMID</wmid> <formwid>ForWMID</formwid> <t>Ticks</t> <sign>SIGN</sign> </service.request>
- request parameters:
Name | Purpose | Description |
---|---|---|
WMID | lender's WMID | 12 digits |
ForWMID | borrower's WMID | 12 digits |
Ticks | the number of milliseconds since 01.01.1970 00:00:00 UTC | Int64 |
SIGN | request signature | formed by calculating the SHA1 hash function from a string obtained by concatenating parameters WMID + ':' + ForWMID + ':' + Ticks + ':' + password_for_API_access password_for_ access_to_the_API is generated on the settings page of the Debt Service |
- response format:
<service.response> <creditline wmidfrom="WMID_FROM" wmidfor="WMID_FOR"> <purse>PURSE</purse> <amountmax>AMOUNTMAX</amountmax> <amountpay>AMOUNTPAY</amountpay> <ret_period>RET_PERIOD</ret_period> <ret_proc>RET_PROC</ret_proc> <ret_per>RET_PER</ret_per> <state>STATE</state> <datecrt>DATECRT</datecrt> <dateupd>DATEUPD</dateupd> </creditline> <retval>RETVAL</retval> <retdesc>RETDESC</retdesc> </service.response>
- response parameters:
Name | Purpose | Description |
---|---|---|
FROMWMID | lender's WMID | 12 digits |
FORWMID | borrower's WMID | 12 digits |
DATECRT | date when the trust limit was opened | format yyyy-MM-ddTHH:mm:ss |
DATEUPD | date of the last changeof the limit status | format yyyy-MM-ddTHH:mm:ss |
AMOUNTMAX | maximum amount | |
AMOUNTPAY | amount used | |
RET_PERIOD | maximum repayment term in days | |
RET_PROС | daily loan interest | |
RET_PER | repayment periodicity | 0 - at the end of the term 1 - daily, 3 - once in 3 days, 5 - once in 5 days, 10 - once in 10 days, 15 - once in 15 days, 30 - once in 30 days |
STATE | limit status | 0 - closed, 1 - open, 2 - offered |
RETVAL values