---
title: "Patch Quantity Deal"
method: PATCH
path: "/v1/shops/{shopId}/quantity-deals/{dealId}"
tags: ["Quantity Deals"]
---

# Patch Quantity Deal

`PATCH /v1/shops/{shopId}/quantity-deals/{dealId}`

## Request

- Base URL: `https://api.sellauth.com`
- URL: `https://api.sellauth.com/v1/shops/{shopId}/quantity-deals/{dealId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sellauth/apis/sellauth-api/docs/v1/shops/:shopId/quantity-deals/:dealId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Changes only the fields you send. Fields you leave out keep their current value, and null clears a field.

## Request body

- object
  - `name` string: Must not be greater than 255 characters.
  - `product_id` integer: Must match an existing stored value.
  - `variant_id` integer, nullable
  - `buy_quantity` integer: Must be at least 1.
  - `discounted_quantity` integer: Must be at least 1.
  - `percentage` number: Must be at least 0.01. Must not be greater than 100.
  - `max_uses_per_cart` integer, nullable: Must be at least 1.
  - `priority` integer, nullable: Must be at least 0.
  - `starts_at` string, nullable: Must be a valid date. Must be a date before <code>2038-01-19</code>.
  - `ends_at` string, nullable: Must be a valid date. Must be a date before <code>2038-01-19</code>.
  - `enabled` boolean

## Response `200`

## Changes

- **2026-11-08** `156a9aef5e98`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sellauth/apis/sellauth-api/changes/v1/shops/:shopId/quantity-deals/:dealId/patch.md)

---

[API](https://skmtc.dev/sellauth/apis/sellauth-api.md) - [All operations](https://skmtc.dev/sellauth/apis/sellauth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sellauth/apis/sellauth-api/revisions/156a9aef5e98?raw)
