Generate a Bill Unit Summary

post

/bcws/webresources/v1.0/billunits/bill-unit-summary

Create a summary of the bill units that match the specified IDs.

Request

Query Parameters
Supported Media Types
Request Body - application/xml ()
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.
Request Body - application/json ()
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.
Back to Top

Response

Supported Media Types

200 Response

The bill unit summary information was returned successfully.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : accountSummary
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ResourceRef
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to generate a bill unit summary by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST 'http://hostname:port/bcws/webresources/v1.0/billunits/bill-unit-summary' -H 'content-type: application/json' -d @billUnitSummary.json

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.
  • billUnitSummary.json is the JSON file that provides information about the bill units.

Example of Request Body

This example shows the contents of the billUnitSummary.json file sent as the request body.

[
    {
        "extension": null,
        "id": "0.0.0.1+-billinfo+78769",
        "name": "Bill Unit(1)",
        "accountRef": {
            "id": "0.0.0.1+-account+81329",
            "uri": null
        },
        "accountingCycleDom": 11,
        "accountingType": 2,
        "balanceGroups": [
            {
                "extension": null,
                "id": "0.0.0.1+-balance_group+77937",
                "name": null,
                "services": [],
                "balances": [
                    {
                        "currentBalance": -1301.52,
                        "creditFloor": null,
                        "creditLimit": null,
                        "creditThresholds": 0,
                        "formattedCreditThresholds": null,
                        "creditThresholdsFixed": "",
                        "expiredBeforeUsing": null,
                        "subBalances": [],
                        "resourceId": 840
                    },
                    {
                        "currentBalance": 2000,
                        "creditFloor": null,
                        "creditLimit": 0,
                        "creditThresholds": 0,
                        "formattedCreditThresholds": null,
                        "creditThresholdsFixed": "",
                        "expiredBeforeUsing": null,
                        "subBalances": [],
                        "resourceId": 1000095
                    }
                ],
                "elem": null
            }
            ],
            "paymentInstrumentRef": {
              "id": "0.0.0.1+-payinfo-invoice+84306",
              "uri": null
            },
            "currency": 840,
            "currencySecondary": 0,
            "status": null,
            "arBillUnitRef": {
              "id": "0.0.0.1+-billinfo+78769",
              "uri": null
            },
            "parentBillUnitName": "Bill Unit(1)",
            "parentAccountId": null,
            "parentFirstName": null,
            "parentLastName": null,
            "parentCompanyName": null,
            "parentSalutation": null,
            "parentAccountNumber": null,
            "invoiceTemplate": null,
            "businessProfile": "0.0.0.0++0",
            "wholesaleBilling": null,
            "correctiveInvoiceType": null,
            "lastModified": 1611840097000,
            "creationDate": null,
            "accountingCyclesUntilBillCycleEnds": null,
            "billForCurrentCycleRef": {
              "id": "0.0.0.1+-bill+209369",
              "uri": null
            },
            "defaultBillUnit": true,
            "parentBillUnit": false,
            "billingFrequencyInMonths": 1,
            "accountingCycleStart": null,
            "accountingCycleEnd": null,
            "lastActualBillRef": null,
            "lastActualBillDate": null,
            "lastBillFromBillingRef": null,
            "billingCycleStart": 1607673600000,
            "billingCycleEnd": 1610352000000,
            "segment": "-18",
            "daysInBillCycle": 31,
            "daysRemainingInBillCycle": 0,
            "exemptFromCollections": null,
            "scenarioRef": null,
            "numSuppressedCycles": null,
            "suppressed": null,
            "suppressionCyclesLeft": null,
            "collectionDate": null,
            "paymentInstrumentName": "10001 123",
            "collectionDetailsRef": null,
            "inCollections": false,
            "paymentMethod": null,
            "paymentType": 10001,
            "totalChildAccounts": null
          },
          {
            "extension": null,
            "id": "0.0.0.1+-billinfo+79498",
            "name": "bu2",
            "accountRef": {
              "id": "0.0.0.1+-account+81329",
              "uri": null
            },
            "accountingCycleDom": 1,
            "accountingType": 1,
            "balanceGroups": [
              {
                "extension": null,
                "id": "0.0.0.1+-balance_group+79242",
                "name": null,
                "services": [],
                "balances": [
                  {
                    "currentBalance": -20,
                    "creditFloor": null,
                    "creditLimit": null,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 840
                  }
                ],
                "elem": null
              },
              {
                "extension": null,
                "id": "0.0.0.1+-balance_group+199289",
                "name": null,
                "services": [],
                "balances": [
                  {
                    "currentBalance": 4530.5,
                    "creditFloor": null,
                    "creditLimit": null,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 840
                  },
                  {
                    "currentBalance": 2,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000004
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000007
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000010
                  },
                  {
                    "currentBalance": 2,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000012
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000018
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000020
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000023
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000024
                  },
                  {
                    "currentBalance": 211,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000025
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000026
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000027
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000093
                  },
                  {
                    "currentBalance": 1222,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000095
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000098
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000099
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000100
                  },
                  {
                    "currentBalance": 1,
                    "creditFloor": null,
                    "creditLimit": 0,
                    "creditThresholds": 0,
                    "formattedCreditThresholds": null,
                    "creditThresholdsFixed": "",
                    "expiredBeforeUsing": null,
                    "subBalances": [],
                    "resourceId": 1000102
                  }
                ],
                "elem": null
              }
            ],
            "paymentInstrumentRef": {
              "id": "0.0.0.1+-payinfo-invoice+84306",
              "uri": null
            },
            "currency": 840,
            "currencySecondary": 0,
            "status": null,
            "arBillUnitRef": {
              "id": "0.0.0.1+-billinfo+79498",
              "uri": null
            },
            "parentBillUnitName": "bu2",
            "parentAccountId": null,
            "parentFirstName": null,
            "parentLastName": null,
            "parentCompanyName": null,
            "parentSalutation": null,
            "parentAccountNumber": null,
            "invoiceTemplate": null,
            "businessProfile": "0.0.0.0++0",
            "wholesaleBilling": null,
            "correctiveInvoiceType": null,
            "lastModified": 1609852907000,
            "creationDate": null,
            "accountingCyclesUntilBillCycleEnds": null,
            "billForCurrentCycleRef": {
              "id": "0.0.0.1+-bill+203289",
            "uri": null
        },
        "defaultBillUnit": false,
        "parentBillUnit": false,
        "billingFrequencyInMonths": 1,
        "accountingCycleStart": null,
        "accountingCycleEnd": null,
        "lastActualBillRef": null,
        "lastActualBillDate": null,
        "lastBillFromBillingRef": null,
        "billingCycleStart": 1606809600000,
        "billingCycleEnd": 1609488000000,
        "segment": "-28",
        "daysInBillCycle": 31,
        "daysRemainingInBillCycle": -28,
        "exemptFromCollections": null,
        "scenarioRef": null,
        "numSuppressedCycles": null,
        "suppressed": null,
        "suppressionCyclesLeft": null,
        "collectionDate": null,
        "paymentInstrumentName": "10001 123",
        "collectionDetailsRef": null,
        "inCollections": false,
        "paymentMethod": null,
        "paymentType": 10001,
        "totalChildAccounts": null
    }
]

Example of Response Body

This shows an example of the contents of the response body in JSON format.

[
    {
        "extension": null,
        "pendingDue": -33.50,
        "pendingDueDate": 1612944000000,
        "unallocatedPayments": -286.95,
        "unallocatedAdjustments": -1020.5,
        "billInProgressDue": 0,
        "dueNow": 21.95,
        "numBills": 9,
        "disputed": 0,
        "paymentTypeId": null
    },
    {
        "extension": null,
        "pendingDue": 4530.5,
        "pendingDueDate": 1614758400000,
        "unallocatedPayments": -20,
        "unallocatedAdjustments": null,
        "billInProgressDue": 0,
        "dueNow": 2287.5,
        "numBills": 9,
        "disputed": 0,
        "paymentTypeId": null
    }
]
Back to Top