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. Callback
  2. Promise
gateway.settlementBatchSummary.generate({
  settlementDate: "2012-01-01",
  groupByCustomField: "custom_field_1"
}, (err, result) => {
  console.log(result.settlementBatchSummary.records);
});

Parametersanchor

  1. settlementDate: The date on which the batches were settled.
  2. groupByCustomField: 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. JSON
[
  {
    "custom_field_1": "your_first_custom_value",
    "card_type": "Mastercard",
    "count": "24",
    "merchant_account_id": "your_merchant_account_id",
    "kind": "sale",
    "amount_settled": "1200.00"
  },
  {
    "custom_field_1":  "your_second_custom_value",
    "card_type": "Mastercard",
    "count": "42",
    "merchant_account_id": "your_merchant_account_id",
    "kind": "sale",
    "amount_settled": "1234.00"
  }
]

See also