Reports

Settlement Batch Summariesanchor

The Settlement Batch Summary displays the total sales and credits for each batch for a particular date. The transactions can be grouped by a single custom field's values.

  1. PHP
$today = new Datetime;
$result = $gateway->settlementBatchSummary()->generate(
  $today->format("Y-m-d"),
  "custom_field_1"
);

if ($result->success) {
  var_dump($result->settlementBatchSummary->records);
}

Argumentsanchor

  1. The date on which the batches were settled.
  2. Optional The custom field you wish to aggregate the results by.

Records data structureanchor

Below is an example of the data structure returned by records.

  1. PHP
(
  [0] => Array
    (
      [kind] => sale
      [cardType] => Mastercard
      [merchantAccountId] => your_merchant_account_id
      [count] => 1
      [amountSettled] => 100.00
      [custom_field_1] => your_first_custom_value
    )

  [1] => Array
    (
      [kind] => sale
      [cardType] => Mastercard
      [merchantAccountId] => your_merchant_account_id
      [count] => 5
      [amountSettled] => 250.00
      [custom_field_1] => your_second_custom_value
    )
)

See also