Initiation of repayment of an issued loan

Request format

{ "before": 0 }

Or parameter before in query: ?before=0|1.

Request parameters

Name Type Purpose Description
id int Loan ID Required
before int Return type 0 — ordinary; 1 — early repayment

Conditions and checks

  • Access: WMID of the loan owner (lender) or system WMID.
  • The loan must exist and be in a state of ready (otherwise 404 not_found).
  • Request limits: when exceeded — 429 too_many_requests.

Response format (success)

  • Code: 200 OK
  • Body: the loan object is in its actuality state (same as in Loans: details).

Example call (curl)

curl -s -X POST "https://debt.webmoney.com/api/v2/loans/123456/repay" \
  -H "Authorization: Bearer <JWT>" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data '{ "before": 0 }'

See also

Program Interfaces (API) of Debt Service V2