Process Batch Payments

post

/bcws/webresources/v1.0/batchpayments/process

Processes batch payment files and submits the payments upon successful validation.

Request

Query Parameters
  • What to do when the number of suspended payments in a batch file has exceeded a pre-configured threshold:
    • true specifies to override the threshold checkpoint and proceed with submitting the payments.
    • false specifies to stop processing the batch file and roll back any successful allocations in the payment batch.
  • Whether to automatically retry processing the batch payments if a failure occurs (true) or not (false).
Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Back to Top

Response

Supported Media Types

200 Response

The batch payments were processed successfully.
Body ()
Root Schema : paymentBatchStatistics
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.

201 Response

The batch payments were processed successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to process a batch payment file by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST 'http://hostname:port/bcws/webresources/v1.0/batchpayments/process' -H 'content-type: application/json' -d @batchProcess.json

where:

  • hostname is the URL for the Billing Care REST server.
  • port is the port for the Billing Care REST server.
  • version is the version of the API you're using, such as v1.0.
  • batchProcess.json is the JSON file that specifies the batch payment file to process.

Example of Response Body

This example shows the contents of the batchprocess.json file sent as the request body.

{
   "extension": null,
   "lockBoxName": null,
   "lockBoxId": null,
   "institutionName": "Cash Payment Batch",
   "templateName": null,
   "currency": "840",
   "fileName": "samplePmt2.pmt",
   "fileCreationDate": 1612361936090,
   "fileSize": 0.578125,
   "noOfPayments": 1,
   "status": 6
}

Example of Response Body

This example shows the contents of the response body in JSON format.

{
   "extension": null,
   "batchRef": null,
   "lockBoxName": null,
   "processedBy": null,
   "lockBoxId": null,
   "institutionName": "Cash Payment Batch",
   "totalPaymentsProcessed": 1,
   "totalPayments": 0,
   "totalPaymentsSuspended": 0,
   "processStartDate": 1612362027802,
   "processEndDate": 1612362032727,
   "processCompletionDate": 1612362032727,
   "durationInQueue": 2,
   "durationProcessed": 4925,
   "batchCurrency": 840,
   "fileName": "samplePmt2.pmt",
   "fileCreationDate": 1612361936090,
   "fileSize": 0.578125,
   "totalAmount": 1.50
}
Back to Top