Permalink: |
Blocking the borrower
- URL for sending requests - https://debt.wmtransfer.com/api/creditblock.aspx
- method – POST
- accept types: application/xml
- request format:
<service.request> <wmid>WMID</wmid> <creditid block="Block">CreditID</creditid> <t>Ticks</t> <sign>SIGN</sign> </service.request>
- request parameters:
Name | Purpose | Description |
---|---|---|
WMID | lender's WMID | 12 digits |
CreditID | loan ID | an integer |
Block | action | 0 - remove the block, 1 - set the block |
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 + ':' + Ticks + ':' + CreditID + ':' + Block + ':' + password_for_API_access password_for_ access_to_the_API is generated on the settings page of the Debt Service |
- response format:
<service.response> <wmid block="Block">WMID</wmid> <retval>RETVAL</retval> <retdesc>RETDESC</retdesc> </service.response>
- response parameters:
Name | Purpose | Description |
---|---|---|
WMID | lender's WMID | 12 digits |
Block | current blocking status | 0 - there is no blocking, 1 - there is a blocking |
RETVAL values