Apply custom upgrade

Changed on

This endpoint allows to apply a custom upgrade to an existing line of a subscription by changing its product, quantity, billing frequency, delivery frequency, and pricing configuration

post/2026-04/subscription/{subscriptionId}/upgrade/custom

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2026-04/subscription/{subscriptionId}/upgrade/custom
  • Auth
    API key in header Authorization

Path parameters

subscriptionIdstring required

The unique id of the subscription that needs to be upgraded

Request body

oldLineIdinteger required

ID of the existing subscription line that needs to be upgraded

newVariantShopifyIdinteger required

Shopify variant ID of the new product

quantityinteger required

Quantity of the new product

sellingPlanIdinteger

Loop ID of the selling plan that needs to be applied to the product

Response

The upgrade has been applied successfully

successboolean
messagestring
dataunknown
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Subscription upgraded successfully",
  "code": "SUCCESS"
}

Changes