a process by which customers are invoiced for their usage, rental and adhoc charges
- Update a specific adhoc bill run
Elevate Bill Run API (1.15)
Results to return per page
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Comma-delimited list of the field(s) to return if only a subset is required
Filter by when the adhoc bill run was closed and reporting began
- https://rest.elevatebilling.com/v1/adhoc-bill-runs
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v1/adhoc-bill-runs?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&billRunStatus=OPEN&closedStartTime=yyyy-MM-ddTHH%3Amm%3AssZ+%2C+lt%3Ayyyy-MM-ddTHH%3Amm%3AssZ+%2C+gt%3Ayyyy-MM-ddTHH%3Amm%3AssZ&distributionStartTime=yyyy-MM-ddTHH%3Amm%3AssZ+%2C+lt%3Ayyyy-MM-ddTHH%3Amm%3AssZ+%2C+gt%3Ayyyy-MM-ddTHH%3Amm%3AssZ' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Adhoc bill run name
Adhoc bill run nickname
Bill run summary status
Adhoc product inventory identifiers associated to the adhoc bill run
Rental product inventory identifiers associated to the adhoc bill run
Timestamp when the adhoc bill run was closed and reporting began
[ { "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": [ … ], "rentalProductInventoryIds": [ … ], "closedStartTime": "2019-08-24T14:15:22Z", "distributionStartTime": "2019-08-24T14:15:22Z", "distributionEndTime": "2019-08-24T14:15:22Z" } ]
- https://rest.elevatebilling.com/v1/adhoc-bill-runs/{adhoc_bill_run_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v1/adhoc-bill-runs/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Adhoc bill run found
Adhoc bill run name
Adhoc bill run nickname
Bill run summary status
Adhoc product inventory identifiers associated to the adhoc bill run
Rental product inventory identifiers associated to the adhoc bill run
Timestamp when the adhoc bill run was closed and reporting began
{ "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 ], "closedStartTime": "2019-08-24T14:15:22Z", "distributionStartTime": "2019-08-24T14:15:22Z", "distributionEndTime": "2019-08-24T14:15:22Z" }
Request
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
The JSON Patch operation to be performed
- https://rest.elevatebilling.com/v1/adhoc-bill-runs/{adhoc_bill_run_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v1/adhoc-bill-runs/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/summaryStatus",
"value": "REPORTING"
},
{
"op": "replace",
"path": "/invoiceDate",
"value": "2023-02-04"
},
{
"op": "replace",
"path": "/nickname",
"value": "Maintenance Charge"
}
]'Success
Adhoc bill run name
Adhoc bill run nickname
Bill run summary status
Adhoc product inventory identifiers associated to the adhoc bill run
Rental product inventory identifiers associated to the adhoc bill run
Timestamp when the adhoc bill run was closed and reporting began
{ "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 ], "closedStartTime": "2019-08-24T14:15:22Z", "distributionStartTime": "2019-08-24T14:15:22Z", "distributionEndTime": "2019-08-24T14:15:22Z" }