Get Batch Templates

get

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

Gets batch templates from the BRM database.

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of batch templates objects data was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : templateFields
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get batch templats from the BRM database by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X GET 'http://hostname:port/bcws/webresources/version/batchpayments/batchtemplates?limit=3&offset=0&expand=true'

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.

Example of Response Body

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

[
    {
        "batchType": 1,
        "payType": 10011,
        "batchName": "ITC Batch Cash",
        "startRow": 4,
        "delimiter": ",",
        "consecutive": 0,
        "qualifier": "none",
        "columnLink": [
            {
                "fieldName": "PIN_FLD_ACCOUNT_NO",
                "index": 1,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_BILL_NO",
                "index": 2,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_AMOUNT",
                "index": 3,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_RECEIPT_NO",
                "index": 4,
                "purpose": 1
            },
            {
                "fieldName": "PIN_FLD_EFFECTIVE_T",
                "index": 5,
                "purpose": 0
            }
        ],
        "headerStartRow": 1,
        "headerEndRow": 3,
        "footerStartRow": 11,
        "footerEndRow": 8,
        "batchTemplateRef": {
            "id": "0.0.0.1+-config-batch_templates-payment+536230",
            "uri": null
        }
    },
    {
        "batchType": 1,
        "payType": 10014,
        "batchName": "Inter Bank Payment order Payment Batch",
        "startRow": 16,
        "delimiter": "\t",
        "consecutive": 0,
        "qualifier": "none",
        "columnLink": [
            {
                "fieldName": "PIN_FLD_PAYMENT_AMOUNT",
                "index": 18,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_BILL_NO",
                "index": 4,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_ACCOUNT_NO",
                "index": 5,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_DUE",
                "index": 8,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_CHANNEL_ID",
                "index": 13,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_DESCR",
                "index": 17,
                "purpose": 0
            },
            {
                "fieldName": "ALLOCATION",
                "index": 2,
                "purpose": 0
            },
            {
                "fieldName": "DEFFERED_ALLOCATION",
                "index": 3,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_FIRST_NAME",
                "index": 6,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_LAST_NAME",
                "index": 7,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_EFFECTIVE_T",
                "index": 9,
                "purpose": 1
            },
            {
                "fieldName": "PIN_FLD_ORDER_ID",
                "index": 10,
                "purpose": 1
            },
            {
                "fieldName": "PIN_FLD_BANK_CODE",
                "index": 11,
                "purpose": 1
            },
            {
                "fieldName": "PIN_FLD_BANK_ACCOUNT_NO",
                "index": 12,
                "purpose": 1
            }
        ],
        "headerStartRow": 4,
        "headerEndRow": 13,
        "footerStartRow": 0,
        "footerEndRow": 0,
        "batchTemplateRef": {
            "id": "0.0.0.1+-config-batch_templates-payment+601347",
            "uri": null
        }
    },
    {
        "batchType": 1,
        "payType": 10015,
        "batchName": "Postal order Payment Batch",
        "startRow": 16,
        "delimiter": "\t",
        "consecutive": 0,
        "qualifier": "none",
        "columnLink": [
            {
                "fieldName": "PIN_FLD_PAYMENT_AMOUNT",
                "index": 16,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_BILL_NO",
                "index": 4,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_ACCOUNT_NO",
                "index": 5,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_DUE",
                "index": 8,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_CHANNEL_ID",
                "index": 11,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_DESCR",
                "index": 15,
                "purpose": 0
            },
            {
                "fieldName": "ALLOCATION",
                "index": 2,
                "purpose": 0
            },
            {
                "fieldName": "DEFFERED_ALLOCATION",
                "index": 3,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_FIRST_NAME",
                "index": 6,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_LAST_NAME",
                "index": 7,
                "purpose": 0
            },
            {
                "fieldName": "PIN_FLD_EFFECTIVE_T",
                "index": 9,
                "purpose": 1
            },
            {
                "fieldName": "PIN_FLD_ORDER_ID",
                "index": 10,
                "purpose": 1
            }
        ],
        "headerStartRow": 4,
        "headerEndRow": 13,
        "footerStartRow": 0,
        "footerEndRow": 0,
        "batchTemplateRef": {
            "id": "0.0.0.1+-config-batch_templates-payment+597521",
            "uri": null
        }
    }
]
 
Back to Top