Create sku-list

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

SecurityAuthorizationToken
Request
header Parameters
required
object

Valid JSON object that must contain account, stage, date, and channel attributes. eg - {"stage":"prod","account":"5f328bf0b","date":"2020-12-12T08:00:00.000Z","channel":12}

Authorization
required
string

Authorization token or access token for the user, provided by fabric. It can be obtained after logging into fabric's copilot account.

Example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Request Body schema: application/json
title
required
string

SkuList name or title

listType
string

Type of skulist

Value: "GLOBAL_EXCLUSION"
applicableOn
required
Array of strings

Applicable scope of skulist

Items Enum: "PRODUCT_PRICE" "SHIPPING_PRICE"
required
Array of objects (skuListTargetProduct)
startDate
required
string <date-time>

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
required
string <date-time>

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

Responses
200

OK

400

Bad Request

500

Internal Server Error

post/api-offers/sku-list
Request samples
application/json
{
  • "title": "GlobalExc_1",
  • "listType": "GLOBAL_EXCLUSION",
  • "applicableOn": [
    ],
  • "targetProducts": [
    ],
  • "startDate": "2022-05-04T09:23:51.459Z",
  • "endDate": "2099-12-31T00:00:00.000Z",
  • "deleted": false,
  • "createdAt": "2020-12-14T12:15:43.646Z",
  • "updatedAt": "2021-12-14T12:15:43.646Z"
}
Response samples
application/json
{
  • "_id": "614b58924e92f6861ac9d43b",
  • "title": "GlobalExc_1",
  • "listType": "GLOBAL_EXCLUSION",
  • "applicableOn": [
    ],
  • "targetProducts": [
    ],
  • "startDate": "2022-05-04T09:23:51.459Z",
  • "endDate": "2099-12-31T00:00:00.000Z",
  • "deleted": false,
  • "createdAt": "2020-12-14T12:15:43.646Z",
  • "updatedAt": "2021-12-14T12:15:43.646Z"
}