Developer Portal

Reporting

List Transactions

Gets a list of transaction summaries between a set of dates and filtered if specified.

List Transactions

using GlobalPayments.Api.Services;

var items = ReportingService.FindTransactions()
    .WithStartDate(DateTime.Today.AddDays(-10))
    .WithEndDate(DateTime.Today)
    .Execute();
<?php
use GlobalPayments\Api\Services\ReportingService;

$dateFormat = 'Y-m-d\TH:i:s.00\Z';
$dateMinus10 = new \DateTime();
$dateMinus10->sub(new \DateInterval('P10D'));
$dateMinus10Utc = gmdate($dateFormat, $dateMinus10->format('U'));
$nowUtc = gmdate($dateFormat);

$items = ReportingService::findTransactions()
    ->withStartDate($dateMinus10Utc)
    ->withEndDate($nowUtc)
    ->execute();
import com.global.api.entities.TransactionSummaryList;
import com.global.api.services.ReportingService;

TransactionSummaryList items = ReportingService.findTransactions()
    .withStartDate(Calendar.getInstance().add(Calendar.DAY_OF_MONTH, -10))
    .withEndDate(Calendar.getInstance())
    .execute();
# coming soon
import datetime
from globalpayments.api.services import ReportingService

items = ReportingService.activity() \
    .with_start_date(datetime.datetime.today() + datetime.timedelta(days=-7)) \
    .with_end_date(datetime.datetime.today() + datetime.timedelta(days=-1)) \
    .execute()
import { ReportingService } from "globalpayments-api";

const start = new Date(Date.now());
start.setDate(start.getDate() - 7);
const end = new Date(Date.now());

const items = await ReportingService.activity()
  .withStartDate(start)
  .withEndDate(end)
  .execute();

Get a Transaction

Gets an transaction given a transaction ID.

Get Transaction

using GlobalPayments.Api.Services;

var items = ReportingService.FindTransactions()
    .WithStartDate(DateTime.Today.AddDays(-10))
    .WithEndDate(DateTime.Today)
    .Execute();

var item = ReportingService.TransactionDetail(items[0].TransactionId)
    .Execute();
<?php
use GlobalPayments\Api\Services\ReportingService;

$dateFormat = 'Y-m-d\TH:i:s.00\Z';
$dateMinus10 = new \DateTime();
$dateMinus10->sub(new \DateInterval('P10D'));
$dateMinus10Utc = gmdate($dateFormat, $dateMinus10->format('U'));
$nowUtc = gmdate($dateFormat);

$items = ReportingService::findTransactions()
    ->withStartDate($dateMinus10Utc)
    ->withEndDate($nowUtc)
    ->execute();

$item = ReportingService::transactionDetail(items[0]->transactionId)
    ->execute();
import com.global.api.entities.TransactionSummary;
import com.global.api.entities.TransactionSummaryList;
import com.global.api.services.ReportingService;

TransactionSummaryList items = ReportingService.findTransactions()
    .withStartDate(Calendar.getInstance().add(Calendar.DAY_OF_MONTH, -10))
    .withEndDate(Calendar.getInstance())
    .execute();

TransactionSummary item = ReportingService.transactionDetail(items.get(0).getTransactionId())
    .execute();
# coming soon
import datetime
from globalpayments.api.services import ReportingService

items = ReportingService.activity() \
    .with_start_date(datetime.datetime.today() + datetime.timedelta(days=-7)) \
    .with_end_date(datetime.datetime.today() + datetime.timedelta(days=-1)) \
    .execute()

item = ReportingService.transaction_detail(items[0].transaction_id) \
    .execute()
import { ReportingService } from "globalpayments-api";

const start = new Date(Date.now());
start.setDate(start.getDate() - 7);
const end = new Date(Date.now());

const items = await ReportingService.activity()
  .withStartDate(start)
  .withEndDate(end)
  .execute();

const item = await ReportingService.transactionDetail(items[0].transactionId)
  .execute();

Next Steps

Learn more about Heartland Ecommerce reporting with: