⚙️Examples

Request:

curl --location --request PUT 'https://api.alephcrm.com/v2/productlisting/discounts?API_KEY=AAAAAAAA-XXX-XXX-XXX-XXXXXXXXXXXX&accountId=ZZZZ \
--header 'Content-Type: application/json' \
--header 'Cookie: xxx' \
--data-raw '[
  {
    "Brand": "Bosch",
    "SKU": "MKNJ-122",
    "DiscountPercent": 30.00,
    "StartDate": "2021-09-01T20:23:33.638Z",
    "FinishDate":"2021-09-03T20:17:33.638Z"
  }
]'

Response

{
    "Total": 2,
    "Results": [
        {
            "Status": "200",
            "Message": "Discount set successfully",
            "ProductListingStatus": {
                "ProductListingId": "MLB2928711",
                "DiscountPercent": 30.00
            }
        },
        {
            "Status": "200",
            "Message": "Discount set successfully",
            "ProductListingStatus": {
                "ProductListingId": "MLB4428292",
                "DiscountPercent": 30.00
            }
        }
}

Request (sending product listings IDs)

--header 'Content-Type: application/json' \

--header 'Cookie: xxx' \

--data-raw '[

{

"ProductListingId": {

"MLC3271881",

"MLC1029292"

},

"DiscountPercent": 30.00,

"StartDate": "2021-09-01T20:23:33.638Z",

"FinishDate":"2021-09-03T20:17:33.638Z"

}

]'

Response:

Last updated