---
title: "Update discount"
method: PUT
path: "/2023-10/subscription/{subscriptionId}/discount/{discountShopifyId}"
---

# Update discount

`PUT /2023-10/subscription/{subscriptionId}/discount/{discountShopifyId}`

## Request

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

Rate limit - 1/s

## Path parameters

- `subscriptionId` integer, required
- `discountShopifyId` string, required

## Request body

- object
  - `manualDiscount` object
    - `type` 'PERCENTAGE' | 'FIXED_DISCOUNT'
    - `value` integer
    - `orderLimit` integer
    - `lineIds` integer[]

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[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)
