Getting a list of issued loans

  • URL for sending requests - https://debt.wmtransfer.com/api/credits.aspx
  • method – POST
  • accept types: application/xml
  • request format:
    <service.request>
      <wmid>WMID</wmid>
      <from>DATE_FROM</from>
      <to>DATE_TO</to>
      <state>STATE</state>
      <sign>SIGN</sign>
    </service.request>
    
  • request parameters:
Name Purpose Description
WMID lender's WMID 12 digits
DATE_FROM beginning of the range of the requested list format yyyy-MM-ddTHH:mm:ss
DATE_TO end of the range of the requested list format yyyy-MM-ddTHH:mm:ss
STATE the status of loans that should be included in the list optional value;if not set or '-1' - all loans are issued regardless of the status
SIGN request signature formed by calculating the SHA1 hash function from a string obtained by concatenating parameters WMID + ':' + DATE_FROM + ':' + DATE_TO + ':' + password_for_API_access password_for_access_to_the_API is generated on the settings page of the Debt Service
  • response format:
    <service.response>
      <credits cnt="CREDITS_CNT">
        <credit id="CREDIT_ID">
          <ownerwmid>OWNERWMID</ownerwmid>
          <destwmid>DESTWMID</destwmid>
          <pursesrc>PURSESRC</pursesrc>
          <pursedest>PURSEDEST</pursedest>
          <purseret>PURSERET</purseret>
          <datecrt>DATECRT</datecrt>
          <dateupd>DATEUPD</dateupd>
          <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>
          <wmtranid>WMTRANID</wmtranid>
          <contractid>CONTRACT_ID</contractid>
        </credit>
        ...
        <credit>...</credit>
      </credits>
      <retval>RETVAL</retval>
      <retdesc>RETDESC</retdesc>
    </service.response>
    
  • response parameters:
Name Purpose Description
CREDITS_CNT number of loans in the returned list
CREDIT_ID unique loan number
DATECRT loan date format yyyy-MM-ddTHH:mm:ss
DATEUPD date of the last change of the loan status format yyyy-MM-ddTHH:mm:ss
OWNERWMID lender's WMID 12 digits
DESTWMID borrower's WMID 12 digits
PURSESRC the purse number from which the loan was issued letter and 12 digits
PURSEDEST the purse number to which the loan was issued letter and 12 digits
PURSERET the purse number from which the loan is repaid letter and 12 digits
AMOUNT amount issued
AMOUNT_RET amount to be repaid
AMOUNT_RET_REST the amount that remains to be repaid
DATE_RET repayment date format yyyy-MM-ddTHH:mm:ss
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 values