Add line once

Rate limit - 5/s

post/2023-10/subscription/{subscriptionId}/line/once

Request

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

Path parameters

subscriptionIdinteger required

ID of the subscription

Request body

variantShopifyIdinteger required

Shopify ID of the variant

quantityinteger required

Quantity

discountType'PERCENTAGE' | 'FIXED_AMOUNT' | 'PRICE' | 'NONE' required
discountValuenumber float required
isUpsellboolean

This key allows you to track upsell analytics by indicating whether an item is an upsell or not.

nextOrderIdstring

This key allows you to add line in a future order of the subscription contract. This feature is limited access only.

Response

200

successboolean
messagestring
dataunknown
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Line added for next order successfully",
  "code": "SUCCESS"
}

Changes

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