Add line once (for next order)

Changed on

This endpoint allows you to add a one-time product to the customer's next subscription order without affecting future recurring orders.

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

Request

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

Path parameters

subscriptionIdinteger required

The unique identifier of the subscription in Loop.

Request body

variantShopifyIdinteger required

The unique identifier of the variant in Shopify.

quantityinteger required

The quantity of variant to be added.

isUpsellboolean

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

upsellProfileIdinteger

This key allows you to track the exact upsell profile analytics.

Response

200

successboolean
messagestring
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Line added for next order successfully",
  "data": {
    "id": 2473902,
    "name": "A Ring - 6",
    "shopifyId": "6c2390a0-2d7d-4ce9-9cb0-2a08e7c8c10d",
    "quantity": 2,
    "price": "9.00"
  },
  "code": "SUCCESS"
}

Changes

    • breaking

      the response's property type changed from no type to object for status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      api operation id add-line-once removed and replaced with add-line-once-for-next-order

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status