Documentation::getInvoices

Method returns list of saved invoices' details.

Input parameter is a 2D array of xsd:token, which contains valid invoice(s) number(s).

Output is a multidimensional array (struct) of tns:invoices, which is a complex structure best described in WSDL.

Limits

Method accepts maximum of 99 requested numbers. If there are more invoice numbers requested, method returns fault.

Fault codes

Method returns SOAP fault (according to SOAP Version 1.2, section 2.3 Fault Scenarios) on failure or when no data found for client request. Database error may be returned with specific error prefix, when database is not ready or something unwanted happens.

Code Actor String Detail
-1SERVICERequested invoice not found.invoice number
1CLIENTMalformed request.client input
2CLIENTEmpty request.client input
3CLIENTNumber of maximum invoices per request exceeded.number of requested invoices
ORA-[0-9]{1-5}DATABASEDatabase subsystem error.database error message

Authentication

SOAP client must be capable of basic HTTP authentication to use this method.

Example request

POST /index.php HTTP/1.0
User-Agent:ClTest/1.0.0 (0.99)
Host:xchgdemo.techdata.cz
Content-Type:text/xml; charset=UTF-8
SOAPAction:"http://xchgdemo.techdata.cz/index.php/getInvoices"
Content-Length:714

Known bugs

SOAP fault is returned in ISO-8859-1 encoding, except of server header UTF-8 charset declaration.