Repayment of the loan issued

  • URL for sending requests - https://debt.wmtransfer.com/api/creditreturn.aspx
  • method – POST
  • accept types: application/xml
  • request format:
    <service.request>
      <wmid>WMID</wmid>
      <creditid before="BEFORE_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
BEFORE_FLAG the deadline flag 1 - early loan repayment, 0 - repayment after the end of the loan term; if the value is 0, and the repayment period has not passed, the refund will not be executed
SIGN request signature formed by calculating the SHA1 hash function from a string obtained by concatenating parameters WMID + ':' + Ticks + ':' + CREDITID + ':' + before_the_deadline_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">
    <ownerwmid>OWNERWMID</ownerwmid>
    <destwmid>DESTWMID</destwmid>
    <pursesrc>PURSESRC</pursesrc>
    <pursedest>PURSEDEST</pursedest>
    <purseret>PURSERET</purseret>
    <amount>AMOUNT</amount>
    <amount_ret>AMOUNT_RET</amount_ret>
    <amount_rest_ret>AMOUNT_RET_REST</amount_rest_ret>
    <ret_date>DATE_RET</ret_date>
    <ret_per>RET_PERIOD</ret_per>
    <state>STATE</state>
    <datecrt>DATECRT</datecrt>
    <dateupd>DATEUPD</dateupd>
    <wmtranid>WMTRANID</wmtranid>
    <contractid>CONTRACTID</contractid>
    <wmtype>WMTYPE</wmtype>
    <wmtype_src>WMTYPE_SRC</wmtype_src>
  </credit>
  <retval>RETVAL</retval>
  <retdesc>RETDESC</retdesc>
</service.response>
  • response parameters:
Name Purpose Description
PURSESRC purse number the purse number from which the loan was issued
PURSEDEST purse number the purse number to which the loan was issued
PURSERET purse number the purse number from which the loan is repaid
WMTRANID payment number loan issue transaction number
CONTRACT_ID contract number the contract number in the Arbitration service, see https://arbitrage.web.money/asp/bContract.asp
WMTYPE purse type
WMTYPE_SRC purse type
CREDIT_ID unique loan number
DATECRT loan registartion date format yyyy-MM-ddTHH:mm:ss
DATEUPD date of the last change in 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 periodicity in days
STATE loan status 0-planned
1-taken
2-refusal
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