Bulk Payment
POST /api/payments/bulk-payment
Bulk Payment Transfer
Header Parameters
- api-key string required
- api-secret string required
- application/json
Request Body required
- balanceId int64 required
Wallet Id of the account to send from
- balanceIdCharge int64
Wallet Id to charge, if left empty the balance that is being debited from will be charged
- currency string required
Currency
bulkPayments object[] required
List of bulk payments to be processed
Array [amount double requiredAmount being sent
transferType string requiredPossible values: [
BANK
,B2B
,B2C
,BUSINESS_PAY_BILL
,BUSINESS_BUY_GOODS
,COUNTER_PARTY_TRANSFER
]Type of transfer
phoneNumber stringPhone number of receiver
reference string requiredReference for the payment
recipient string requiredRecipient Name
recipientIdNumber stringRecipient ID number
bankId int64Pesawise Bank identifier
accountNumber stringAccount Number
paybillNumber stringPaybill Number
tillNumber stringTill Number
beneficiaryId int64Beneficiary ID
uniqueReference stringUnique Reference
walletIdTo int64Wallet ID To (Pesawise to Pesawise wallet)
]- virtual boolean
- 200
- 400
Bulk Payment Response
Response Headers
x-request-id any
Request Id for traceability
- */*
- Schema
- Example (from schema)
Schema
- batchId uuid required
Unique identifier used to query the batch transfer status
- success boolean
Indicates whether the payment was staged or not
- bulkResponseStatus string required
Possible values: [
INSUFFICIENT_FUNDS
,MALFORMED_REQUEST
,ERROR
,SUCCESS
,INVALID_API_KEYS
,API_NOT_ENABLED
,INTERNAL_ERROR
,NON_UNIQUE_CLIENT_REFERENCE
]Status of the bulk operation.
- message string required
Message related to the bulk operation status.
{
"batchId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"success": true,
"bulkResponseStatus": "SUCCESS",
"message": "Bulk operation staged successfully."
}
Invalid api keys
- */*
- Schema
- Example (from schema)
Schema
- batchId uuid required
Unique identifier used to query the batch transfer status
- success boolean
Indicates whether the payment was staged or not
- bulkResponseStatus string required
Possible values: [
INSUFFICIENT_FUNDS
,MALFORMED_REQUEST
,ERROR
,SUCCESS
,INVALID_API_KEYS
,API_NOT_ENABLED
,INTERNAL_ERROR
,NON_UNIQUE_CLIENT_REFERENCE
]Status of the bulk operation.
- message string required
Message related to the bulk operation status.
{
"batchId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"success": true,
"bulkResponseStatus": "SUCCESS",
"message": "Bulk operation staged successfully."
}