Get Bill Units for an Account

get

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

Gets the bill units for the account that matches the specified ID.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The bill unit was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : schema
Type: object
A bill unit.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : balanceGroups
Type: array
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : PaymentMethod
Type: object
Show Source
Nested Schema : BalanceGroup
Type: object
Show Source
Nested Schema : balances
Type: array
The list of balances associated with the balance group.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : services
Type: array
Show Source
Nested Schema : Balances
Type: object
The list of balances associated with the balance group.
Show Source
Nested Schema : subBalances
Type: array
Show Source
Nested Schema : tempCreditLimit
Type: array
Show Source
Nested Schema : SubBalances
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : TempCreditLimit
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ServiceType
Type: object
Show Source
Nested Schema : aliasList
Type: array
The list of aliases associated with the service.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : AliasList
Type: object
The list of aliases associated with the service.
Show Source
Nested Schema : CreditCardType
Type: object
Show Source
Nested Schema : DirectDebitType
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : InvoiceType
Type: object
Show Source
Nested Schema : SepaType
Type: object
Show Source
Nested Schema : Details
Type: object
The offer details.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : extension
Type: object
The extended attributes.
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 the bill units for a specified 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/billunits/account/0.0.0.1+-account+57615'

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+-billinfo+60687",
        "name": "Bill Unit(1)",
        "accountRef": {
            "id": "0.0.0.1+-account+57615",
            "uri": null
        },
        "accountingCycleDom": 11,
        "accountingType": 2,
        "balanceGroups": [],
        "paymentInstrumentRef": {
            "id": "0.0.0.1+-payinfo-invoice+59663",
            "uri": null
        },
        "currency": 840,
        "currencySecondary": 0,
        "status": null,
        "arBillUnitRef": {
            "id": "0.0.0.1+-billinfo+60687",
            "uri": null
        },
        "parentBillUnitName": null,
        "parentAccountId": null,
        "parentFirstName": null,
        "parentLastName": null,
        "parentCompanyName": null,
        "parentSalutation": null,
        "parentAccountNumber": null,
        "invoiceTemplate": null,
        "businessProfile": null,
        "wholesaleBilling": null,
        "correctiveInvoiceType": null,
        "lastModified": 1611950046000,
        "creationDate": null,
        "accountingCyclesUntilBillCycleEnds": null,
        "billForCurrentCycleRef": {
            "id": "0.0.0.1+-bill+254506",
            "uri": null
        },
        "defaultBillUnit": null,
        "parentBillUnit": false,
        "billingFrequencyInMonths": 1,
        "accountingCycleStart": null,
        "accountingCycleEnd": null,
        "lastActualBillRef": null,
        "lastActualBillDate": null,
        "lastBillFromBillingRef": null,
        "billingCycleStart": 1610352000000,
        "billingCycleEnd": 1613030400000,
        "segment": null,
        "daysInBillCycle": null,
        "daysRemainingInBillCycle": null,
        "exemptFromCollections": null,
        "scenarioRef": null,
        "numSuppressedCycles": null,
        "suppressed": null,
        "suppressionCyclesLeft": null,
        "collectionDate": null,
        "paymentInstrumentName": "10001 1234",
        "collectionDetailsRef": null,
        "inCollections": null,
        "paymentMethod": null,
        "paymentType": 10001,
        "totalChildAccounts": 0
    },
    {
        "extension": null,
        "id": "0.0.0.1+-billinfo+151613",
        "name": "BU-fr",
        "accountRef": {
            "id": "0.0.0.1+-account+57615",
            "uri": null
        },
        "accountingCycleDom": 1,
        "accountingType": 1,
        "balanceGroups": [],
        "paymentInstrumentRef": {
            "id": "0.0.0.1+-payinfo-invoice+59663",
            "uri": null
        },
        "currency": 840,
        "currencySecondary": 0,
        "status": null,
        "arBillUnitRef": {
            "id": "0.0.0.1+-billinfo+151613",
            "uri": null
        },
        "parentBillUnitName": null,
        "parentAccountId": null,
        "parentFirstName": null,
        "parentLastName": null,
        "parentCompanyName": null,
        "parentSalutation": null,
        "parentAccountNumber": null,
        "invoiceTemplate": null,
        "businessProfile": null,
        "wholesaleBilling": null,
        "correctiveInvoiceType": null,
        "lastModified": 1612339374000,
        "creationDate": null,
        "accountingCyclesUntilBillCycleEnds": null,
        "billForCurrentCycleRef": {
            "id": "0.0.0.1+-bill+258980",
            "uri": null
        },
        "defaultBillUnit": null,
        "parentBillUnit": false,
        "billingFrequencyInMonths": 1,
        "accountingCycleStart": null,
        "accountingCycleEnd": null,
        "lastActualBillRef": null,
        "lastActualBillDate": null,
        "lastBillFromBillingRef": null,
        "billingCycleStart": 1612166400000,
        "billingCycleEnd": 1614585600000,
        "segment": null,
        "daysInBillCycle": null,
        "daysRemainingInBillCycle": null,
        "exemptFromCollections": null,
        "scenarioRef": null,
        "numSuppressedCycles": null,
        "suppressed": null,
        "suppressionCyclesLeft": null,
        "collectionDate": null,
        "paymentInstrumentName": "10001 1234",
        "collectionDetailsRef": null,
        "inCollections": null,
        "paymentMethod": null,
        "paymentType": 10001,
        "totalChildAccounts": 0
    }
]
Back to Top