PreviewOptions
Use the PreviewOptions container to preview an amendment before committing its changes to a subscription.
You can use a preview to provide a quote of the new charges to a customer before the customer commits to the amended subscription. For example, send an amend() call with an Amendment object that removes an existing rate plan, another Amendment object that adds a new rate plan, and turn on the preview options.
-
You must use WSDL version 42.0+ to send multiple Amendment objects with a single amend() call. You can't preview changes before committing them if you are using an older WSDL version.
-
You must use WSDL version 120.0 or higher to include taxation items for the corresponding invoices in the preview result.
PreviewOptions fields
|
Name |
Required? |
Description |
|---|---|---|
|
EnablePreviewMode |
optional |
Determines whether the call creates an amendment or displays a preview of the change. Type : boolean Character limit : Version notes : WSDL 28.0+ System-generated: no Values : true, false Usage Notes: If either NumberOfPeriods, PreviewThroughTermEnd, or InvoiceTargetDate are not specified when |
|
NumberOfPeriods |
optional |
Indicates the number of invoice periods to show in a preview. Type : integer Character limit : Version notes : WSDL 28.0+ System-generated : no Values : a positive integer greater than 0 Usage Notes:
|
|
PreviewThroughTermEnd |
optional |
Request to preview the charge through the end of the subscription term. Type : boolean Character limit : N/A Version notes : WSDL 51.0+ System-generated : no Values : true, false Usage Notes:
|
|
PreviewType |
optional |
The type of preview you will receive from a preview request. Type : string Values :
Usage Notes :
|
|
IncludeExistingDraftInvoiceItems |
optional |
Specifies whether to include draft invoice items in amendment previews. Type : boolean Character limit : N/A Version notes : WSDL 72.0+ System-generated : No Values :
Usage Notes : This field is only applicable if the |