Permalink: |
Creating of loan offer application
Creates a loan offer application on the terms of the selected loan application.
Returns a list of loan offer applications (similar to the page https://credit.webmoney.ru/PZTenders.aspx) or one of the applications from this list.
URL: https://credit.webmoney.ru/ZTenderNew.ashx
request parameters:
Parametr | Purpose | Description |
---|---|---|
wmid | Signer's WMID | |
tid | loan application number | an integer; if 0, the result is a list of all request loan applications; otherwise, the application parameters |
t | request time | an integer; the number of milliseconds since 01.01.1970 00:00:00 UTC at the time of the request |
p | purse from which the loan will be issued | string |
a | loan amount | format 0.00 |
SS | signature | formed by the WMSigner module on a string obtained by concatenating the parameters wmid, tid, a, p, t with the character; (semicolon) as a separator |
out | result format | |
callback | function name for JSONP |
Request example:
https://credit.webmoney.ru/ZTenderNew.ashx?WMID=000000410895&TID=241267&t=1412616128565&a=1.01&p=Z111133331111&SS=726f7a79643da...6c60b98db18004f
Returned data:
Parametr | Type | Description |
---|---|---|
retval | int | Error code |
nearestamount | amount | The nearest possible loan amount. Present only if retval = 30111. |
ztenders | array | created application |
Error codes:
Code | Description |
---|---|
0 | Success |
5 | No access. No access. The request was issued not by the WMID of the signer of the request.. |
1 | The signature is not correct. |
51 | The request time (parameter t) is very different from the current time. |
52 | The signer`s WMID passport is lower than personal. |
53 | Failed to get request signer WMID information. |
54 | The WMID parameter has an invalid format. |
102 | The p parameter (the purse from which the loan will be issued) has an incorrect format. |
103 | The loan amount is too small |
107 | Issuing a loan to yourself is impossible. |
108 | The loan request application was not found. |
109 | The status of the loan application does not allow you to issue a loan on it. |
110 | The loan amount is too much. |
1005 | Failed to get information about the borrower's passport. |
1006 | Failed to get information about the lender's passport |
10000 | Failed to register a loan agreement in the arbitration service. |
10001-10100 | An error occurred while performing a transaction in the WebMoney Transfer system. |
30002 | The loan request application was not found. |
30003 | The amount of the application for issuance is less than the required amount, while collective lending is not allowed |
30006 | The lender does not have a D purse |
30111 | The loan amount differs from the possible amount. If this code is returned, the nearestamount parameter is returned at the same time, which has the amount type and contains the nearest possible loan amount. |
Application parameters:
Parametr | Type | Description |
---|---|---|
TenderID | int | The number of loan offer application. |
CTenderID | int | The number of loan request application. |
WMID | string | The lender's WMID. |
ZAmount | amount | The transferred amount (loan amount). |
CAmount | amount | The amount to be refunded. |
State | int | Application status: 0 - new; 1 - paid; 2 - deleted; 3 - the loan is issued. |
ZPurse | string | Z-purse for loan repayment. |
WMTranID | int | WebMoney Transfer transaction number of the loan transfer. |
CDWMTranID | The number of the WebMoney Transfer transaction of receipt of the obligation. | |
DPurse | string | D-purse for accounting for received obligations. |
DateCrt | date | The date the application was created. |
DateUpd | date | The date of the last change in the status of the application. |
CredState | int | Loan status: 0 - not yet returned; 256 - partially returned; 512 - fully returned. |
CDRetAmount | amount | The amount returned. |
Remember that the list of loan applications is returned only when the parameters of one loan application are requested (TID=0).