transactions::list
Description
List transactions for any period
Request details
-
Method
GET
-
URL
https://api.hostingreborn.com/transactions/list/
Arguments
- key
- API key
- limit (optional, positive integer)
-
Return maximum of
limittransactions - from (optional)
- Only get transations from this date and later
- to (optional)
- Only get transactions from this date and earlier
- storage (optional, boolean, default=1)
- Include storage usage transactions
- bandwidth (optional, boolean, default=1)
- Include bandwidth usage transactions
- instant_credit_purchase (optional, boolean, default=1)
- Include instant credit purchase transactions
- manual_credit_addition (optional, boolean, default=1)
- Include manual credit addition transactions
- subscription_purchase (optional, boolean, default=1)
- (Not yet implemented)
- subscription_control (optional, boolean, default=1)
- (Not yet implemented)
- subscription_id (optional, boolean, default=1)
- (Not yet implemented)
- domain (optional, string, default=blank)
- Include only transactions relating to given domain
Responses
<?xml version="1.0" encoding="utf-8"?>
<transactions>
<transaction>
...
</transactions>
<transaction>
...
</transactions>
<transaction>
...
</transactions>
</transaction>
- transactions
- Container element for result
- transaction
- See transactions::get
Exceptions
Examples
Get the most recent two of all transactions
GET /transactions/list/?key=acbd18db4cc2f85cedef654fccc4a4d8
<?xml version="1.0" encoding="utf-8"?>
<transactions>
<transaction>
<class>storageusage</class>
<id>2314</id>
<domain>test01.example.com</domain>
<from>2009-06-11 07:40:06</from>
<to>2009-06-12 07:45:04</to>
<amount>126976</amount>
<price>0.5</price>
<value>0.00202519018856</value>
<owner>user01@example.com</owner>
<datetime>2009-06-12 07:45:04</datetime>
</transaction>
<transaction>
<class>storageusage</class>
<id>2313</id>
<domain>test02.example.com</domain>
<from>2009-06-10 22:20:06</from>
<to>2009-06-11 22:25:05</to>
<amount>86622208</amount>
<price>0.5</price>
<value>1.38158761634</value>
<owner>user01@example.com</owner>
<datetime>2009-06-11 22:25:05</datetime>
</transaction>
</transactions>
See also
-
transactions::get
Get details for a transaction