---
title: "Create promotion"
method: POST
path: "/api/v1/promotions"
tags: ["promotions"]
---

# Create promotion

`POST /api/v1/promotions`

Creates a new promotion within the caller account. The promotion is always created inactive.

## Request body

- PromotionCreate
  - `code` string, required
  - `name` string, required
  - `description` string, nullable
  - `validity` PromotionValidityCreate, required
    - `starts_at` string, required
    - `ends_at` string, nullable
    - `recurring_weekdays` string[], required
  - `eligibility` PromotionEligibilityCreate, required
    - `scope` 'ALL' | 'ONLY' | 'EXCEPT', required
    - `cluster_ids` string[], required
    - `strategy_ids` string[], required
    - `apply_to_all_channels` boolean, required
    - `channel_ids` string[], required
  - `benefit` PromotionBenefitCreate, required
    - `type` 'DISCOUNT' | 'SHIPPING' | 'GIFT', required
    - `kind` string
    - `value` number
    - `apply_by` 'CART' | 'ITEM'
    - `quantity` number
    - `product_ids` string[]
  - `item_restrictions` PromotionItemRestrictionCreate[], required
    - `dimension` 'PRODUCT' | 'CATEGORY', required
    - `operator` 'IN' | 'NOT_IN', required
    - `values` string[], required
  - `conditions` PromotionConditionCreate[], required
    - `type` 'ORDER_VALUE' | 'SHIPPING_TYPE' | 'PAYMENT_METHOD' | 'INSTALLMENTS', required
    - `min` number
    - `max` number
    - `values` string[]
  - `usage_limits` PromotionUsageLimitsCreate, required
    - `per_customer` number, nullable
    - `total` number, nullable
    - `eligible_items` PromotionEligibleItemsLimitCreate
      - `limit` number, required
      - `count_by` 'ORDER' | 'PRODUCT', required
  - `accumulation` PromotionAccumulationCreate, required
    - `with_discount_promotions` boolean, required
    - `with_manual_prices` boolean, required
  - `metadata` object

## Response `201`

Promotion created.

- PromotionCreateResponse
  - `id` string, required
  - `code` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `active` boolean, required
  - `validity` object, required
  - `eligibility` object, required
  - `benefit` object, required
  - `item_restrictions` object[], required
  - `conditions` object[], required
  - `usage_limits` object, required
  - `accumulation` object, required
  - `metadata` object, nullable, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `400` — Request payload, query string, or path parameter failed validation.
- `401` — Authentication is missing, malformed, expired, or refers to a session that is no longer active.
- `403` — The caller is authenticated but lacks the required permission for this action.
- `409` — A promotion with the same code already exists in the caller account.
- `422` — The payload passed schema validation but breaks a domain invariant or references a missing entity.
- `500` — Unexpected server error. The response body never leaks internal details.

---

[API](https://skmtc.net/kruzer-corp/apis/oms-api.md) · [All operations](https://skmtc.net/kruzer-corp/apis/oms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kruzer-corp/oms-api/revisions/38ef6e16a7a8/schema)
