Submit a Refund Batch

post

/bcws/webresources/v1.0/batchrefund/submit

Submits each validated record in the refund batch and returns the records with updated status.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : BatchInfoType
Type: object
Show Source
Nested Schema : batchRecords
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : BatchRecordsType
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : billinfo
Type: array
Show Source
Nested Schema : billItem
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : payInfo
Type: object
The payment information.
Nested Schema : BillinfoType
Type: object
Show Source
Nested Schema : bills
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : items
Type: array
Show Source
Nested Schema : BillItemType
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Back to Top

Response

Supported Media Types

200 Response

The submission process is complete.
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : BatchInfoType
Type: object
Show Source
Nested Schema : batchRecords
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : BatchRecordsType
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : billinfo
Type: array
Show Source
Nested Schema : billItem
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : payInfo
Type: object
The payment information.
Nested Schema : BillinfoType
Type: object
Show Source
Nested Schema : bills
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : items
Type: array
Show Source
Nested Schema : BillItemType
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to submit each validated record in the refund batch and return the records with updated status 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/batchrefund/submit' -H 'content-type: application/json' -d @submit.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.
  • submit.json is the JSON file that specifies the items to submit.

Example of Request Body

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

{
    "batchInformation": {
        "batchCurrency": 840,
        "batchId": "",
        "batchTypeCode": 10011,
        "batchDate": 1712290649000,
        "lockBoxId": "",
        "lockBoxDate": null
    },
    "batchRecords": [
        {
            "extension": null,
            "accountNumber": "0.0.0.1-136236",
            "accountCurrency": null,
            "paymentId": null,
            "accountRef": {
                "id": "0.0.0.1+-account+136236",
                "uri": null
            },
            "billNumber": "B1-7",
            "allocationDeferred": null,
            "amount": 2,
            "payInfo": {
                "PIN_FLD_EFFECTIVE_T": 1712290649000,
                "PIN_FLD_RECEIPT_NO": "QBX123"
            },
            "status": 1,
            "statusDescription": 0,
            "comment": null
        },
        {
            "extension": null,
            "accountNumber": "0.0.0.1-66744",
            "accountCurrency": null,
            "paymentId": null,
            "accountRef": {
                "id": "0.0.0.1+-account+66744",
                "uri": null
            },
            "billNumber": "",
            "allocationDeferred": null,
            "amount": 2,
            "payInfo": {
                "PIN_FLD_EFFECTIVE_T": 1712290649000,
                "PIN_FLD_RECEIPT_NO": "REC123"
            },
            "status": 1,
            "statusDescription": 0,
            "comment": null
        }
    ]
}

Example of Response Body

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

{
    "extension": null,
    "batchInformation": {
        "extension": null,
        "lockBoxId": "",
        "lockBoxDate": null,
        "batchCurrency": 840,
        "batchId": "T1,83",
        "batchTypeCode": "10011",
        "batchTypeName": null,
        "batchDate": 1712290649000,
        "batchTotalRecords": 0
    },
    "batchRecords": [
        {
            "extension": null,
            "accountNumber": "0.0.0.1-136236",
            "accountCurrency": null,
            "paymentId": null,
            "accountRef": {
                "id": "0.0.0.1+-account+136236",
                "uri": null
            },
            "billNumber": "B1-7",
            "allocationDeferred": null,
            "amount": 2,
            "payInfo": {
                "PIN_FLD_EFFECTIVE_T": 1712290649000,
                "PIN_FLD_RECEIPT_NO": "QBX123"
            },
            "status": 9,
            "statusDescription": 0,
            "comment": null
        },
        {
            "extension": null,
            "accountNumber": "0.0.0.1-66744",
            "accountCurrency": null,
            "paymentId": null,
            "accountRef": {
                "id": "0.0.0.1+-account+66744",
                "uri": null
            },
            "billNumber": "",
            "allocationDeferred": null,
            "amount": 2,
            "payInfo": {
                "PIN_FLD_EFFECTIVE_T": 1712290649000,
                "PIN_FLD_RECEIPT_NO": "REC123"
            },
            "status": 8,
            "statusDescription": 0,
            "comment": null
        }
    ]
}
Back to Top