Use case 1 configuration through API
Configure use case 1 through the API by setting bill run, invoice, and target date parameters to achieve scheduled results.
To achieve the scheduled results of use case 1, configure the following fields through the Create a bill run operation.
-
Bill run date settings:
-
repeatFrom:2024-04-25 -
repeatType:Monthly
-
-
Invoice date settings:
-
invoiceDate:2024-04-25
-
-
Target date settings:
-
targetDateMonthOffset:0 -
targetDateDayofMonth:31
-
The logic is as below:
-
Since you want to schedule the invoice date to recur on the 25th of each month, set the
invoiceDateto2024-04-25. -
Since you want to schedule the bill run date and target date in the same month, that is, the scheduled target dates have the same month offset 0 from monthly scheduled bill run dates, set the
targetDateMonthOffsetto0. -
Since you want to schedule the target date to recur on the end day of each month, set the
targetDateDayofMonthto31.
Since April only has 30 days, when you set the targetDateDayofMonth to 31 , Zuora identifies that you want to schedule the target date to recur on the end day of the month rather than the 30th of the month. You can follow the same setting for February, which has only 28 or 29 days.
Request API example
|
Request |
|
|
Request Body |
|