Create BillJob
Create a new BillJob to handle asynchronous bill calculations for a specific Organization.
This operation allows you to initiate the processing of bills according to specified parameters. For example, create a BillJob to run only those bills where billingFrequency is MONTHLY. Note that if you want to run a BillJob for all billing frequencies, simply omit the billingFrequency request parameter.
Once created, the BillJob’s progress can be monitored:
- In the Running Tasks panel in the m3ter Console - for more details, see Running Bills Manually
- Queried using the List BillJobs endpoint.
NOTES:
- Consolidated bills. If you’ve already run billing with the Consolidate bills option disabled for your Organization but you then enable it, subsequent Bills for specific bill dates will now start afresh and not update earlier non-consolidated Bills for the same bill date. To avoid any billing conflicts, you might want to archive these earlier versions or delete them entirely.
- Maximum concurrent BillJobs. If you already have 10 BillJobs currently running, and try to create another one, you’ll get an HTTP 429 response (Too many requests). When one of the existing BillJobs has completed, you’ll be able to submit another job
Authorizations
Path Parameters
Body
The version number of the entity:
- Create entity: Not valid for initial insertion of new entity - do not use for Create. On initial Create, version is set at 1 and listed in the response.
- Update Entity: On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
How often Bills are generated.
-
Daily. Starting at midnight each day, covering a twenty-four hour period following.
-
Weekly. Starting at midnight on a Monday morning covering the seven-day period following.
-
Monthly. Starting at midnight on the morning of the first day of each month covering the entire calendar month following.
-
Annually. Starting at midnight on the morning of the first day of each year covering the entire calendar year following.
-
Ad_Hoc. Use this setting when a custom billing schedule is used for billing an Account, such as for billing of Prepayment/Commitment fees using a custom billing schedule.
DAILY, WEEKLY, MONTHLY, ANNUALLY, AD_HOC For accounting purposes, the date set at Organization level to use for external invoicing with respect to billing periods - two options:
FIRST_DAY_OF_NEXT_PERIOD(Default). Used when you want to recognize usage revenue in the following period.LAST_DAY_OF_ARREARS. Used when you want to recognize usage revenue in the same period that it's consumed, instead of in the following period.
For example, if the retrieved Bill was on a monthly billing frequency and the billing period for the Bill is September 2023 and the External invoice date is set at FIRST_DAY_OF_NEXT_PERIOD, then the externalInvoiceDate will be "2023-10-01".
NOTE: To change the externalInvoiceDate setting for your Organization, you can use the Update OrganizationConfig call.
Response
Returns the details of the created BillJob
Defines how often Bills are generated.
-
Daily. Starting at midnight each day, covering a twenty-four hour period following.
-
Weekly. Starting at midnight on a Monday morning covering the seven-day period following.
-
Monthly. Starting at midnight on the morning of the first day of each month covering the entire calendar month following.
-
Annually. Starting at midnight on the morning of the first day of each year covering the entire calendar year following.
-
Ad_Hoc. Use this setting when a custom billing schedule is used for billing an Account, such as for billing of Prepayment/Commitment fees using a custom billing schedule.
DAILY, WEEKLY, MONTHLY, ANNUALLY, AD_HOC For accounting purposes, the date set at Organization level to use for external invoicing with respect to billing periods - two options:
FIRST_DAY_OF_NEXT_PERIOD(Default). Used when you want to recognize usage revenue in the following period.LAST_DAY_OF_ARREARS. Used when you want to recognize usage revenue in the same period that it's consumed, instead of in the following period.
For example, if the retrieved Bill was on a monthly billing frequency and the billing period for the Bill is September 2023 and the External invoice date is set at FIRST_DAY_OF_NEXT_PERIOD, then the externalInvoiceDate will be "2023-10-01".