This documentation has moved

XML API documentation can now be found at developer.openprovider.com. This page will remain available until September 2026, but will no longer be updated.

The XML API itself is not changing. Your existing integration continues to work.

API Module Financial searchTransactionResellerRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Module Reseller > Search Transactions== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |reseller |- style="background-color:#EEEEEE;" |'''Comm…')
Line 35: Line 35:
===Using PHP class===
===Using PHP class===
  $request = new OP_Request;
  $request = new OP_Request;
-
  $request->setCommand('searchInvoiceResellerRequest')
+
  $request->setCommand('searchTransactionResellerRequest')
   ->setAuth(array('username' => 'username', 'password' => 'password'))
   ->setAuth(array('username' => 'username', 'password' => 'password'))
   ->setArgs(array(
   ->setArgs(array(
-
     'startCreationDate' => '2010-01-01',
+
    'limit' => 2,
-
     'endCreationDate' => '2010-03-31'
+
     'startCreationDate' => '2010-12-01',
 +
     'endCreationDate' => '2010-12-31'
   ));
   ));

Revision as of 14:08, 15 December 2010

Contents

Module Reseller > Search Transactions

Module reseller
Command name searchTransactionResellerRequest
Use Retrieves a list of transactions from your reseller account
Input
  • limit default value: 100
  • offset default value: 0
  • startCreationDate format: yyyy-mm-dd
  • endCreationDate format: yyyy-mm-dd
Output
  • type
  • creationDate
  • action
  • subject
  • quantity
  • setup
  • price
  • discount
  • vat
  • total

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('searchTransactionResellerRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'limit' => 2,
    'startCreationDate' => '2010-12-01',
    'endCreationDate' => '2010-12-31'
  ));

Raw XML

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <searchTransactionResellerRequest>
    <limit>2</limit>
    <startCreationDate>2010-12-01</startCreationDate>
    <endCreationDate>2010-12-30</endCreationDate>
  </searchTransactionResellerRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <results>
        <array>
          <item>
            <type>transaction</type>
            <creationDate>2010-12-01 23:02:29</creationDate>
            <action>RENEW</action>
            <subject>domain-database.com</subject>
            <quantity>1</quantity>
            <setup>
              <product>
                <price>0.00</price>
                <currency>USD</currency>
              </product>
              <reseller>
                <price>0.00</price>
                <currency>EUR</currency>
              </reseller>
            </setup>
            <price>
              <product>
                <price>12.95</price>
                <currency>USD</currency>
              </product>
              <reseller>
                <price>9.76</price>
                <currency>EUR</currency>
              </reseller>
            </price>
            <discount>30.89</discount>
            <vat>19</vat>
            <total>
              <product>
                <price>10.65</price>
                <currency>USD</currency>
              </product>
              <reseller>
                <price>8.03</price>
                <currency>EUR</currency>
              </reseller>
            </total>
          </item>
          <item>
            <type>transaction</type>
            <creationDate>2010-12-02 15:15:03</creationDate>
            <action>NEW</action>
            <subject>domain-gaming.com</subject>
            <quantity>1</quantity>
            <setup>
              <product>
                <price>0.00</price>
                <currency>USD</currency>
              </product>
              <reseller>
                <price>0.00</price>
                <currency>EUR</currency>
              </reseller>
            </setup>
            <price>
              <product>
                <price>12.95</price>
                <currency>USD</currency>
              </product>
              <reseller>
                <price>9.68</price>
                <currency>EUR</currency>
              </reseller>
            </price>
            <discount>30.89</discount>
            <vat>19</vat>
            <total>
              <product>
                <price>10.65</price>
                <currency>USD</currency>
              </product>
              <reseller>
                <price>7.96</price>
                <currency>EUR</currency>
              </reseller>
            </total>
          </item>
        </array>
      </results>
      <total>42</total>
    </data>
  </reply>
</openXML>
Views
Personal tools