WebMoney
Ru/Eng | Help | Contacts

Interface X4. Receiving the History of Issued Invoices. Verifying whether Invoices Were Paid

Requests using WM Keeper Classic key authorization should be sent to: https://w3s.webmoney.ru/asp/XMLOutInvoices.asp
Requests using WM Keeper Light certificate authorization should be sent to: https://w3s.webmoney.ru/asp/XMLOutInvoicesCert.asp
Method POST
Request format <w3s.request> <reqn></reqn> <wmid></wmid> <sign></sign> <getoutinvoices> <purse></purse> <wminvid></wminvid> <orderid></orderid> <datestart></datestart> <datefinish></datefinish> </getoutinvoices> </w3s.request>
Request properties
name purpose description
reqn Request number An integer, maximum 15 digits.
It should always be larger than the number of previous request submitted
wmid Signer's WM-ID Is used for WM Keeper Classic authorization
sign Request's signature
Uses the following parameters: purse + reqn
Is used for WM Keeper Classic authorization
getoutinvoices Parameters of requested invoice (invoices) Parameters: purse, datestart, datefinish are required, the rest parameters may be left undefined or defined as 0
getoutinvoices\purse Number of the purse where the invoice should be paid to
getoutinvoices\wminvid Invoice number (in the WebMoney system) An integer > 0
getoutinvoices\orderid Invoice number Serial invoice number set by the store
getoutinvoices\datestart Minimum time and date of invoice creation YYYYMMDD HH:MM:SS
getoutinvoices\datefinish Maximum time and date of invoice creation YYYYMMDD HH:MM:SS
response format <w3s.response> <reqn></reqn> <retval></retval> <retdesc></retdesc> <outinvoices cnt="n" > <outinvoice id="n1" ts="n2"> <orderid></orderid> <customerwmid></customerwmid> <storepurse></storepurse> <amount></amount> <desc></desc> <address></address> <period></period> <expiration></expiration> <state></state> <datecrt></datecrt> <dateupd></dateupd> <wmtranid></wmtranid> </outinvoice> <outinvoice>...</outinvoice> </outinvoices> </w3s.response>
Response properties
name purpose description
reqn Request number
retval Execution code 0 means that the request was executed
retdesc Code interpretation
outinvoices List of invoices received in response Attribute: n defines number of invoices satisfying the request
outinvoices\outinvoice Invoice attributes id defines a unique number of a invoice in the WebMoney system
ts defines a service number of a invoice in the WebMoney system
outinvoice\orderid Invoice number Invoice number set by the sender
outinvoice\customerwmid Customer's WM-ID
outinvoice\storepurse Number of the purse where funds will be sent to
outinvoice\amount Amount that the customer is to pay
outinvoice\desc Description of product or service
outinvoice\address Delivery address
outinvoice\period Maximum period of protection in days
outinvoice\expiration Maximum valid period in days
outinvoice\state Status
  • 0 - unpaid
  • 1 - paid with protection
  • 2 - paid
  • 3 - rejected
  • outinvoice\datecrt Date and time of the invoice creation
    outinvoice\dateupd Date and time of the invoice status change
    outinvoice\wmtranid Transaction number in the WebMoney system, if the invoice was paid
    outinvoice\customerpurse Payer purse, if the invoice was paid
    Sample (IIS, ASP, JScript, MSXML)
    <%@ Language=JScript %> <% try { var AuthorizeType = 'light' // 'classic' var url; if ('classic'== AuthorizeType) url = 'https://w3s.webmoney.ru/asp/XMLOutInvoices.asp' else url = 'https://w3s.wmtransact.com/asp/XMLOutInvoicesCert.asp' var purse = 'R111111111111' var wminvid = 0 var orderid = 0 var datestart = '20020409 00:00:00' var datefinish = '20020412 00:00:00' var reqwmid = '111111111111' var signstr // only for 'classic' var reqn = (new Date()).valueOf() if ('classic'== AuthorizeType) { var planstr = purse+reqn var reqwmpwd = 'password' var reqwmfilename = 'c:\\wmkeeperclassickeyfile.kwm' var Signer = Server.CreateObject("WMSignerX.Signer") Signer.Login = reqwmid Signer.Passwd = reqwmpwd Signer.KeyFName = reqwmfilename signstr = Signer.SignString(planstr) } var s = '<w3s.request>' s += '<reqn>'+reqn+'</reqn>' if ('classic' == AuthorizeType) { s += '<wmid>'+reqwmid+'</wmid>' s += '<sign>'+signstr+'</sign>' } s += '<getoutinvoices>' s += ' <purse>'+purse+'</purse>' s += ' <wminvid>'+wminvid+'</wminvid>' s += ' <orderid>'+orderid+'</orderid>' s += ' <datestart>'+datestart+'</datestart>' s += ' <datefinish>'+datefinish+'</datefinish>' s += '</getoutinvoices>' s += '</w3s.request>' var xmlhttp = Server.CreateObject ("MSXML2.ServerXMLHTTP"); if ('light' == AuthorizeType) { xmlhttp.setOption(3, 'WM id: '+reqwmid) } xmlhttp.open('POST', url, false); xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send(s); var texttes = xmlhttp.responseText; // Response.Write(texttes) // var xmlres = Server.CreateObject ('Microsoft.XMLDOM'); xmlres.loadXML(texttes); var retcode = -1 var Node = xmlres.selectSingleNode("w3s.response/retval") if (null!=Node) retcode = parseInt(Node.text) if (0==retcode) { // successful } } catch(e) { Response.Write('error:'+(new Number(e.number)).toString(16)+'<br>\r\n') Response.Write('desc:'+e.description+'\r\n') } %>
    Passport.webmoney.ru
    Passport.wmtransfer.com
    Verification Service
    Arbitrage.webmoney.ru
    Arbitrage.wmtransfer.com
    Arbitration Service
    Geo.webmoney.ru
    WebMoney GeoService
    Geo Service
    Megastock
    Megastock
    Internet Resources Catalogue
    Enum
    Authorization System
    megastock.ru
    Internet Resources Catalogueв
    credit.webmoney.ru
    Credit Exchange
    telepat.ru
    Payments via telephoneу
    publicant.ru
    Buy E-books online
    masspayment
    Bulk Payments Service
    capitaller.ru
    Automated Budget Tool
    exchanger.ru
    Automated p2p-exchange
    indx.ru
    Internet Exchange
    WM Banking
    Bank wires in/out of the System
    digiseller.ru
    Automated sales of digital products
    trust.webmoney.ru
    Trust Service
    paymer.ru
    digital checks
    telepay.wmtransfer.com
    Payments towards telecom operators online
    mail.wmkeeper.com
    WebMoney Mail
    security.wmtransfer.com
    Security in the System
    cards.webmoney.ru
    WM Debit Cards
    wm2mail.webmoney.ru
    Transferring funds to e-mail
    files.webmoney.ru
    Secure files transfer
    education.webmoney.ru
    Learning more about WM
    notify.webmoney.ru
    Notification Service
    Close 
    The usage of WEBMONEY and WEBMONEY TRANSFER graphic logos by the site holders is authorized by trademark owners. Copyright WebMoney © 1997-2007
    Contact Us  |  Help  |  Terms of Use

    For all questions mail to support@wmtransfer.com