Get Collections and Aging Buckets for an Account

get

/bcws/webresources/v1.0/collections/account/{id}

Gets collections details, including information about aging buckets, for the specified account ID.

Request

Path Parameters
  • The ID of the account, such as 0.0.0.1+-account+123123, to get collections details for.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The collections and aging bucket details were returned successfully.
Body ()
Root Schema : collectionDetails
Type: object
Show Source
Nested Schema : actions
Type: array
List of collections actions.
Show Source
Nested Schema : agingBuckets
Type: array
List of aging buckets.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Notes
Type: object
Show Source
Nested Schema : Actions
Type: object
List of collections actions.
Show Source
Nested Schema : AgingBuckets
Type: object
List of aging buckets.
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get collections and aging bucket details for an account 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/account/0.0.0.1+-account+130964'

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.

[
    {
        "extension": null,
        "scenarioId": "0.0.0.1+-collections_scenario+268210",
        "billUnitId": "0.0.0.1+-billinfo+128084",
        "overdueAmount": 7413.52,
        "overdueDays": 27,
        "minimumDue": 7403.52,
        "notes": {
            "extension": null,
            "id": "0.0.0.1+-note+278620",
            "accountId": "0.0.0.1+-account+130964",
            "amount": 0,
            "billUnitId": "0.0.0.1+-billinfo+128084",
            "billId": null,
            "closedDate": 1612862929000,
            "count": 3,
            "effectiveDate": 1612791116000,
            "eventId": "0.0.0.0++0",
            "header": "",
            "itemId": "0.0.0.0++0",
            "subType": 901,
            "type": 900,
            "domainId": 10,
            "reasonId": 3,
            "serviceId": "0.0.0.0++0",
            "status": 101,
            "comments": [
                {
                    "csrLoginId": "HeadCSR",
                    "csrFirstName": "Alia",
                    "csrLastName": "Abadi",
                    "csrAccountId": "1234",
                    "externalUser": "CSRPortal",
                    "comment": "Inactivating customer's services.",
                    "trackingId": "",
                    "entryDate": 1612791116000
                },
                {
                    "csrLoginId": "HeadCSR",
                    "csrFirstName": "Alia",
                    "csrLastName": "Abadi",
                    "csrAccountId": "1234",
                    "externalUser": "CSRPortal",
                    "comment": "Bill unit moved to collections.",
                    "trackingId": "",
                    "entryDate": 1612791223000
                },
                {
                    "csrLoginId": "HeadCSR",
                    "csrFirstName": "Alia",
                    "csrLastName": "Abadi",
                    "csrAccountId": "1234",
                    "externalUser": "CSRPortal",
                    "comment": "Customer promised to pay by specified date.",
                    "trackingId": "",
                    "entryDate": 1612792466000
                }
            ]
        },
        "agingBuckets": [
            {
                "days": 2,
                "due": 0
            },
            {
                "days": 0,
                "due": 7413.52
            }
        ],
        "actions": [
            {
                "actionId": "0.0.0.1+-collections_action-inactivate_billinfo+270258",
                "action": "Inactivate Services of Billinfo",
                "dueDate": 1610697600000,
                "completedDate": null,
                "status": 1
            },
            {
                "actionId": "0.0.0.1+-collections_action-late_fee+268402",
                "action": "Move to collections",
                "dueDate": 1610956800000,
                "completedDate": null,
                "status": 1
            },
            {
                "actionId": "0.0.0.1+-collections_action-promise_to_pay+278557",
                "action": "Promise to Pay",
                "dueDate": 1612944000000,
                "completedDate": null,
                "status": 1
            }
        ]
    }
]
Back to Top