Get a Bill Item

get

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

Gets the bill items that match the specified query parameters.

Request

Path Parameters
Query Parameters
  • The number of bill items to retrieve.
  • Whether to retreive the bill items for the parent bill unit and its child bill units (all) or just the child bill units (childonly).
  • The type of bill items to retrieve: open or past. Open retrieves all bill items irrespective of the due date. Past retrieves only the bill items whose due date has passed.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The bill item was 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 of a bill unit'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/billunit/0.0.0.1+-billinfo+60687?type=open&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+256298",
        "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+215753",
            "uri": null
        },
        "billRef": {
            "id": "0.0.0.1+-bill+215753",
            "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": 1612944000000,
        "itemNo": "B1-647,2",
        "login": "IP_Service",
        "received": 0,
        "transfered": 0,
        "writeoff": 0,
        "amount": null,
        "discount": null,
        "billNo": "B1-647",
        "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+257194",
        "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+215753",
            "uri": null
        },
        "billRef": {
            "id": "0.0.0.1+-bill+215753",
            "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": 1612944000000,
        "itemNo": "B1-647,5",
        "login": "ip0",
        "received": 0,
        "transfered": 0,
        "writeoff": 0,
        "amount": null,
        "discount": null,
        "billNo": "B1-647",
        "billInfoId": "Bill Unit(1)",
        "accountName": null,
        "firstName": null,
        "lastName": null,
        "serviceTypeName": "ip",
        "accountNumber": "0.0.0.1-57615",
        "aliasList": [],
        "status": null
    }
]
Back to Top