Get Bill Items for a Bill

get

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

Gets the bill items that are associated with the specified bill. You can optionally specify to retrieve only open, pending, closed, or all bill items for the bill.

Request

Path Parameters
Query Parameters
  • showTransferDetails is added to get transfer out and into details of the item
  • The type of bill items to retrieve:
    • open retrieves all open bill items.
    • pending retrieves all pending bill items.
    • closed retrieves all closed bill items.
    • all retrieves all bill items. This is the default.

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

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to get a bill's open bill items 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/bill/0.0.0.1+-bill+211720?type=open'

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