Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 672 Bytes

File metadata and controls

24 lines (18 loc) · 672 Bytes

Settlements

Settlement.fetch(**kwargs) - Fetch a Settlement

Usage

from paystackapi.settlement import Settlement
response = Settlement.fetch(
            from="2016-09-12T00:00:00.000Z",
            to="2016-09-12T00:00:00.000Z",
            subaccount="subaccount"
        )

Arguments

  • start_date: Lower bound of date range. Leave undefined to export settlement from day one.
  • end_date: Upper bound of date range.Leave undefined to export settlements till date.
  • subaccount: code to export only settlements for that subaccount. Set to none to export only transactions for the account.

Returns

JSON data from Paystack API.