transactions::get

Description

Get details for a transaction

Request details

Arguments

key
API key
transaction
Transaction ID (positive integer)

Responses

<?xml version="1.0" encoding="utf-8"?>
<transaction>
  <class>bandwidthusage</class>
  <id>2281</id>
  <domain>test01.example.com</domain>
  <date>2009-06-07</date>
  <amount>86198325</amount>
  <price>50</price>
  <value>4.01392229833</value>
  <owner>user01@example.com</owner>
  <datetime>2009-06-08 00:00:10</datetime>
</transaction>
	
<?xml version="1.0" encoding="utf-8"?>
<transaction>
  <class>storageusage</class>
  <id>2280</id>
  <domain>test01.example.com</domain>
  <from>2009-06-06 21:56:20</from>
  <to>2009-06-07 22:05:14</to>
  <amount>46716992</amount>
  <price>0.5</price>
  <value>0.747135940622</value>
  <owner>user01@example.com</owner>
  <datetime>2009-06-07 22:05:14</datetime>
</transaction>
	
<?xml version="1.0" encoding="utf-8"?>
<transaction>
  <class>instantcreditpurchase</class>
  <id>1</id>
  <reference>2CU78907WE087174L</reference>
  <purchaser>customer1@webignition.net</purchaser>
  <status>completed</status>
  <value>1000</value>
  <owner>user01@example.com</owner>
  <datetime>2008-04-02 15:55:07</datetime>
</transaction>
	
<?xml version="1.0" encoding="utf-8"?>
<transaction>
  <class>manualcreditaddition</class>
  <id>802</id>
  <status>completed</status>
  <value>3500</value>
  <owner>user01@example.com</owner>
  <datetime>2008-10-08 11:09:45</datetime>
  <reason>Feeling generous today</reason>
</transaction>
	
transaction
Container element for result
class
bandwidthusage
For credit debited resulting from bandwidth use
storageusage
For credit debited resulting from storage use
instantcreditpurchase
Credit purchase by user
manualcreditaddition
Credit addition by administrator
id
Numerical ID of this transaction
owner
Email address of account holder related with transaction
datetime
Date and time transaction was made
For usage transactions (class=bandwidthusage|storageusage)
domain
Domain name of hosting account using the resource
amount
Volume of data stored or transferred during the transaction period
price
Resource price at the time of the transaction
value
Amount in debited from account (pence)
For bandwidth usage transactions (class=bandwidthusage)
date
The day during which the usage was recorded
For storage usage transactions (class=storageusage)
from
The start date and time for this transaction period
to
The end date and time for this transaction period
For credit addition transactions (class=instantcreditpurchase|manualcreditaddition)
status
PayPal payment_status
value
Amount of credit added (pence)
For credit purchase transactions (class=instantcreditpurchase)
reference
PayPal txn_id
purchaser
Email address of person purchasing credit (may be different from transaction owner)
For manual credit additions (class=manualcreditaddition)
reason
The reason we chose to manually add some credit to your account

Exceptions

Examples

Get transaction 2281

GET /transactions/get/?key=acbd18db4cc2f85cedef654fccc4a4d8&transaction=2281
<?xml version="1.0" encoding="utf-8"?>
<transaction>
  <class>bandwidthusage</class>
  <id>2281</id>
  <domain>test01.example.com</domain>
  <date>2009-06-07</date>
  <amount>86198325</amount>
  <price>50</price>
  <value>4.01392229833</value>
  <owner>user01@example.com</owner>
  <datetime>2009-06-08 00:00:10</datetime>
</transaction>
	

See also

  1. Index
  2. About the API

    1. Summary
    2. Specification
    3. Do not use undocumented features
    4. Change log
  3. Using the API

    1. Requests
      1. Authenticated requests
      2. Limits
      3. Common request value data types
    2. Understanding responses
      1. HTTP status codes used
      2. Exceptions
        1. access
        2. account
        3. database
        4. hostingaccount
        5. server
        6. system
  4. Function reference