| Permalink: |
Repayment of the received loan
- URL for sending requests - https://debt.wmtransfer.com/api/credit4mereturn.aspx
- method – POST
- accept types: application/xml
- request format:
<service.request> <wmid>WMID</wmid> <creditid ret="RET_FLAG">CREDITID</creditid> <t>Ticks</t> <sign>SIGN</sign> </service.request>
- request parameters:
| Name | Purpose | Description |
|---|---|---|
| WMID | lender's WMID | 12 digits |
| Ticks | the number of milliseconds since 01.01.1970 00:00:00 UTC | Int64 |
| CREDITID | unique loan number | |
| RET_FLAG | repayment type flag | 0 - regular payment, 1 - entire amount repayment, regardless of the repayment period |
| SIGN | request signature | formed by calculating the SHA1 hash-function from a string obtained by concatenating parameters WMID + ':' + Ticks + ':' + CREDITID + ':' + RET_FLAG + ':' + password_for_API_access password_for_ access_to_the_API is generated on the settings page of the Debt Service |
- response format:
<service.response> <credit id="CREDIT_ID"> <datecrt>DATECRT</datecrt> <dateupd>DATEUPD</dateupd> <destwmid>DESTWMID</destwmid> <amount>AMOUNT</amount> <amount_ret>AMOUNT_RET</amount_ret> <amount_ret_rest>AMOUNT_RET_REST</amount_ret_rest> <ret_date>DATE_RET</ret_date> <ret_per>RET_PERIOD</ret_per> <state>STATE</state> </credit> <retval>RETVAL</retval> <retdesc>RETDESC</retdesc> </service.response>
- response parameters:
| Name | Purpose | Description |
|---|---|---|
| CREDIT_ID | unique loan number | |
| DATECRT | loan registartion date | format yyyy-MM-ddTHH:mm:ss |
| DATEUPD | date of the last change of the loan status | format yyyy-MM-ddTHH:mm:ss |
| DESTWMID | borrower's WMID | 12 digits |
| AMOUNT | amount issued | |
| AMOUNT_RET | amount to be repaid | |
| AMOUNT_RET_REST | the amount that remains to be repaid | |
| DATE_RET | planned repayment date | format yyyy-MM-ddTHH:mm:ss |
| RET_PERIOD | repayment perioidicity in days | |
| STATE | loan status | 0-planned 1-taken 2-declined 3-normally completed 4-completed ahead of schedule 5-completed at the expense of others 6-registration in the service has been terminated; obligation issued in Paymer format |
| RETVAL | request result |
RETVAL values