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

Authorizations

Authorization
string
header
required

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
applicableOn
enum<string>[]
required

Applicable scope of skulist

Available options:
PRODUCT_PRICE,
SHIPPING_PRICE
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.

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.

targetProducts
object[]
required
title
string
required

SkuList name or title

createdAt
string

Creation date of the record

deleted
boolean

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

listType
enum<string>

Type of skulist

Available options:
GLOBAL_EXCLUSION
updatedAt
string

Last updated date of the record

Response

200 - application/json
_id
string

fabric database objectId of the record

applicableOn
enum<string>[]

Applicable scope of skulist

Available options:
PRODUCT_PRICE,
SHIPPING_PRICE
createdAt
string

Creation date of the record

deleted
boolean

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

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.

listType
enum<string>

Type of skulist

Available options:
GLOBAL_EXCLUSION
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.

targetProducts
object[]

Array of products to be exempted from being discounted

title
string

SkuList name or title

updatedAt
string

Last updated date of the record