Add line once

This endpoint allows you to add a new one-time line item in a subscription contract.

post/2026-04/subscription/{subscriptionId}/line/once

Request

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

Path parameters

subscriptionIdinteger required

The unique identifier of the subscription in Loop.

Request body

variantShopifyIdinteger required

Shopify variant ID to add as a one-time line item.

quantityinteger required

Quantity of the variant.

discountType'PERCENTAGE' | 'FIXED_AMOUNT' | 'PRICE' | 'NONE' required

Type of discount applied on the line item.

discountValuenumber float required

Discount value based on the selected discount type.

isUpsellboolean

Marks the line item as an upsell for analytics tracking.

nextOrderIdinteger

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

Response

Line added for next order successfull

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.