Skip to content

Latest commit

History

History
116 lines (75 loc) · 2.68 KB

File metadata and controls

116 lines (75 loc) · 2.68 KB

paystack.Balance

All URIs are relative to https://api.paystack.co

MethodHTTP requestDescription
fetchGET /balanceFetch Balance
ledgerGET /balance/ledgerBalance Ledger

fetch

Response fetch()

Fetch Balance

You can only transfer from what you have

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'# Fetch Balanceresponse=paystack.Balance.fetch()
pprint(response)

Parameters

This endpoint does not need any parameter.

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
404Entity not found-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]

ledger

Response ledger(per_page=per_page, page=page, _from=_from, to=to)

Balance Ledger

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'# Balance Ledgerresponse=paystack.Balance.ledger(
)
pprint(response)

Parameters

NameTypeDescriptionNotes
per_pageintNumber of records to fetch per page[optional]
pageintThe section to retrieve[optional]
_fromdatetimeThe start date[optional]
todatetimeThe end date[optional]

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Request successful-
401Unauthorized operation-
404Entity not found-
0Server error-

[Back to top][Back to API list][Back to Model list][Back to README]