Revocation a trust limit v2

Credit lines: close (revoke) a limit

Формат запроса

{ "forWmid":"YYYYYYYYYYYY", "needNotify":true }

Request format

Name Purpose Description
forWmid Borrower's WMID 12 digits
needNotify Notify the borrower bool; optional

Response format (example)

{
  "ownerWmid":"XXXXXXXXXXXX",
  "borrowerWmid":"YYYYYYYYYYYY",
  "purseSrc":"T123456789012",
  "wmTypeSrc":"WMT",
  "amountMax":10.00,
  "amountIssued":0.00,
  "interestDaily":0.2,
  "returnPeriodDaysMax":30,
  "returnPeriodDaysMin":1,
  "returnPeriodicityDays":0,
  "timeLife":0,
  "state":"closed",
  "stateCode":0,
  "contractId":12345,
  "createdAt":"2025-01-01T12:00:00Z",
  "updatedAt":"2025-01-01T12:05:00Z" 
}

Response parameters

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

Additional checks

  • Access: only the limit owner (by JWT) with the right revoke_limit.
  • forWmid — correct WMID (12 digits).
  • The limit is located and belongs to the owner; otherwise 404 not_found or 403 access_denied.
  • By request from needNotify=true a notification is sent to the borrower.

Example call (curl)

curl -s -X POST "https://debt.webmoney.com/api/v2/creditlines/close" \
  -H "Authorization: Bearer <JWT>" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data '{ "forWmid":"432654517027", "needNotify":true }'

See also

Program Interfaces (API) of Debt Service V2