| Permalink: |
Retrieve wallet operation history
URL¶
POST https://w3s.webmoney.com/json/V1/GetOperations.ashx
Headers¶
Authorization: Bearer {JWT}— required JWT token. Issued at https://security.webmoney.com/trustlisttokens.aspxContent-Type:application/json; charset=utf-8
Request body (JSON)¶
{
"reqn": 1730486400000,
"wmtranid": 0,
"tranid": 0,
"datestart": "2025-09-01T00:00:00",
"datefinish": "2025-10-02T23:59:59"
}
Fields¶
| *. Field | *. Type | Description |
|---|---|---|
| reqn | long | Request number (recommended: Unix time in ms) |
| wmtranid | long | WebMoney transaction ID (> 0 — datestart/datefinish are ignored), otherwise 0 |
| tranid | long | Sender transaction ID (> 0 — datestart/datefinish are ignored), otherwise 0 |
| datestart | DateTime | Start of the period (ISO 8601: YYYY-MM-DDThh:mm:ss), required when wmtranid = 0 and tranid = 0 |
| datefinish | DateTime | End of the period (ISO 8601: YYYY-MM-DDThh:mm:ss), required when wmtranid = 0 and tranid = 0 |
Notes:
- The purse is taken from JWT and not passed in the request body.
Ifpurseis specified, it must match the purse from the token. - If
wmtranid > 0ortranid > 0, fieldsdatestartanddatefinishare ignored.
Example of a successful response¶
{
"reqn": 1730486400000,
"operations": [
{
"id": 123456789,
"ts": 987654321,
"tranid": 1730486400000,
"pursesrc": "Z123456789012",
"pursedest": "Z163484365864",
"amount": 0.02,
"comiss": 0.01,
"opertype": 0,
"wminvid": 0,
"orderid": 0,
"period": 0,
"desc": "Test payment",
"datecrt": "2025-10-02T12:34:56.789Z",
"dateupd": "2025-10-02T12:34:56.789Z"
}
],
"retval": 0,
"retdesc": "OK"
}
Response notes:
datecrt/dateupd— ISO 8601, UTC.
Example of partial data with error¶
If an error occurs after the operations array has started,
the response ends with an error flag.
{
"reqn": 1730486400000,
"operations": [
{
"id": 123456789,
"ts": 987654321,
"tranid": 1730486400000,
"pursesrc": "Z123456789012",
"pursedest": "Z163484365864",
"amount": 0.02,
"comiss": 0.01,
"opertype": 0,
"wminvid": 0,
"orderid": 0,
"period": 0,
"desc": "Test payment",
"datecrt": "2025-10-02T12:34:56.789Z",
"dateupd": "2025-10-02T12:34:56.789Z"
}
],
"retval": -2,
"retdesc": "Partial data followed by error: <description>"
}
Error examples¶
401 Unauthorized:
{
"retval": 401,
"retdesc": "Authorization error: <description>"
}
403 Forbidden:
{
"retval": 403,
"retdesc": "Access denied: <description>"
}
404 Not Found:
{
"retval": 404,
"retdesc": "Resource not found: <description>"
}
500 Internal Server Error:
{
"retval": 500,
"retdesc": "Server error: <description>"
}
Possible return codes¶
| *. Code | *. Description |
| 0 | OK |
| 401 | Authorization error |
| 405 | Method not allowed (only POST) |
| -3 | Request processing error |
| ... | Other codes are described in X3 Interface |