Swap line on subscription

Rate limit - 5/s

put/2023-10/subscription/{subscriptionId}/line/{lineId}/swap

Request

  • Base URL
    https://api.loopsubscriptions.com/admin
  • URL
    https://api.loopsubscriptions.com/admin/2023-10/subscription/{subscriptionId}/line/{lineId}/swap
  • Auth
    API key in header X-Loop-Token

Path parameters

subscriptionIdinteger required

Loop ID of the subscription

lineIdinteger required

Loop ID of the line to swap

Request body

variantShopifyIdinteger required

Shopify ID of the new variant

quantityinteger required

Quantity of the variant

pricingType'OLD' | 'NEW' | 'CUSTOM' required
sellingPlanGroupIdinteger

The sellingPlanGroupId which has to be applied on the line.

Response

200

successboolean
messagestring
dataunknown
codestring

Example response

{
  "success": true,
  "message": "Line swapped successfully",
  "code": "SUCCESS"
}

Changes

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