Get Bill Items for an Account

get

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

Gets all bill items for the specified account.

Request

Path Parameters
Query Parameters
  • The number of bill items to return.
  • The additional details to include in the response. Enter all to return bill items for the parent account and all of its child accounts. Enter childonly to return bill items for only the child accounts associated with a parent account.
  • The type of bill items to retrieve:
    • open retrieves all bill items regardless of the due date.
    • past retrieves only bill items whose due date has already passed.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The bill items were returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : billItem
Type: object
The bill item details.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : aliasList
Type: array
The list of aliases in the bill item.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : transferInto
Type: array
Show Source
Nested Schema : transferOut
Type: array
Show Source
Nested Schema : AliasList
Type: object
The list of aliases associated with the service.
Show Source
Nested Schema : TransferInto
Type: object
Show Source
Nested Schema : TransferOut
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get two bill items with a past due date 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/items/account/0.0.0.1+-account+57615?type=past&count=2'

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+-item-cycle_forward+215497",
        "name": "Cycle forward",
        "type": "/item/cycle_forward",
        "accountRef": {
            "id": "0.0.0.1+-account+57615",
            "uri": null
        },
        "arBillinfoRef": null,
        "arBillRef": {
            "id": "0.0.0.1+-bill+211720",
            "uri": null
        },
        "billRef": {
            "id": "0.0.0.1+-bill+211720",
            "uri": null
        },
        "serviceRef": {
            "id": "0.0.0.1+-service-ip+166570",
            "uri": null
        },
        "billinfoRef": null,
        "creationDate": null,
        "closedDate": null,
        "currency": null,
        "deltaDue": null,
        "disputed": 0,
        "adjusted": 0,
        "due": 29.95,
        "dueDate": 1610265600000,
        "itemNo": "B1-646,3",
        "login": "IP_Service",
        "received": 0,
        "transfered": 0,
        "writeoff": 0,
        "amount": null,
        "discount": null,
        "billNo": "B1-646",
        "billInfoId": "Bill Unit(1)",
        "accountName": null,
        "firstName": null,
        "lastName": null,
        "serviceTypeName": "ip",
        "accountNumber": "0.0.0.1-57615",
        "aliasList": [],
        "status": null
    },
    {
        "extension": null,
        "id": "0.0.0.1+-item-cycle_forward+216105",
        "name": "Cycle forward",
        "type": "/item/cycle_forward",
        "accountRef": {
            "id": "0.0.0.1+-account+57615",
            "uri": null
        },
        "arBillinfoRef": null,
        "arBillRef": {
            "id": "0.0.0.1+-bill+211720",
            "uri": null
        },
        "billRef": {
            "id": "0.0.0.1+-bill+211720",
            "uri": null
        },
        "serviceRef": {
            "id": "0.0.0.1+-service-ip+156801",
            "uri": null
        },
        "billinfoRef": null,
        "creationDate": null,
        "closedDate": null,
        "currency": null,
        "deltaDue": null,
        "disputed": 0,
        "adjusted": 0,
        "due": 10,
        "dueDate": 1610265600000,
        "itemNo": "B1-646,6",
        "login": "ip0",
        "received": 0,
        "transfered": 0,
        "writeoff": 0,
        "amount": null,
        "discount": null,
        "billNo": "B1-646",
        "billInfoId": "Bill Unit(1)",
        "accountName": null,
        "firstName": null,
        "lastName": null,
        "serviceTypeName": "ip",
        "accountNumber": "0.0.0.1-57615",
        "aliasList": [],
        "status": null
    }
]
Back to Top