Close, reopen, and move an adhoc bill run to the next step. To fully close the adhoc bill run please initially patch the summaryStatus to REPORTING. To generate invoices of a CLOSED adhoc bill run, PATCH the summaryStatus to FULL_INVOICES. To distribute and finalise the adhoc bill run having generated invoices, PATCH the summaryStatus to DISTRIBUTION. You can monitor the progress of the bill run summary state by doing a GET and looking at the summaryStatusPercentage. Please refer to the examples
A set of JSONPatch operations to be performed
Success
Invalid Request
Unauthorized
Forbidden
Not Found
[- {
- "op": "replace",
- "path": "/summaryStatus",
- "value": "REPORTING"
}, - {
- "op": "replace",
- "path": "/invoiceDate",
- "value": "2023-02-04"
}, - {
- "op": "replace",
- "path": "/nickname",
- "value": "Maintenance Charge"
}
]
{- "id": 1,
- "name": "string",
- "nickname": "string",
- "created": "2019-08-24",
- "invoiceDate": "2019-08-24",
- "billRunStatus": "OPEN",
- "summaryStatus": "PROPERTIES",
- "summaryStatusPercentage": 100,
- "billingUserAdminId": 1,
- "revenueInMajorCurrency": 1,
- "adhocProductInventoryIds": [
- 1
], - "rentalProductInventoryIds": [
- 1
]
}