Skip to content

Latest commit

 

History

History
88 lines (58 loc) · 2.12 KB

bulk-charges.md

File metadata and controls

88 lines (58 loc) · 2.12 KB

BULK CHARGES

InitializeBulkCharge

// Class

Coderatio\PaystackMirror\Actions\BulkCharges\InitializeBulkCharge::class

Send an array of objects with authorization codes and amount in kobo so paystack can process transactions as a batch.

Body Params

  • authorization - Authorization code
  • amount - Amount

ListBulkChargeBatches

// Class

Coderatio\PaystackMirror\Actions\ListBulkChargeBatches::class

This lists all bulk charge batches created by the integration. Statuses can be active, paused, or complete.

Query Params

  • perPage - Specify how many records you want to retrieve per page
  • page - Specify exactly what page you want to retrieve

FetchBulkChargeBatch

// Class

Coderatio\PaystackMirror\Actions\BulkCharges\FetchBulkChargeBatch::class

This action retrieves a specific batch code. It also returns useful information on its progress by way of the total_charges and pending_charges attributes.

Path Params

  • id_or_code (required) - An ID or code for the transfer whose details you want to retrieve.

FetchChargesBatch

// Class

Coderatio\PaystackMirror\Actions\BulkCharges\FetchChargesBatch::class

This action retrieves the charges associated with a specified batch code. Pagination parameters are available. You can also filter by status. Charge statuses can be pending, success or failed.

Path Params

  • id_or_code (required) - An ID or code for the batch whose charges you want to retrieve.

Query Params

  • status - pending, success or failed
  • perPage
  • page

This params should be sent as one though.

PauseBulkChargeBatch

// Class

Coderatio\PaystackMirror\Actions\BulkCharges\PauseBulkChargeBatch::class

Use this action to pause processing a batch

Path Params

  • batch_code (required)

ResumeBulkChargeBatch

// Class 
Coderatio\PaystackMirror\Actions\BulkCharges\ResumeBulkChargeBatch::class

Use this action to resume processing a batch

Path Params

  • batch_code (required)

Read more here...