Create an Installment Proposal

post

/bcws/webresources/v1.0/installmentManagement/installmentProposal

Creates an installment proposal.

Request

There are no request parameters for this operation.

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 : TimePeriod
Type: object
Show Source
Nested Schema : InstallmentScheduleBills
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 : TimePeriod
Type: object
Show Source
Nested Schema : InstallmentScheduleBills
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

The installment proposal was created successfully.
Body ()
Root Schema : installmentSchedule
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 create an installment proposal 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/version/installmentManagement/installmentProposal' -H 'content-type: application/json' -d @createInstallmentProposal.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.
  • createInstallmentProposal.json is the JSON file that specifies the installment proposal to create.

Example of Request Body

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

{
    "totalAmount": {
        "amount": "1000",
        "currency": "INR"
    },
    "totalInstallments": "3",
    "bills": [
        {
            "billId": "0.0.0.1+-item+133921"
        }
        
    ],
    "specRef": "0.0.0.1+-config-installment-schedule_spec+82484",
    "customerRef": "0.0.0.1+-account+134849+0"
}

Example of Response Body

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

{
    "validFor": {
        "startDateTime": "2021-08-28T00:00:00.000Z",
        "endDateTime": "2021-10-28T00:00:00.000Z"
    },
    "installmentPeriod": "MONTHLY",
    "totalAmount": {
        "amount": 1000,
        "currency": "INR"
    },
    "totalInstallments": 3,
    "customerRef": "0.0.0.1+-account+134849+0",
    "bills": [
        {
            "billId": "0.0.0.1+-item+133921"
        }
    ],
    "glid": "4",
    "scheduleSpecRef": "0.0.0.1+-config-installment-schedule_spec+82484",
    "installments": [
        {
            "dueDate": "2021-08-28T00:00:00.000Z",
            "amount": {
                "amount": 333.33,
                "currency": "INR"
            }
        },
        {
            "dueDate": "2021-09-28T00:00:00.000Z",
            "amount": {
                "amount": 333.33,
                "currency": "INR"
            }
        },
        {
            "dueDate": "2021-10-28T00:00:00.000Z",
            "amount": {
                "amount": 333.33,
                "currency": "INR"
            }
        }
    ]
}
Back to Top