Get Bill Details by Bill ID

get

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

Gets details about the specified bill, such as the due amount, the disputed amount, the cycle start and end dates, the current total, and the adjustment amounts.

Request

Path Parameters
  • The bill number such as "B1-111", or the bill ID such as "0.0.0.1+-bill+123456789942001779".
Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The bill details were returned successfully.
Body ()
Root 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 details about a bill 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/0.0.0.1+-bill+254890'

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,
    "id": "0.0.0.1+-bill+254890",
    "accountRef": {
        "id": "0.0.0.1+-account+57615",
        "uri": null
    },
    "adjusted": 0,
    "arBillinfoRef": {
        "id": "0.0.0.1+-billinfo+60687",
        "uri": null
    },
    "billUnitRef": {
        "id": "0.0.0.1+-billinfo+60687",
        "uri": null
    },
    "billNo": "B1-648",
    "creationDate": null,
    "currency": 840,
    "disputed": 0,
    "currentTotal": 10,
    "due": 0,
    "previousTotal": 321.06,
    "totalDue": 0,
    "receivedForBill": 0,
    "arActionsAmtExcludingPayments": 0,
    "dueDate": 1614299861000,
    "cycleEnds": 1611707861000,
    "name": null,
    "parent": null,
    "hierarchySize": null,
    "parentAccountRef": null,
    "parentFirstName": null,
    "parentLastName": null,
    "parentCompanyName": null,
    "parentSalutation": null,
    "cycleStarts": 1610352000000,
    "subordsTotal": 0,
    "transfered": 0,
    "writeoff": 0,
    "amount": 0,
    "billInfoId": "Bill Unit(1)",
    "billPaidDate": 0,
    "recurringCharges": null,
    "billDisputed": null,
    "originalBillNo": null
}
Back to Top