Put /api/v202104/batch/{batchId}/distributeAccountCharges

Operation: DistributeAccountChargesToMetersForBillsInBatchV202104 Permissions: BillsAndBatches (Edit)

Summary

For each bill in the provided batch which has account-level charges, distribute these account charges amongst the meters on the bill.
This is done proportionally by meter use or cost, depending on the split basis.
Maximum of 10000 bills can be processed at one time.

Path and Query Parameters

Parameter Description Type Location
batchId ID for the batch containing bills for which account charges will be distributed to metersRequired integer Path

Request Body Parameters

Content-Type: application/json

Type Reference: DistributeAccountChargesBaseV202104

Parameter Description Type
splitBasis Determines if account charges should be assigned proportionally based on the usage values of each meter or based on the bill cost from each meter.
If not provided, defaults to “Usage”. One of ‘Usage’, ‘Cost’, “ Case sensitive Required (defined)
integer

Request Body

{
  "splitBasis": 1
}

Response Parameters

HTTP 200


Body Parameters

Content Type: application/json

Type Reference: UpdateResult

Parameter Description Type
selected Required (defined) integer
updated Required (defined) integer

Responses

HTTP 200

Body

Content Type: application/json
{
  "selected": 1,
  "updated": 1
}