⬆️Request and Response

Request to the API endpoint

Set discounts to product listings (A.K.A. publications) in a fixed period of time

POST https://api.alephcrm.com/v2/productlistings/discounts

Query Parameters

Name
Type
Description

API_KEY*

String

(default=none)

accountId *

Integer

(default=none)

Product listings discount list *

(array of)

{
    "Total": integer,
    "Results": [{
      "ProductListingStatus": [{ProductListingDiscountType}],
      "Status": integer,
      "Message": string
    }]
}

Parameters details

API_KEY

The API_KEY that was provided.

accountId

The Alephee account ID of the orders you are trying to get.

Product listings discount list

The list of product listings needed to change. You can set a discount to a list of product listings by indicating the brand/sku of the product OR a list of product listings IDs from each marketplace. One or the other. Not both. • When setting product brand/SKU this method will attempt to set the given discount of all the product listings belonging to that product. • When setting product listing IDs, this method will attempt to set the given discount of all the indicated product listings. The start and ending dates must be provided in a datetime without timezone property and the hour part given in UTC fixed time. The start date and time must be later than the current date and time.

Last updated