Rejection of received invoices or cancellation of issued invoicesl

URL

POST https://w3s.webmoney.com/json/v1/InvoiceRefusal.ashx

Headers

Request body (JSON)

{
  "reqn": 1730486400000,
  "wminvid": 1730486400000,
 }

Field description

Field Type Description
reqn long Request number (recommended: Unix time in ms)
wminvid long the invoice's unique number in the WebMoney system; corresponds to id attribute of the parameter "invoice", response to the request on the interface Invoice creation)

Example of a successful response

{
"reqn": 1766583391905,
"retval": 0,
"retdesc": "OK" 
}

Possible return codes

Code Description
0 Ok
-100 общая ошибка при разборе команды. неверный формат команды.
-9 Invalid value in reqn field
-2 Invalid value in wminvid field
401 Authorization error
102 Requirement for the steady increase of the reqn property was not followed
405 Method not allowed (only POST)
21 Invoice could not be found
-3 Request processing error
... Other codes are described in Interface X1