Impact Migration of the route GET /v0/products/{product_id}/periods_info
- Outdated
- February 25, 2024
- 1 related route
Context
Upgrade from GET - /v0/products/{product_id}/periods_info to GET - /v1/products/{product_id}/periods_info
⭐ Key benefits :
- Modification of the ENUM values from [ EXPLOITATION_DATES, EXCLUSIVITY, UNAVAILABLE, EVENTS ] to [ SELLABLE_DATES, EXCLUSIVITY, UNAVAILABLE, EVENTS ]
- changement format de date pour passer en ISO : YYYY-MM-DD
Impacts
Route to call :
- GET -
/v1/products/{product_id}/periods_info
Output WAS:
[
{
"type": "EXCLUSIVITY",
"start_date": "20171104",
"end_date": "20171117"
},
{
"type": "EXCLUSIVITY",
"start_date": "20191015",
"end_date": "20191018"
},
{
"type": "EXCLUSIVITY",
"start_date": "20191102",
"end_date": "20191108"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20211106",
"end_date": "20220429"
},
{
"type": "EXCLUSIVITY",
"start_date": "20220430",
"end_date": "20220506"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20220507",
"end_date": "20220812"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20220825",
"end_date": "20220918"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20221020",
"end_date": "20221026"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20221101",
"end_date": "20221115"
},
{
"type": "EXCLUSIVITY",
"start_date": "20221116",
"end_date": "20221119"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20221120",
"end_date": "20221123"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20221127",
"end_date": "20221218"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20221220",
"end_date": "20230113"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20230115",
"end_date": "20230115"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20230125",
"end_date": "20230210"
},
{
"type": "EXPLOITATION_DATES",
"start_date": "20230212",
"end_date": "20241220"
}
]
Output BECAME:
[
{
"type": "EXCLUSIVITY",
"start_date": "2017-11-04",
"end_date": "2017-11-17"
},
{
"type": "EXCLUSIVITY",
"start_date": "2019-10-15",
"end_date": "2019-10-18"
},
{
"type": "EXCLUSIVITY",
"start_date": "2019-11-02",
"end_date": "2019-11-08"
},
{
"type": "SELLABLE_DATES",
"start_date": "2021-11-06",
"end_date": "2022-04-29"
},
{
"type": "EXCLUSIVITY",
"start_date": "2022-04-30",
"end_date": "2022-05-06"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-05-07",
"end_date": "2022-08-12"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-08-25",
"end_date": "2022-09-18"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-10-20",
"end_date": "2022-10-26"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-11-01",
"end_date": "2022-11-15"
},
{
"type": "EXCLUSIVITY",
"start_date": "2022-11-16",
"end_date": "2022-11-19"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-11-20",
"end_date": "2022-11-23"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-11-27",
"end_date": "2022-12-18"
},
{
"type": "SELLABLE_DATES",
"start_date": "2022-12-20",
"end_date": "2023-01-13"
},
{
"type": "SELLABLE_DATES",
"start_date": "2023-01-15",
"end_date": "2023-01-15"
},
{
"type": "SELLABLE_DATES",
"start_date": "2023-01-25",
"end_date": "2023-02-10"
},
{
"type": "SELLABLE_DATES",
"start_date": "2023-02-12",
"end_date": "2024-12-20"
}
]
Model
| Champ API | O/F | Type & Desc | Exemple |
|---|---|---|---|
| type | O | ENUM: valeurs: [ SELLABLE_DATES, EXCLUSIVITY, UNAVAILABLE, EVENTS ] type of the period, can be one of the opening or closing period types | EXCLUSIVITY |