Get Bills by Bill Unit
/bcws/webresources/v1.0/bills/billunit/{id}
Request
-
id(required): string
The ID of the bill unit
-
count: integer(int32)
The number of bills to get.
-
expand: string
The type of bills to get, which is either all (parent as well as children) or childonly (children only).
-
order: string
The sort order, which is either ascending (asc) or descending (desc). The default is descending.
-
retrieveRecurringCharges: string
Whether to retrieve recurring charges of a bill (true) or not (false).
-
type: string
The type of bill, which can be inprogress, open, or all. The default is open.
There's no request body for this operation.
Back to TopResponse
- application/xml
- application/json
200 Response
object
-
accountRef: object
ResourceRef
-
adjusted: number
The amount on the bill that was adjusted.
-
amount: number
The amount to be allocated.
-
arActionsAmtExcludingPayments: number
The total of all accounts receivable actions applied toward the bill, excluding any payments.
-
arBillinfoRef: object
ResourceRef
-
billDisputed: boolean
Whether the bill includes a disputed item (true) or not (false).
-
billInfoId: string
The ID of the bill unit associated with the bill.
-
billNo: string
The bill number.
-
billPaidDate(required): string
(date-time)
The date and time the bill was paid.
-
billUnitRef: object
ResourceRef
-
creationDate(required): string
(date-time)
The date and time the bill was created.
-
currency: integer
(int32)
The type of currency associated with the bill.
-
currentTotal: number
The current total of the bill.
-
cycleEnds: string
(date-time)
The date and time the billing cycle ends.
-
cycleStarts: string
(date-time)
The date and time the billing cycle starts.
-
disputed: number
The amount in the bill that is in dispute.
-
due: number
The amount due for the bill.
-
dueDate: string
(date-time)
The date and time the bill is due.
-
extension: object
extension
The extended attributes.
-
hierarchySize: integer
(int32)
The number of bills in a hierarchy.
-
id(required): string
The ID.
-
name: string
he name of the bill.
-
originalBillNo: string
The bill number associated with the original bill.
-
parent: object
ResourceRef
-
parentAccountNumber: string
The account number of the parent associated with the bill.
-
parentAccountRef: object
ResourceRef
-
parentCompanyName(required): string
The company name of the parent associated with the bill.
-
parentFirstName: string
The first name of the parent associated with the bill.
-
parentLastName: string
The last name of the parent associated with the bill.
-
parentSalutation(required): string
The title of the parent associated with the bill.
-
previousTotal: number
The previous total for the bill.
-
receivedForBill: number
The payment amount received for the bill.
-
recurringCharges: number
The total amount of all recurring charges in the bill.
-
subordsTotal: number
The total amount from all subordinates, if the bill is a parent in a billing hierarchy.
-
totalDue: number
The total due for the bill.
-
transfered: number
The amount in the bill that has been transferred.
-
writeoff: number
The amount in the bill that has been written off.
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
object
500 Response
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
}
]