Skip to main content
The settlementQuote method generates a quote for the settlement amount that would result from an AutoBill.cancel call made with both the disentitle and settle parameters set to True. You can then provide your customers this preview of how much prorated amount would be refunded upon cancellation and, if the customer agrees, commit the cancellation. Additionally, advance knowledge of how much would be subject to refund can guide your refund policy decisions for allowing immediate disentitlement and/or choosing to settle.

Input

srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call. Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response. autobill: AutoBill object for which the quote is to be generated. You can identify this object with either its VID or your AutoBill ID (). force: Boolean flag that, when set to true, forces generation of a quote even if the minimum commitment period for this AutoBill object has not yet been satisfied. In the case of an AutoBill that has a BillingPlan with a minimumCommitment period, and the subscription is still in the commitment period, the penalty is calculated as defined in the cancelFeePolicy. amountOnly: Boolean flag that, when set to true, restricts the output to just the settlement amount. When set to false, or not specified, settlementQuote will also generate mock Refunds/Transactions that would be generated in response to an actual AutoBill.cancel call with disentitle and settle parameters set. cancelFeePolicy: policy for handling the settlement fee. Options for specifying how to cancel the policy include:
  • Waive the Cancel Fee—the default.
  • Prorate Cancel Fee—calculate fee based on time remaining in the commit period.
  • Full Cancel Fee—apply the full early cancellation fee.

Output

amount: Settlement amount (Decimal). Negative for Refund, Positive for charge. currency: ISO 4217 currency code for amount. token: Vindicia Token for amount when the AutoBill uses a Token BillingPlan/PayementMethod). note: a string providing additional information about the success or failure of the settlement quote. transactions: An array of Transaction objects that provide details of the charges the customer will incur with the settlement. refunds: An array of Refund objects that provide details of credits that will be refunded to the customer with the settlement.

Returns

In addition to those listed in The Return Object, this call returns:

Example

Parent topic:AutoBill Methods