---
title: "Add line once"
method: POST
path: "/2023-10/subscription/{subscriptionId}/line/once"
---

# Add line once

`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`

Rate limit - 5/s

## Path parameters

- `subscriptionId` integer, required

## Request body

- object
  - `variantShopifyId` integer, required: Shopify ID of the variant
  - `quantity` integer, required: Quantity
  - `discountType` 'PERCENTAGE' | 'FIXED_AMOUNT' | 'PRICE' | 'NONE', required
  - `discountValue` number, float, required
  - `isUpsell` boolean: This key allows you to track upsell analytics by indicating whether an item is an upsell or not.
  - `customAttributes` object[]
    - `key` string: Key of the attribute
    - `value` string: Value of the attribute
  - `nextOrderId` string: This key allows you to add line in a future order of the subscription contract. This feature is limited access only.

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `data` unknown
  - `code` string
  - `pageInfo` unknown

---

[API](https://skmtc.dev/loopwork/apis/loop-admin.md) - [All operations](https://skmtc.dev/loopwork/apis/loop-admin/llms.txt) - [OpenAPI document](https://skmtc.dev/loopwork/apis/loop-admin/revisions/1eaf81bcb1ea?raw)
