Get Collections Details for an Account

get

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

Gets the collections details for all bill units that are in collections for the specified account ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The collections details were returned successfully.
Body ()
Root Schema : accountCollectionDetails
Type: object
Show Source
Nested Schema : billUnitCollectionsDetails
Type: array
The details for a bill unit in collections.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : phonenumbers
Type: array
The list of the account's phone numbers.
Show Source
Nested Schema : BillUnitCollectionsDetails
Type: object
The details for a bill unit in collections.
Show Source
Nested Schema : CollectionsActions
Type: array
The list of collections actions for the account.
Show Source
Nested Schema : Notes
Type: object
Show Source
Nested Schema : CollectionsActions
Type: object
The list of collections actions for the account.
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
Nested Schema : Phonenumbers
Type: object
The list of the account's phone numbers.
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get collections 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/details/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,
    "billUnitCollectionsDetails": [
        {
            "scenarioId": "0.0.0.1+-collections_scenario+268210",
            "billUnitId": "0.0.0.1+-billinfo+128084",
            "billUnitName": "Bill Unit(1)",
            "overdueAmount": 7413.52,
            "minimumPayment": 7403.52,
            "overdueDays": 27,
            "entryDate": 1610611200000,
            "lastPaymentId": null,
            "lastPaymentAmount": null,
            "lastPaymentEffectiveDate": null,
            "currency": 840,
            "collectionAgent": "",
            "scenarioName": "tenDaysOverdue",
            "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
                    }
                ]
            },
            "numberOfTimesInCollections": 2,
            "collectionsGroupId": null,
            "collectionsActions": [
                {
                    "action": "Inactivate Services of Billinfo",
                    "actionId": "0.0.0.1+-collections_action-inactivate_billinfo+270258",
                    "dueDate": 1610697600000,
                    "completedDate": 0,
                    "amount": null,
                    "configCollectionsId": "0.0.0.1+-config-collections-action+823",
                    "status": 1
                },
                {
                    "action": "Move to collections",
                    "actionId": "0.0.0.1+-collections_action-late_fee+268402",
                    "dueDate": 1610956800000,
                    "completedDate": 0,
                    "amount": null,
                    "configCollectionsId": "0.0.0.1+-config-collections-action-custom-late_fee+125732",
                    "status": 1
                },
                {
                    "action": "Promise to Pay",
                    "actionId": "0.0.0.1+-collections_action-promise_to_pay+278557",
                    "dueDate": 1612944000000,
                    "completedDate": 0,
                    "amount": 618,
                    "configCollectionsId": "0.0.0.1+-config-collections-action+825",
                    "status": 1
                }
            ]
        }
    ],
    "accountNumber": "0.0.0.1-130964",
    "accountId": "0.0.0.1+-account+130964",
    "numberOfBillUnitsInCollections": 1,
    "firstName": "Casey",
    "lastName": "Jones",
    "address": "111 West Jackson Boulevard",
    "city": "Chicago",
    "company": "",
    "country": "US",
    "emailAddress": "",
    "state": "IL",
    "zip": "60604",
    "phonenumbers": []
}
Back to Top