PUT
/
api-offers
/
sku-list
/
{skuListId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

skuListId
number
required

ID of the SKU list to update

Body

application/json
title
string
required

SkuList name or title

applicableOn
enum<string>[]
required

Applicable scope of skulist

Available options:
PRODUCT_PRICE,
SHIPPING_PRICE
targetProducts
object[]
required
startDate
string
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
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.

listType
enum<string>

Type of skulist

Available options:
GLOBAL_EXCLUSION
deleted
boolean

true: sku-list is deleted<br /> false: sku-list is not deleted

createdAt
string

Creation date of the record

updatedAt
string

Last updated date of the record

Response

200 - application/json
_id
string

fabric database objectId of the record

title
string

SkuList name or title

listType
enum<string>

Type of skulist

Available options:
GLOBAL_EXCLUSION
applicableOn
enum<string>[]

Applicable scope of skulist

Available options:
PRODUCT_PRICE,
SHIPPING_PRICE
targetProducts
object[]

Array of products to be exempted from being discounted

startDate
string

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

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

Creation date of the record

updatedAt
string

Last updated date of the record