Assigning a perpetual unit price
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 202 Accepted
response.
See Selling subscriptions with add-ons for more information.
Creating a cart with a perpetual unit price
In this scenario, you create a cart and assign a perpetual unit price to a customer's subscription.
Use the POST /v1/shoppers/me/carts/active
or the POST /v1/shoppers/me/carts/active/line-items
resource to create a cart request. You need to include the perpetual unit price (perpetualUnitPrice
) in the subscription override info (subscriptionOverrideInfo
).
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.
You will receive a 202 Accepted
response.
Last updated