Request format¶
GET /api/v2/creditlines?showDeleted=0
Request parameters¶
| Name |
Purpose |
Description |
| showDeleted |
Enable remote trust limits |
0 or 1; by default 0 |
Response format (example)¶
{
"creditLines": [
{
"ownerWmid":"XXXXXXXXXXXX",
"borrowerWmid":"YYYYYYYYYYYY",
"purseSrc":"T123456789012",
"wmTypeSrc":"WMT",
"amountMax":100.00,
"amountIssued":0.00,
"interestDaily":0.2,
"returnPeriodDaysMax":30,
"returnPeriodDaysMin":1,
"returnPeriodicityDays":0,
"timeLife":0,
"state":"active",
"stateCode":1,
"contractId":0,
"createdAt":"2025-01-01T12:00:00Z",
"updatedAt":"2025-01-02T12:00:00Z"
}
],
"totalCount":1
}
Response parameters¶
Upper level¶
| Field |
Type |
Purpose |
Description |
| creditLines |
array |
Array of credit lines |
The elements are described below. |
| totalCount |
int |
Number of elements in the array |
Matches creditLines.length |
Element of the creditLines array¶
| Field |
Type |
Purpose |
Description |
| ownerWmid |
string |
WMID of the owner (lender) |
12 digits |
| borrowerWmid |
string |
Borrower's WMID |
12 digits |
| purseSrc |
string |
purse source |
Letter + 12 digits (e.g., T402299255256) |
| wmTypeSrc |
string |
WM type by purse |
e.g., WMT for T... |
| amountMax |
decimal |
Maximum Limit |
Upper Credit Line Limit |
| amountIssued |
decimal |
Already issued within the limit |
May be absent or 0 if no loans were issued |
| interestDaily |
decimal |
Daily interest rate |
In percentage per day |
| returnPeriodDaysMax |
int |
Maximum loan term |
In days |
| returnPeriodDaysMin |
int |
Minimum loan term |
In days |
| returnPeriodicityDays |
int |
Payment frequency |
Acceptable values: 0,1,3,5,10,15,30 |
| timeLife |
int |
Limit type |
0 — permanently operating; -1 — closes after use |
| state |
string |
Easly readable state |
e.g., active / closed / proposed (may be absent) |
| stateCode |
int |
Status code |
Numeric code of internal state |
| contractId |
int |
Contract ID |
May be 0 if not assigned |
| createdAt |
string |
Date the entry was created |
ISO 8601 UTC, e.g., "2025-01-01T12:00:00Z" |
| updatedAt |
string |
Last modified date |
ISO 8601 UTC |
Example call (curl)¶
curl -s -X GET "https://debt.webmoney.com/api/v2/creditlines?showDeleted=0" \
-H "Authorization: Bearer <JWT>" \
-H "Accept: application/json"
See also
Program Interfaces (API) of Debt Service V2