Update a Bill Unit for an Account

put

/bcws/webresources/v1.0/billunits

Updates a bill unit for the specified account.

Request

Query Parameters
Supported Media Types
Request Body - application/xml ()
Root 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: 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 was updated successfully.
Body ()
Root 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 update an account's bill unit by submitting a PUT request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X PUT 'http://hostname:port/bcws/webresources/version/billunits' -H 'content-type: application/json' -d @updateBillUnit.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.
  • updateBillUnit.json is the JSON file that specifies the account and bill unit to update.

Example of Request Body

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

{
   "id":"0.0.0.1+-billinfo+148374",
   "name": "Bill Unit 2",
   "accountingCycleDom": 1,
   "accountingType": 1,
   "invoiceTemplate": "0.0.0.1 /config/business_profile 123829 6",
   "correctiveInvoiceType": 0,
   "creationDate": null,
   "balanceGroups": [],
   "accountRef": {
      "id": "0.0.0.1+-account+85712"
   },
   "paymentInstrumentRef":{
      "id": "0.0.0.1+-payinfo-invoice+119881"
   },
   "currency": 840,
   "parentAccountId": null,
   "parentFirstName": null,
   "parentLastName": null,
   "parentCompanyName": null,
   "parentAccountNumber": null,
   "billingFrequencyInMonths": 1,
   "paymentInstrumentName": null,
   "paymentType": 10001,
   "paymentMethod": null,
   "arBillUnitRef": {}
}

Example of Response

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

{
   "extension": null,
   "id": "0.0.0.1+-billinfo+148374",
   "name": "Bill Unit 2",
   "accountRef": {
      "id": "0.0.0.1+-account+85712",
      "uri": null
   },
   "accountingCycleDom": 1,
   "accountingType": 1,
   "balanceGroups": [],
   "paymentInstrumentRef": {
      "id": "0.0.0.1+-payinfo-invoice+119881",
      "uri":null
   },
   "currency": 840,
   "currencySecondary": 0,
   "status": null,
   "arBillUnitRef": {
      "id": "0.0.0.1+-billinfo+148374",
      "uri": null
   },
   "parentBillUnitName": "Bill Unit 2",
   "parentAccountId": null,
   "parentFirstName": null,
   "parentLastName": null,
   "parentCompanyName":null,
   "parentSalutation": null,
   "parentAccountNumber": null,
   "invoiceTemplate": "0.0.0.1 /config/business_profile 123829 6",
   "businessProfile": null,
   "wholesaleBilling": null,
   "correctiveInvoiceType": 0,
   "lastModified": 1612766964000,
   "creationDate": null,
   "accountingCyclesUntilBillCycleEnds": null,
   "billForCurrentCycleRef": {
      "id": "0.0.0.1+-bill+259462",
      "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": 21,
   "exemptFromCollections": null,
   "scenarioRef": null,
   "numSuppressedCycles": null,
   "suppressed": null,
   "suppressionCyclesLeft": null,
   "collectionDate": null,
   "paymentInstrumentName": "10001 8765789",
   "collectionDetailsRef": null,
   "inCollections": null,
   "paymentMethod": null,
   "paymentType": 10001,
   "totalChildAccounts": null
}
Back to Top