Create a Batch Template

post

/bcws/webresources/v1.0/batchpayments/batchtemplates

Creates a batch template in the BRM database.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : columnLink
Type: array
Indicates the order of the columns present in the batch.
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : columnLink
Type: array
Indicates the order of the columns present in the batch.
Show Source
Back to Top

Response

Supported Media Types

201 Response

The batch template was created successfully.
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : columnLink
Type: array
Indicates the order of the columns present in the batch.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to create a batch template in the BRM database 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/batchtemplates' -H 'content-type: application/json' -d @create.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.
  • create.json is the JSON file that specifies the template to create.

Example of Request Body

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

{
    "batchName": "Postal order Reversal Batch",
    "batchType": 3,
    "payType": 10015,
    "startRow": 16,
    "delimiter": "\t",
    "consecutive": 0,
    "qualifier": "none",
    "columnLink": [
        {
            "fieldName": "PIN_FLD_PAYMENT_TRANS_ID",
            "index": 2,
            "purpose":0
        },
        {
            "fieldName": "PIN_FLD_FIRST_NAME",
            "index": 4,
            "purpose":0
        },
        {
            "fieldName": "PIN_FLD_LAST_NAME",
            "index": 5,
            "purpose":0
        },
        {
            "fieldName": "PIN_FLD_DESCR",
            "index": 10,
            "purpose":0
        },
        {
            "fieldName": "PIN_FLD_ORDER_ID",
            "index": 7,
            "purpose":1
        },
        {
            "fieldName": "PIN_FLD_REASON_CODE",
            "index": 8,
            "purpose":1
        },
        {
            "fieldName": "PIN_FLD_EFFECTIVE_T",
            "index": 9,
            "purpose":1
        }
    ],
    "headerStartRow": 4,
    "headerEndRow": 13,
    "footerStartRow": 0,
    "footerEndRow": 0
}

Example of Response Body

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

{
    "id": "0.0.0.1+-config-batch_templates-reversal+599456",
    "uri": null
}
Back to Top