Create an Installment Schedule Specification

post

/bcws/webresources/v1.0/installmentManagement/installmentScheduleSpec

Creates an installment schedule specification.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
The installment specification to be created. The minimum required parameters are:
  • maxIntervalDaysNEI
  • maxNumNEI
  • minAmount
  • minPercent
  • name
  • glid
Root Schema : schema
Type: object
Show Source
Nested Schema : qualifiers
Type: array
Show Source
Nested Schema : Qualifier
Type: object
Show Source
Request Body - application/json ()
The installment specification to be created. The minimum required parameters are:
  • maxIntervalDaysNEI
  • maxNumNEI
  • minAmount
  • minPercent
  • name
  • glid
Root Schema : schema
Type: object
Show Source
Nested Schema : qualifiers
Type: array
Show Source
Nested Schema : Qualifier
Type: object
Show Source
Back to Top

Response

201 Response

The installment schedule was created successfully, and the ID of the new installment schedule was returned.

500 Response

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

Examples

This example shows how to create an installment schedule specification 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/installmentScheduleSpec' -H 'content-type: application/json' -d @createInstallmentScheduleSpec.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.
  • createInstallmentScheduleSpec.json is the JSON file that specifies the installment schedule specification to create.

Example of Request Body

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

{
    "name": "New Installment Schedule Spec",
    "glid": "109",
    "minPercent": "",
    "minAmount": "200",
    "descr": "",
    "maxIntervalDaysNEI": "10",
    "maxNumNEI": "20",
    "startsAt": "2021-11-21T00:00:00.000Z",
    "expiresAt": "2022-11-24T00:00:00.000Z",
    "qualifiers": [
        {
            "dataType": "STR",
            "key": "/account.PIN_FLD_ACCOUNT_NO",
            "operator": "EQ",
            "value": "123456"
        },
        {
            "dataType": "STR",
            "key": "/profile.PIN_FLD_NAME",
            "operator": "EQ",
            "value": "ABC"
        }
    ]
}

Example of Response Body

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

{
	"id": "0.0.0.1+-config-installment-schedule_spec+3763164",
	"href": http://hostname:port/bcws/webresources/v1.0/installmentManagement/installmentScheduleSpec/0.0.0.1+-config-installment-schedule_spec+3763164
}
Back to Top