Request format¶
{
"amount": 100,
"period": 30,
"percent": 6,
"att": 4,
"bl": 100,
"currency": "T"
}
Request parameters¶
| Name |
Type |
Purpose |
Description |
| amount |
int |
Loan amount |
Minimum acceptable > 0 |
| period |
int |
Loan term (days) |
> 0 |
| percent |
decimal |
% for the entire period |
On the server it is translated into daily as percent/period |
| att |
int |
Type of borrower passport |
Passport code |
| bl |
int |
Borrower's BL |
Current BL value |
| currency |
string |
Currency |
Purse letter: Z/T/X/E/... |
Response format (example)¶
{
"items": [
{
"tenderId": 123,
"wmid": "XXXXXXXXXXXX",
"corrWmid": "YYYYYYYYYYYY",
"amountMax": 100.00,
"amountMin": 10.00,
"periodDaysMax": 30,
"periodDaysMin": 5,
"periodicityDays": 0,
"percentDailyMax": 0.20,
"purpose": "Краткая цель займа",
"showCorrs": true,
"showPersonal": false,
"currencyType": "T",
"isActive": true
}
],
"totalCount": 1
}
Response parameters¶
Upper level¶
| Field |
Type |
Purpose |
Description |
| items |
array |
Array of applications |
The elements are described below. |
| totalCount |
int |
Number of elements in the array |
Matches items.length |
Element of the items array¶
| Field |
Type |
Purpose |
Description |
| tenderId |
int |
Application ID |
Unique |
| wmid |
string |
WMID of the application author |
12 digits |
| corrWmid |
string |
Addressed to a specific WMID |
May be empty/not specified |
| amountMax |
decimal |
Maximum amount |
Upper credit line limit |
| amountMin |
decimal |
Minimum amount |
Lower credit line limit |
| periodDaysMax |
int |
Maximum term (days) |
- |
| periodDaysMin |
int |
Minimum term (days) |
- |
| periodicityDays |
int |
Payment frequency |
Acceptable values: 0,1,3,5,10,15,30 |
| percentDailyMax |
decimal |
Maximum daily interest |
Result of server calculations |
| purpose |
string |
Purpose of the loan |
May be absent/empty |
| showCorrs |
bool |
Show to correspondents |
true/false |
| showPersonal |
bool |
Show personal data |
true/false |
| currencyType |
string |
Currency type |
Letter purse (e.g., "T") |
| isActive |
bool |
Publication flag |
true — active |
Additional information¶
- The daily percentage is calculated as
percent/period (without taking into account compound interest).
Example call (curl)¶
curl -s -X POST "https://debt.webmoney.com/api/v2/tenders/money" \
-H "Authorization: Bearer <JWT>" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"amount": 100,
"period": 30,
"percent": 6,
"att": 4,
"bl": 100,
"currency": "T"
}'
See also
Program Interfaces (API) of Debt Service V2