Update a Batch Template

put

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

Updates the batch template in the BRM database.

Request

Path Parameters
Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

The batch template was updated successfully
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to update a batch template in the BRM database by submitting a PUT request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X PUT 'http://hostname:port/bcws/webresources/v1.0/batchpayments/batchtemplates/0.0.0.1+-config-batch_templates-refund+601859' -H 'content-type: application/json' -d @update.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.
  • update.json is the JSON file that specifies the template to create.

Example of Request Body

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

{
    "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
    }
}

Example of Response Body

If successful, the response code 200 is returned with no response body.

Back to Top