Use case 3 configuration through API
Configure use case 3 by setting bill run, invoice, and target date parameters through the API to achieve scheduled results.
To achieve the scheduled results of use case 3, configure the following fields through the Create a bill run operation.
-
Bill run date settings:
-
repeatFrom:2024-06-30 -
repeatType:Monthly -
monthlyOnEndOfMonth:True
-
-
Invoice date settings:
-
invoiceDateMonthOffset:1 -
invoiceDateDayofMonth:1
-
-
Target date settings:
-
targetDateMonthOffset:1 -
targetDateDayofMonth:1
-
The logic is as below:
-
Since you want to schedule the bill run date to recur on the end of each month, set the
repeatFromto end date of the month andmonthlyOnEndOfMonthto True. -
Since you want to schedule the invoice date and target date in the next month from the monthly schedule bill run date, that is, the scheduled invoice and target dates have the same offset 1 from monthly scheduled bill run dates, set the
invoiceDateMonthOffsetandtargetDateMonthOffsetto1. -
Since you want to schedule the invoice and target dates to recur on the 1st of each month, set the
invoiceDateDayofMonthto1.
Request API example
|
Request |
|
|
Request Body |
|