Preview Upgrade Subscription
POST/PreviewUpgradeSubscriptionNow/:ownedProductId/:upgradeProductId
This endpoint allows for calculation of the price of a prorated product upgrade without processing the transaction. It is intended to be used by an application to give the buyer an exact representation of the price they will pay to review without being charged. This method requires that the tenant already owns a time‐based subscription product and is choosing a higher priced time‐based subscription product. The remaining value of an existing subscription period is used to offset the price of the upgraded subscription period. For example, imagine 10 days of a 30‐day period of an owned license costing $100 has elapsed and the upgrade is to a monthly product costing $500. The fraction of the remaining period is (30 – 10) / 30 = 0.67. The remaining value of the owned product is 0.67 * $100 = $66.67. The prorated price of the upgrade will be $500 ‐$66.67 = $433.33. Upon execution of this calculation the owned product period is reduced to the execution date/time and the status is set to Partial Refund and the upgraded product is effective immediately.
- Autorenew - is an optional parameter that can be passed. If passed and is true then it specifies the intent to renew this product in perpetuity.
Request
Responses
- 200
OK