Get Collections Scenarios

get

/bcws/webresources/v1.0/collections/scenarios

Gets all collections scenarios in the system. You can optionally use the id query parameter to get a specific collections scenario.

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The collections scenarios were returned successfully.
Body ()
Root Schema : configurations
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : flags
Type: array
A flag.
Show Source
Nested Schema : keyvals
Type: array
A set of key-value pairs.
Show Source
Nested Schema : mapping
Type: array
A mapping.
Show Source
Nested Schema : thresholds
Type: array
A threshold. The minimum required parameters are: key and value.
Show Source
Nested Schema : Flags
Type: object
A flag.
Show Source
Nested Schema : Keyvals
Type: object
A set of key-value pairs.
Show Source
Nested Schema : Mapping
Type: object
A mapping.
Show Source
Nested Schema : map
Type: array
A map.
Show Source
Nested Schema : Map
Type: object
A map.
Show Source
Nested Schema : Thresholds
Type: object
A threshold. The minimum required parameters are: key and value.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get the collections scenario with the specified ID 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/collections/scenarios?id=0.0.0.1+-config-collections-scenario+126171'

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. Because an ID was specified in the request, only the corresponding scenario is shown. If no ID is specified, a list of all scenarios is returned.

{
    "extension": null,
    "keyvals": [
        {
            "key": "0.0.0.1+-config-collections-scenario+126171",
            "value": "tenDaysLate",
            "desc": "If payment is late by 10 days then move to collections",
            "version": null
        }
    ],
    "flags": [],
    "thresholds": [],
    "mapping": []
}
Back to Top