Apply custom upgrade

This endpoint allows you to upgrade an existing line of a subscription to a new product, quantity, billing frequency, delivery frequency, and pricing configuration

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

Request

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

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

No recorded changes to this operation across all 1 revision of this API.