v1

latestOpenAPI 3.1.02026-07-24920300.7 KB

Manage Time-Window Rotating Product

This API allows you to take an existing standard product and configure it into a valid time-window rotating product or to manage an existing configuration.

post/products/{product_id}/selection_rules/time_window/manage/

Path parameters

product_idstring required

Merchant product ID

Request body

deletestring[]

Delete existing selection rules with public ids to be deleted , ex: ["85eae83c245111eeb185acde48001122","b3928a0c3c4211eeac2bacde48001122"]

Response

200

public_idstring
selection_rule_typestring

Example response

[
  {
    "public_id": "e1a61e620ed411ef8740767250df1ed7",
    "selection_rule_type": "TIME_WINDOW",
    "product_selection_list_elements": [
      {
        "public_id": "e1a626000ed411ef8740767250df1ed7",
        "product": "48398751432995",
        "starting_date": "2024-05-01T00:00:00Z"
      }
    ],
    "configuration": {
      "reveal_moment": "ORDER_PLACEMENT",
      "pricing_policy": "BEST_PRICE"
    }
  }
]