---
title: "POST discount-groups"
method: POST
path: "/discount-groups"
tags: ["Discount Groups"]
---

# POST discount-groups

`POST /discount-groups`

Create new discount group for client tags

## Request body

- CreateDiscountGroupRequest
  - `name` string
  - `client` integer — client uid
  - `discount_on_children` integer — allowed values 0 => use discount same discount for each tag 1 => use discount on each tag separately
  - `discount` number — discount percentage
  - `discount_group_tags` object[]
    - `tag` integer — tag uid
    - `discount` number — discount percentage

## Response `200`

OK

- EDiscountGroup
  - `uid` integer
  - `crdate` integer
  - `tstamp` integer
  - `crdate_formatted` string
  - `tstamp_formatted` string
  - `name` string
  - `discount` number
  - `discount_on_children` integer
  - `discount_group_tags` object
    - `uid` string
    - `tag` string
    - `discount` string
    - `discount_group` string
    - `tag0` ETag
      - `uid` integer
      - `crdate` integer
      - `tstamp` integer
      - `crdate_formatted` string
      - `tstamp_formatted` string
      - `name` string
      - `client` integer
      - `weight` integer
      - `not_kitchen` integer
      - `color` string
      - `product_count` integer
      - `is_visible` integer
      - `image` Image
        - `uid` integer
        - `crdate` integer
        - `tstamp` integer
        - `crdate_formatted` string
        - `tstamp_formatted` string
        - `path` string
        - `image_original` string
        - `image_large` string
        - `image_medium` string
        - `image_small` string
      - `integration_accounts` TagIntegrationAccount[]
        - `tag_id` integer
        - `account` integer
        - `tax_id` integer
        - `uid` integer
        - `crdate` integer
        - `tstamp` integer
        - `crdate_formatted` string
        - `tstamp_formatted` string

---

[API](https://skmtc.dev/shopbox/apis/shopbox-api.md) · [All operations](https://skmtc.dev/shopbox/apis/shopbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shopbox/shopbox-api/revisions/f1847469718c/schema)
