Update an Installment Schedule

patch

/bcws/webresources/v1.0/installmentManagement/installmentSchedule/{id}

Updates the installment schedule with the specidied ID.

Request

Path Parameters
Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : bills
Type: array
Show Source
Nested Schema : Money
Type: object
Show Source
Nested Schema : installments
Type: array
Show Source
Nested Schema : TimePeriod
Type: object
Show Source
Nested Schema : InstallmentScheduleBills
Type: object
Show Source
Nested Schema : Installment
Type: object
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : bills
Type: array
Show Source
Nested Schema : Money
Type: object
Show Source
Nested Schema : installments
Type: array
Show Source
Nested Schema : TimePeriod
Type: object
Show Source
Nested Schema : InstallmentScheduleBills
Type: object
Show Source
Nested Schema : Installment
Type: object
Show Source
Back to Top

Response

201 Response

The installment schedule was updated successfully.

500 Response

An error occurred. An exception has been raised.
Back to Top

Examples

This example shows how to update an installment schedule by submitting a PATCH request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X PATCH 'http://hostname:port/bcws/webresources/version/installmentManagement/installmentScheduleSpec/0.0.0.1+-installment_schedule+124524' -H 'content-type: application/json' -d @updateInstallmentSchedule.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.
  • updateInstallmentSchedule.json is the JSON file that specifies the details to update.

Example of Request Body

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

{
    "customerRef": "0.0.0.1+-account+134849+0",
    "installments": [
        {
            "id": 0,
            "status" : "OPEN",
            "dueDate": "2021-07-28T21:28:13.921Z",
            "amount": {
                "amount": "700",
                "currency": "INR"
            }
        },
        {
            "id": 1,
            "status" : "OPEN",
            "dueDate": "2021-08-27T21:28:13.922Z",
            "amount": {
                "amount": "300",
                "currency": "INR"
            }
        }
    ]
}

Example of Response Body

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

{
	"id": "[0.0.0.1+-installment_schedule+124524]",
	"href": "http://hostname:port/bcws/webresources/version/installmentManagement/installmentScheduleSpec/0.0.0.1+-installment_schedule+124524"
}
Back to Top