Preview an invoice using subscribe()
Learn how to preview an invoice using the subscribe() call.
To include taxation items for the corresponding invoices in the result, you must use WSDL version 120 or higher.
Populate PreviewOptions :
- Set
EnablePreviewModetotrue. - Set
NumberOfPeriodsto the number of billing periods to include in the preview invoice, or - Set
PreviewThroughTermEndto preview the invoice through the end of a termed subscription (WSDL 51.0+).
- You can only set
NumberOfPeriodsorPreviewThroughTermEnd, but not both. - As an alternative to
NumberOfPeriodsorPreviewThroughTermEnd, you can set theInvoiceTargetDatein theSubscribeOptionsto preview to a specific date. - If neither
NumberOfPeriodsnorPreviewThroughTermEndnorInvoiceTargetDateare specified whenEnablePreviewMode=true, then 1 billing period will be previewed by default.