URL¶
POST https://security.webmoney.com/V1/SendMessage.ashx
Headers¶
Request body (JSON)¶
{
"reqn": 123456,
"receiverwmid": "123456789012",
"msgtext": "Message text",
}
*. Field |
*. Type |
Description |
reqn |
long |
Request number |
receiverwmid |
string |
Recipient’s WMID |
msgtext |
string |
Message text (1–1024 characters) |
Example of a successful response¶
{
"reqn": 123456,
"retval": 0,
"retdesc": "Ok",
"message": {
"id": 789,
"receiverwmid": "123456789012",
"msgtext": "Message text",
"datecrt": "2024-06-01T12:34:56.789Z"
}
}
Example of an error¶
{
"reqn": 123456,
"retval": 401,
"retdesc": "Authorization error: ...",
"message": null
}
Possible return codes¶
*. Code |
*. Description |
0 |
Ok |
401 |
Authorization error |
405 |
Method not allowed (POST only) |
... |
Other codes are described in Interface X6 |