API Module Financial searchInvoiceResellerRequest
From Openprovider API documentation
(Difference between revisions)
WikiSysop (Talk | contribs)
(Created page with '==Module Reseller > Search Invoices== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |reseller |- style="background-color:#EEEEEE;" |'''Command …')
Newer edit →
(Created page with '==Module Reseller > Search Invoices== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |reseller |- style="background-color:#EEEEEE;" |'''Command …')
Newer edit →
Revision as of 13:59, 15 December 2010
Contents |
Module Reseller > Search Invoices
| Module | reseller |
| Command name | searchInvoiceResellerRequest |
| Use | Retrieves a list of invoices from your reseller account |
| Input |
|
| Output |
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('searchInvoiceResellerRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs(array(
'startCreationDate' => '2010-01-01',
'endCreationDate' => '2010-03-31'
));
Raw XML
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username>username</username>
<password>password</password>
</credentials>
<searchInvoiceResellerRequest>
<startCreationDate>2010-01-01</startCreationDate>
<endCreationDate>2010-03-31</endCreationDate>
</searchInvoiceResellerRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<reply>
< code>0</code>
<desc />
<data>
<results>
<array>
<item>
<creationDate>2010-01-31 00:00:00</creationDate>
<invoiceNumber>OP123482</invoiceNumber>
<amount>
<product>
<price>259.90</price>
<currency>EUR</currency>
</product>
<reseller>
<price>259.90</price>
<currency>EUR</currency>
</reseller>
</amount>
<fileUrl>http://rest.openprovider.eu/invoice/OP123482?token=</fileUrl>
</item>
<item>
<creationDate>2010-02-28 00:00:00</creationDate>
<invoiceNumber>OP123483</invoiceNumber>
<amount>
<product>
<price>204.20</price>
<currency>EUR</currency>
</product>
<reseller>
<price>204.20</price>
<currency>EUR</currency>
</reseller>
</amount>
<fileUrl>http://rest.openprovider.eu/invoice/OP123483?token=</fileUrl>
</item>
<item>
<creationDate>2010-03-31 00:00:00</creationDate>
<invoiceNumber>OP123484</invoiceNumber>
<amount>
<product>
<price>225.92</price>
<currency>EUR</currency>
</product>
<reseller>
<price>225.92</price>
<currency>EUR</currency>
</reseller>
</amount>
<fileUrl>http://rest.openprovider.eu/invoice/OP123484?token=</fileUrl>
</item>
</array>
</results>
<total>3</total>
</data>
</reply>
</openXML>