See also the
SettlementBatchSummary response object.
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.
result = gateway.settlement_batch_summary.generate( datetime.datetime.today().strftime("%Y-%m-%d"), "custom_field_1" ) if result.is_success: print(result.settlement_batch_summary.records)
If you call this method with incorrect arguments, you may receive validation errors.