Get an Installment Schedule by ID

get

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

Gets the installment schedule with the specified ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The installment schedule information was retrieved successfully.
Body ()
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

500 Response

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

Examples

This example shows how to get an installment schedule 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/installmentManagement/installmentScheduleSpec/0.0.0.1+-installment_schedule+124524'

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.

{
    "id": "0.0.0.1+-installment+124524",
    "href": "http://hostname:port/bcws/webresources/version/installmentManagement/installmentScheduleSpec/0.0.0.1+-installment_schedule+124524",
    "code": "newinstallment",
    "billProfileRef": "0.0.0.1+-billinfo+132545",
    "validFor": {
        "startDateTime": "2021-07-28T00:00:00.000Z",
        "endDateTime": "2021-08-28T00:00:00.000Z"
    },
    "status": "OPEN",
    "billPreference": "IMMEDIATE",
    "installmentPeriod": "MONTHLY",
    "totalAmount": {
        "amount": 1000
    },
    "totalInstallments": 2,
    "customerRef": "0.0.0.1+-account+134849",
    "bills": [
        {
            "billId": "0.0.0.1+-item+105318"
        }
    ],
    "scheduleSpecRef": "0.0.0.1+-config-installment-schedule_spec+82484",
    "installments": [
        {
            "status": "OPEN",
            "dueDate": "2021-07-28T00:00:00.000Z",
            "amount": {
                "amount": 500
            },
            "scheduleRef": "0.0.0.1+-installment+124524",
            "customerRef": "0.0.0.1+-account+134849"
        },
        {
            "status": "OPEN",
            "dueDate": "2021-08-28T00:00:00.000Z",
            "amount": {
                "amount": 500
            },
            "scheduleRef": "0.0.0.1+-installment+124524",
            "customerRef": "0.0.0.1+-account+134849"
        }
    ]
}
Back to Top