Get a Batch Template by Template ID

get

/bcws/webresources/v1.0/batchpayments/batchtemplates/{id}

Gets a batch template definition from the BRM database.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The batch template was retrieved successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested 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

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get a batch template definition 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/0.0.0.1+-config-batch_templates-refund+601859'

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": 2,
    "payType": 10011,
    "batchName": "Cash Refund Batch",
    "startRow": 16,
    "delimiter": "\t",
    "consecutive": 0,
    "qualifier": "none",
    "columnLink": [
        {
            "fieldName": "PIN_FLD_PAYMENT_AMOUNT",
            "index": 7,
            "purpose": 0
        },
        {
            "fieldName": "PIN_FLD_BILL_NO",
            "index": 2,
            "purpose": 0
        },
        {
            "fieldName": "PIN_FLD_ACCOUNT_NO",
            "index": 3,
            "purpose": 0
        },
        {
            "fieldName": "PIN_FLD_DESCR",
            "index": 6,
            "purpose": 0
        },
        {
            "fieldName": "PIN_FLD_EFFECTIVE_T",
            "index": 4,
            "purpose": 1
        },
        {
            "fieldName": "PIN_FLD_RECEIPT_NO",
            "index": 5,
            "purpose": 1
        }
    ],
    "headerStartRow": 4,
    "headerEndRow": 13,
    "footerStartRow": 0,
    "footerEndRow": 0,
    "batchTemplateRef": {
        "id": "0.0.0.1+-config-batch_templates-refund+601859",
        "uri": null
    }
}
 
Back to Top