younifyd
Menu

Best Prior Price

Fetch best prior price

POST/v1/best_prior_price

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Best Prior Price action (under integration).
  3. Fill in the fields below, then reference the result from later steps as {{bestPriorPrice.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

skusarray<string>required

List of product SKUs to check when determining the best prior price.

timeframeEndDatestring (date-time)required

The end date and time that defines the latest time for retrieving historical SKU prices.

timeframestringrequired

The number of days prior to the timeframeEndDate. Only prices within this look back period are considered for the best prior price evaluation.

timeframeEndDateTypestringrequired

Sets the timeframe for retrieving historical pricing data. Can be one of the following values: - `strict`: The timeframe ends at the `timeframeEndDate` value. - `price`: The timeframe ends at the start of current price value and takes the prices prior to the start of the current price value into account. - `sale`: The timeframe ends at the start of current `contextId` and takes the prices prior to the start of the `contextId` into account.

One ofstrictpricesale

targetobject

Specifies the target for which the best prior price calculation is taken into consideration.

targetTypestringrequired

The type of price target.

One ofNONEAUDIENCE

audienceIDinteger (int64)

The AudienceID of an audience. Must be used with "AUDIENCE" target type.

json
{
  "skus": [
    "comma",
    "period"
  ],
  "timeframeEndDate": {},
  "timeframe": "30",
  "timeframeEndDateType": "sale",
  "target": {
    "targetType": "AUDIENCE",
    "audienceID": 4
  }
}

Response

Returns 200 with a array<object>. Read it in later steps with {{bestPriorPrice.response.data.<field>}}.

Need more? See the Talon.One guide for connection setup and behaviour shared by every action.

Best Prior Price — Talon.One — Documentation