Skip to content

Latest commit

History

History
333 lines (221 loc) · 7.77 KB

File metadata and controls

333 lines (221 loc) · 7.77 KB

paystack.BulkCharge

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

MethodHTTP requestDescription
chargesGET /bulkcharge/{code}/chargesFetch Charges in a Batch
fetchGET /bulkcharge/{code}Fetch Bulk Charge Batch
initiatePOST /bulkchargeInitiate Bulk Charge
listGET /bulkchargeList Bulk Charge Batches
pauseGET /bulkcharge/pause/{code}Pause Bulk Charge Batch
resumeGET /bulkcharge/resume/{code}Resume Bulk Charge Batch

charges

Response charges(code)

Fetch Charges in a Batch

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Batch code# Fetch Charges in a Batchresponse=paystack.BulkCharge.charges(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrBatch code

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]

fetch

Response fetch(code)

Fetch Bulk Charge Batch

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Batch code# Fetch Bulk Charge Batchresponse=paystack.BulkCharge.fetch(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrBatch code

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]

initiate

Response initiate()

Initiate Bulk Charge

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'# Initiate Bulk Chargeresponse=paystack.BulkCharge.initiate()
pprint(response)

Parameters

This endpoint does not need any parameter.

Return type

Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded, application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Resource created-
401Unauthorized operation-
0Server error-

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

list

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

List Bulk Charge Batches

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'# List Bulk Charge Batchesresponse=paystack.BulkCharge.list(
)
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]

pause

Response pause(code)

Pause Bulk Charge Batch

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Batch code# Pause Bulk Charge Batchresponse=paystack.BulkCharge.pause(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrBatch code

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]

resume

Response resume(code)

Resume Bulk Charge Batch

Example

  • Bearer Authentication (bearerAuth):
importpaystackfrompprintimportpprint# Set your API key based on domain (test or live mode)paystack.api_key='sk_domain_xxxxxxxx'code='code_example'# str | Batch code# Resume Bulk Charge Batchresponse=paystack.BulkCharge.resume(
code,
)
pprint(response)

Parameters

NameTypeDescriptionNotes
codestrBatch code

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]