Returns a report of the payment history for the authenticated organization.
Request
- HTTP Verb: GET
- URI: /report/paymentHistory
Searchable Fields
start_date |
Example:
display transactions on or after 2013-11-01 |
---|---|
end_date |
Example:
display transactions on or before 2014-11-01 |
seller_id |
Example:
display transactions of e-learning sold by user with id = 123456 |
buyer_id |
Example:
display transactions of e-learning bought by user with id = 123456 |
coupon |
Example:
display transactions where the following coupon code was used: 'coupon-code-1234' |
elearning_id |
Example:
display all transactions where e-learning 4567 was purchased |
elearning_name |
Example:
display all transactions where the e-learning name contains 'a brief history' |
See Advanced queries for details on how to use Searchable Fields.
Request example
$report = $API->getReportPaymentHistory();
Output Example
array( [0] => array( "date" => "11 Dec 2013", "currency" => "USD", "member_id" => 1234, "member_name" => "A Member Name" "e-learning_price" => "USD 12.00", "e-learning_reference" => 9876, "e-learning_name" => "A e-learning name", "portal" => "ABBREV", "author_fee" => "", "organization_fee" => "", "transaction_fee" => "", "coupon" => "", "e-learning_discounted_price" => "", "e-learning_discount_percentage" => "" ), [1] => array( "date" => "12 Dec 2013", "currency" => "EUR", "member_id" => 2345, "member_name" => "Another Member Name" "e-learning_price" => "USD 10.00", "e-learning_reference" => 9947, "e-learning_name" => "Another e-learning name", "portal" => "ABBREV", "author_fee" => "EUR 4.00", "organization_fee" => "EUR 0.50", "transaction_fee" => "EUR 0.50", "coupon" => "coupon-code-1234", "e-learning_discounted_price" => "EUR 5.00", "e-learning_discount_percentage" => "50%" ) ... )