a process by which customers are invoiced for their usage, rental and adhoc charges
- Get a specific adhoc bill run
Elevate Bill Run API (1.9)
- 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' \
-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
[ { "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": [ … ] } ]
- 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
{ "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 ] }
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
{ "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 ] }