Learn how to assign a perpetual unit price to a subscription with add-ons.
currentAssigning a perpetual unit price to a subscription
In this scenario, you assign a perpetual unit price to a customer's subscription.
Use the POST /v1/subscriptions/{subscriptionId}/perpetual-price resource to assign a perpetual unit price to a customer's subscription. You need to include the subscription identifier (subscriptionId) and the perpetual unit price (perpetUnitPrice). In the following example, the value of the product's perpetualUnitPrice is 120 and the value for the add-on's perpetualUnitPrice is 50. See the perpetual-price resource for more information
You will receive a 200 OK response. The response to this request creates a shopping cart and returns an access token to be included in all other cart interactions.
Apply the shopper and submit the cart using the Shoppers resource.
Creating or changing a perpetual unit price
In this scenario, you create or change a perpetual unit price to a customer's subscription.
Use the POST /v1/subscriptions/{subscriptionId}/perpetual-price resource to apply a forever price for the remaining subscription cycle. You can use it to change a non-perpetual subscription to a perpetual subscription if the supplied subscription is not a perpetual subscription. You need to provide the subscriptionId and the renewalUnitPrice. Note that the renewalUnitPrice cannot be higher than the existing price.