Settlements
AsyncSettlement
Bases: BaseAsyncAPI
Provides a wrapper for paystack Settlement API
The Settlements API allows you gain insights into payouts made by Paystack to your bank account. https://paystack.com/docs/api/settlement/
Source code in src/pypaystack2/api/settlements.py
get_settlement_transactions(id, pagination=50, page=1, start_date=None, end_date=None)
async
Get the transactions that make up a particular settlement
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
The settlement ID in which you want to fetch its transactions |
required |
pagination
|
int
|
Specifies how many records you want to retrieve per page. If not specified we use a default value of 50. |
50
|
page
|
int
|
Specifies exactly what page you want to retrieve. If not specified we use a default value of 1. |
1
|
start_date
|
Optional[str]
|
A timestamp from which to start listing settlement transactions e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
end_date
|
Optional[str]
|
A timestamp at which to stop listing settlement transactions e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/settlements.py
get_settlements(page=1, pagination=50, start_date=None, end_date=None, subaccount=None)
async
Fetch settlements made to your settlement accounts.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page
|
int
|
Specifies exactly what page you want to retrieve. If not specified we use a default value of 1. |
1
|
pagination
|
int
|
Specifies how many records you want to retrieve per page. If not specified we use a default value of 50. |
50
|
start_date
|
Optional[str]
|
A timestamp from which to start listing settlements e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
end_date
|
Optional[str]
|
A timestamp at which to stop listing settlements e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
subaccount
|
Optional[str]
|
Provide a subaccount ID to export only settlements for that subaccount.
Set to |
None
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/settlements.py
Settlement
Bases: BaseAPI
Provides a wrapper for paystack Settlement API
The Settlements API allows you gain insights into payouts made by Paystack to your bank account. https://paystack.com/docs/api/settlement/
Source code in src/pypaystack2/api/settlements.py
get_settlement_transactions(id, pagination=50, page=1, start_date=None, end_date=None)
Get the transactions that make up a particular settlement
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
The settlement ID in which you want to fetch its transactions |
required |
pagination
|
int
|
Specifies how many records you want to retrieve per page. If not specified we use a default value of 50. |
50
|
page
|
int
|
Specifies exactly what page you want to retrieve. If not specified we use a default value of 1. |
1
|
start_date
|
Optional[str]
|
A timestamp from which to start listing settlement transactions e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
end_date
|
Optional[str]
|
A timestamp at which to stop listing settlement transactions e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |
Source code in src/pypaystack2/api/settlements.py
get_settlements(page=1, pagination=50, start_date=None, end_date=None, subaccount=None)
Fetch settlements made to your settlement accounts.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page
|
int
|
Specifies exactly what page you want to retrieve. If not specified we use a default value of 1. |
1
|
pagination
|
int
|
Specifies how many records you want to retrieve per page. If not specified we use a default value of 50. |
50
|
start_date
|
Optional[str]
|
A timestamp from which to start listing settlements e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
end_date
|
Optional[str]
|
A timestamp at which to stop listing settlements e.g. 2016-09-24T00:00:05.000Z, 2016-09-21 |
None
|
subaccount
|
Optional[str]
|
Provide a subaccount ID to export only settlements for that subaccount.
Set to |
None
|
Returns:
Type | Description |
---|---|
Response
|
A named tuple containing the response gotten from paystack's server. |