---
title: "Create sku-list"
method: POST
path: "/api-offers/sku-list"
tags: ["Global exclusion"]
---

# Create sku-list

`POST /api-offers/sku-list`

## Request

- Base URL: `https://live.copilot.fabric.inc`
- URL: `https://live.copilot.fabric.inc/api-offers/sku-list`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/offers-v2/docs/api-offers/sku-list/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a sku-list with the target products that are exempted from discounts to be applied.

## Headers

- `x-site-context` string, required

## Request body

- NewSkuListRequest
  - `title` string, required: SkuList name or title
  - `listType` 'GLOBAL_EXCLUSION': Type of skulist
  - `applicableOn` string[], required: Applicable scope of skulist
  - `targetProducts` SkuListTargetProduct[], required
    - `kind` 'SKU' | 'CATEGORY' | 'ATTRIBUTE'
    - `value` string[]
  - `startDate` string, date-time, required: Start date of sku-list. From this date, the products provided in the SKU list will be exempted from being discounted. The value must be in the future.
  - `endDate` string, date-time, required: End date of sku-list. The value must be greater than the start date. From this date the products mentioned in the SKU list will again be applicable for discount to be applied.
  - `deleted` boolean: true: sku-list is deleted<br /> false: sku-list is not deleted
  - `createdAt` string, date-time: Creation date of the record
  - `updatedAt` string, date-time: Last updated date of the record

## Response `200`

OK

- SkuList
  - `_id` string: fabric database objectId of the record
  - `title` string: SkuList name or title
  - `listType` 'GLOBAL_EXCLUSION': Type of skulist
  - `applicableOn` string[]: Applicable scope of skulist
  - `targetProducts` SkuListTargetProduct[]: Array of products to be exempted from being discounted
    - `kind` 'SKU' | 'CATEGORY' | 'ATTRIBUTE'
    - `value` string[]
  - `startDate` string, date-time: Start date of sku-list. The value must be in the future. It indicates the date from when the discount will not be applicable to the products mentioned in the sku-list.
  - `endDate` string, date-time: End date of sku-list. The value must be greater than the start date. It indicates the date from when discount be applicable to the products mentioned in the sku-list.
  - `deleted` boolean: true: sku-list is deleted<br /> false: sku-list is not deleted
  - `createdAt` string, date-time: Creation date of the record
  - `updatedAt` string, date-time: Last updated date of the record

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/fabric/apis/offers-v2.md) - [All operations](https://skmtc.dev/fabric/apis/offers-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/offers-v2/revisions/da2bd742b9bc?raw)
