Get Bills by Bill Unit

get

/bcws/webresources/v1.0/bills/billunit/{id}

Gets all bills for the bill unit that matches the query criteria.

Request

Path Parameters
Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The list of bills or a single bill in progress was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : bill
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get the bills for a specified bill unit 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/bills/billunit/0.0.0.1+-billinfo+78769?count=2&order=asc'
  • 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 the request includes the count query parameter set to 2 and the order query parameter set to asc, the response shows only two bills listed in ascending bill number order (that is, bill B1-2 followed by bill B1-3).

[
    {
        "extension": null,
        "id": "0.0.0.1+-bill+80817",
        "accountRef": {
            "id": "0.0.0.1+-account+81329",
            "uri": null
        },
        "adjusted": -201,
        "arBillinfoRef": {
            "id": "0.0.0.1+-billinfo+78769",
            "uri": null
        },
        "billUnitRef": {
            "id": "0.0.0.1+-billinfo+78769",
            "uri": null
        },
        "billNo": "B1-2",
        "creationDate": null,
        "currency": null,
        "disputed": 0,
        "currentTotal": 25.9,
        "due": -135.05,
        "previousTotal": 0,
        "totalDue": 25.90,
        "receivedForBill": -25.90,
        "arActionsAmtExcludingPayments": -198.98,
        "dueDate": 1592118000000,
        "cycleEnds": 1589526000000,
        "name": null,
        "parent": null,
        "hierarchySize": 0,
        "parentAccountRef": null,
        "parentFirstName": null,
        "parentLastName": null,
        "parentCompanyName": null,
        "parentSalutation": null,
        "cycleStarts": 1586934000000,
        "subordsTotal": 0,
        "transfered": -63.93,
        "writeoff": 0,
        "amount": 0,
        "billInfoId": "Bill Unit(1)",
        "billPaidDate": 0,
        "recurringCharges": null,
        "billDisputed": null,
        "originalBillNo": null
    },
    {
        "extension": null,
        "id": "0.0.0.1+-bill+83939",
        "accountRef": {
            "id": "0.0.0.1+-account+81329",
            "uri": null
        },
        "adjusted": 0,
        "arBillinfoRef": {
            "id": "0.0.0.1+-billinfo+78769",
            "uri": null
        },
        "billUnitRef": {
            "id": "0.0.0.1+-billinfo+78769",
            "uri": null
        },
        "billNo": "B1-3",
        "creationDate": null,
        "currency": null,
        "disputed": 0,
        "currentTotal": 0,
        "due": 0,
        "previousTotal": 25.9,
        "totalDue": 0,
        "receivedForBill": 0,
        "arActionsAmtExcludingPayments": 0,
        "dueDate": 1592464049000,
        "cycleEnds": 1589872049000,
        "name": null,
        "parent": null,
        "hierarchySize": 0,
        "parentAccountRef": null,
        "parentFirstName": null,
        "parentLastName": null,
        "parentCompanyName": null,
        "parentSalutation": null,
        "cycleStarts": 1589526000000,
        "subordsTotal": 0,
        "transfered": 0,
        "writeoff": 0,
        "amount": 0,
        "billInfoId": "Bill Unit(1)",
        "billPaidDate": 0,
        "recurringCharges": null,
        "billDisputed": null,
        "originalBillNo": null
    }
]
Back to Top