Viewing a particular loan details

Loans: details

Request format

GET /api/v2/loans/{id}

Request Parameters

Name Type Purpose Description
id int Loan ID Required

Response format (example)

{
  "creditId": 123456,
  "ownerWmid": "XXXXXXXXXXXX",
  "destWmid": "YYYYYYYYYYYY",
  "purseSrc": "T123456789012",
  "purseDest": "T210987654321",
  "purseRet": "T210987654321",
  "dateCrt": "2025-01-01T12:00:00Z",
  "dateUpd": "2025-01-02T12:00:00Z",
  "amount": 100.00,
  "amountRet": 105.00,
  "amountRetRest": 50.00,
  "retDate": "2025-02-01T12:00:00Z",
  "retPeriod": 30,
  "state": 1,
  "wmTranId": 123456789,
  "block": false,
  "paymer": {
    "Number": "XXXXXXXXXXX",
    "Code": "YYYYYYYYYYYYYY" 
  }
}

Response parameters

Field Type Purpose Description
creditId int Loan ID Unique in the system
ownerWmid string Lender WMID 12 digits
destWmid string Borrower's WMID 12 digits (matches wmid)
purseSrc string Purse source Letter + 12 digits (e.g., T402299255256)
purseDest string Purse for receiving a loan Letter + 12 digits
purseRet string Loan repayment purse May match purseDest
dateCrt string Date of issue ISO 8601 UTC, e.g., "2025-01-01T12:00:00Z"
dateUpd string Last modified date ISO 8601 UTC
amount decimal Loan amount Value
amountRet decimal Amount to be refunded Including interest/commissions
amountRetRest decimal Remaining debt Current debt
retDate string Scheduled return date ISO 8601 UTC
retPeriod int Loan term (days) Full term
state int Loan status code 0..6 (see below)
wmTranId long Transaction number in the WM System May be 0 if absent
block bool Borrower blocking flag true/false
paymer object Paymer data Present only in state paymer

Paymer object fields (if present)

Field Type Purpose
Number string Номер обязательства Paymer
Code string Код обязательства Paymer

Loan status codes (state)

Code State
0 planned
1 taken (active)
2 refusal
3 completed normally
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

Example call (curl)

curl -s -X GET "https://debt.webmoney.com/api/v2/loans/123456" \
  -H "Authorization: Bearer <JWT>" \
  -H "Accept: application/json" 

See also

Program Interfaces (API) of Debt Service V2