{
	"info": {
		"_postman_id": "c86cd67d-f208-4c06-85f9-bcb02d485388",
		"name": "Promotions",
		"description": "## 1\\. **Vue d’ensemble**\n\nL’**API Promotions** permet aux partenaires de **pousser des promotions directement dans le LGO des pharmacies**. Les promotions peuvent s’appliquer à un **produit unique, un bundle (lot) ou une gamme de produits.**\n\n---\n\n## 2\\. Authentification requise\n\nToutes les requêtes de cette collection nécessitent un **token JWT** obtenu via l’endpoint d’authentification.\n\n`/v1/auth/login`\n\n### Header obligatoire\n\n| Key | Value |\n| --- | --- |\n| Authorization | Bearer |\n| Content-Type | application/json |\n| Accept | application/json |\n\n---\n\n## 3\\. Types de promotions supportés\n\n| Type | Description |\n| --- | --- |\n| LOT(bundle) | Promotion appliquée sur un **pack / bundle** de produits |\n| PRODUIT(product) | Promotion appliquée sur **un produit spécifique** |\n| GAMME(product-line) | Promotion appliquée sur **un ensemble de produits (gamme)** |",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "LOT",
			"item": [
				{
					"name": "Lot 2 gels mains Nexcare 25ml à 4€",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"Lot 2gels Nexcare 25ml à 4€\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    {\r\n      \"code\": \"4054596881419\",\r\n      \"quantity\": 2\r\n    }\r\n  ],\r\n  \"typeAchat\": \"CATALOGUE\",\r\n  \"salePrice\": 4,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-20\" \r\n}\r\n\r\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/bundle",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"bundle"
							]
						}
					},
					"response": []
				},
				{
					"name": "Gel mains Nexcare + Crème Remeassly à 18€",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"Gel +Crème a 18€\",\r\n  \"priority\": \"SEASONAL\",\r\n  \"products\": [\r\n    { \"code\": \"4054596881419\", \"quantity\": 1 },\r\n    { \"code\": \"3401177501708\", \"quantity\": 1 }\r\n  ],\r\n  \"typeAchat\": \"CATALOGUE\",\r\n  \"salePrice\": 18,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-20\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/bundle",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"bundle"
							]
						}
					},
					"response": []
				},
				{
					"name": "3 Vitamines B5 pour le prix de 2",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"3 B5 pour le prix de 2\",\r\n  \"priority\": \"SEASONAL\",\r\n  \"products\": [\r\n    { \"code\": \"3400307972197\", \"quantity\": 3 }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"typeAchat\": \"CATALOGUE\",\r\n  \"salePrice\": 8.38,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-20\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/bundle",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"bundle"
							]
						}
					},
					"response": []
				}
			],
			"description": "## Objectif\n\nCréer des promotions qui s’appliquent à un **ensemble de produits achetés simultanément**, par exemple des packs, offres “3 pour 2”, ou combinaisons.  \nExemple :\n\n- 2 gels mains Nexcare à 4€\n    \n- Gel + Crème à prix fixe\n    \n- 3 produits pour le prix de 2\n    \n\n##### Endpoint :\n\nPOST : {BASE_URL}/v1/{finess}/promotions/bundle\n\n---\n\n## Champs principaux\n\n| Champ | Description |\n| --- | --- |\n| description | Libellé de la promotion |\n| priority | PUNCTUAL, SEASONAL, LONGTERM, PERMANENT |\n| products | Liste des produits avec quantités |\n| products\\[\\].code | Code du produit (cip ou ean) |\n| products\\[\\].quantity | Quantité du produit dans le lot |\n| salePrice | Prix du lot en **euro** |\n| startDate / endDate | Période de validité |\n\n---\n\n## Cas d’usage typiques\n\n- Packs promotionnels\n    \n- Offres « X produits pour Y € »\n    \n- Bundles catalogue"
		},
		{
			"name": "Gamme",
			"item": [
				{
					"name": "Produit Avène le moins cher offert dans les 3 achetés",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"3avene achetes=moins cher free\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"3282770395938\" },\r\n    { \"code\": \"3282770392920\" },\r\n    { \"code\": \"3282770111583\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"includesAdditionalDiscount\": true,\r\n  \"additionalDiscount\": {\r\n    \"type\": \"LEAST_EXPENSIVE\",\r\n    \"priceType\": \"PERCENT\",\r\n    \"minQuantity\": 3,\r\n    \"value\": 100\r\n  },\r\n   \"initialPromotionValue\": 5, \r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"   \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				},
				{
					"name": "10% sur toute la gamme Avène",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"10% sur toute la gamme Avene\",\r\n  \"priority\": \"SEASONAL\",\r\n  \"products\": [\r\n    { \"code\": \"3282770395938\" },\r\n    { \"code\": \"3282770392920\" },\r\n    { \"code\": \"3282770111583\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"initialPromotionValue\": 10,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				},
				{
					"name": "Remise dégressive gamme Avène",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"Remise degressive gamme Avene\",\r\n  \"priority\": \"LONGTERM\",\r\n  \"products\": [\r\n    { \"code\": \"3282770395938\" },\r\n    { \"code\": \"3282770392920\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"isDegressive\": true,\r\n  \"cascade\": {\r\n    \"sliceType\": \"RATE\",\r\n    \"slices\": [\r\n      { \"quantity\": 3, \"value\": 10 },\r\n      { \"quantity\": 6, \"value\": 15 }\r\n    ]\r\n  },\r\n   \"initialPromotionValue\": 5, \r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				},
				{
					"name": "3 crèmes Remeassly = -20% sur gel Nexcare",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"3cremes achetées= -20% sur gel\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"3401177501708\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"includesAdditionalDiscount\": true,\r\n  \"additionalDiscount\": {\r\n    \"type\": \"SPECIFIQUE\",\r\n    \"priceType\": \"PERCENT\",\r\n    \"minQuantity\": 3,\r\n    \"value\": 20\r\n  },\r\n  \"specificProducts\": [\r\n    { \"code\": \"4054596881419\" }\r\n  ],\r\n  \"initialPromotionValue\": 5, \r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"   \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				},
				{
					"name": "3 gels Nexcare = 2€ de remise sur crème Remeassly",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"3gels achetes= -2€ sur creme\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"4054596881419\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"includesAdditionalDiscount\": true,\r\n  \"additionalDiscount\": {\r\n    \"type\": \"SPECIFIQUE\",\r\n    \"priceType\": \"AMOUNT\",\r\n    \"minQuantity\": 3,\r\n    \"value\": 2\r\n  },\r\n  \"specificProducts\": [\r\n    { \"code\": \"3401177501708\" }\r\n  ],\r\n   \"initialPromotionValue\": 5, \r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				},
				{
					"name": "3 Vitamines B5 achetées = Avène Baume offert",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"3 B5 achetées=Avène Baume free\",\r\n  \"priority\": \"SEASONAL\",\r\n  \"products\": [\r\n    { \"code\": \"3400307972197\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"includesAdditionalDiscount\": true,\r\n  \"additionalDiscount\": {\r\n    \"type\": \"SPECIFIQUE\",\r\n    \"priceType\": \"PERCENT\",\r\n    \"minQuantity\": 3,\r\n    \"value\": 100\r\n  },\r\n  \"specificProducts\": [\r\n    { \"code\": \"3282770392920\" }\r\n  ],\r\n    \"initialPromotionValue\": 5, \r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				},
				{
					"name": "2 Avène solaires = -50% sur Avène Body Baume",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"2Avene= -50% sur Avene Baume\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"3282770395938\" }\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"includesAdditionalDiscount\": true,\r\n  \"additionalDiscount\": {\r\n    \"type\": \"SPECIFIQUE\",\r\n    \"priceType\": \"PERCENT\",\r\n    \"minQuantity\": 2,\r\n    \"value\": 50\r\n  },\r\n  \"specificProducts\": [\r\n    { \"code\": \"3282770111583\" }\r\n  ],\r\n   \"initialPromotionValue\": 5, \r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"   \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product-line",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product-line"
							]
						}
					},
					"response": []
				}
			],
			"description": "## Objectif\n\nCréer des promotions qui s’appliquent à un **ensemble de produits d’une même gamme**, par exemple : Cross-selling, Produit le moins cher offert et Remises dégressives.\n\nExemple :\n\n- \\-10% sur toute la gamme\n    \n- Le produit le moins cher offert\n    \n- Remise sur un produit complémentaire\n    \n\n##### Endpoint :\n\nPOST : {BASE_URL}/v1/{finess}/promotions/product-line\n\n---\n\n## Champs principaux\n\n| Champ | Description |\n| --- | --- |\n| description | Libellé de la promotion |\n| priority | PUNCTUAL, SEASONAL, LONGTERM, PERMANENT |\n| products | Liste des produits de la gamme |\n| products\\[\\].code | Code du produit (cip ou ean) |\n| initialPromotionValue | Remise de base en **%** |\n| includesAdditionalDiscount | Active une remise additionnelle |\n| additionalDiscount | Règles de remise complémentaire |\n| additionalDiscount.type | LEAST_EXPENSIVE, MOST_EXPENSIVE, CHOICE, SPECIFIQUE |\n| additionalDiscount.priceType | AMOUNT or PERCENT |\n| additionalDiscount.minQuantity | Quantité minimale requise pour appliquer la remise |\n| additionalDiscount.value | La valeur de remise appliqué sur le(s) produit(s) mentioné(s) dans la remise supplémentaire |\n| specificProducts | Produits spéciques par une remise additionnelle, si type =SPECIFIQUE . |\n| specificProducts\\[\\].code | Code du produit (cip ou ean) |\n| isDegressive | Active une remise progressive |\n| cascade | Remise progressive |\n| cascade.sliceType | FIXED_PRICE (remise en prix fixe) or RATE (remise en pourcentage) |\n| cascade.slices | Liste des tranches |\n| cascade.slices\\[\\].quantity | Quantité minimale à atteindre pour cette tranche |\n| cascade.slices\\[\\].value | Valeur de la tranche (prix fixe ou pourcentage selon le contexte) |\n| startDate / endDate | Période de validité |\n\n---\n\n## Cas d’usage typiques\n\n- Promotions multi-produits\n    \n- Offres croisées (cross-selling)\n    \n- Fidélisation sur une marque\n    \n\n## Note:\n\n1-Dans une **promotion de type gamme**, on peut appliquer **une seule remise à la fois , soit** :\n\n- **Une remise cascade (dégressive)**\n    \n- **Remise additionnelle**\n    \n\n2-Dans une remise de type cascade :\n\nSi la remise est de type prix (FIXE_PRICE) les produits doivent être strictement de même prix et de même TVA .\n\n**Il est strictement interdit d’appliquer les deux simultanément**"
		},
		{
			"name": "Produit",
			"item": [
				{
					"name": "10% de remise sur Vitamine B5",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"10% de remise sur Vitamine B5\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"3400307972197\"}\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"initialPromotionValue\": 10,\r\n  \"isDegressive\": false, \r\n    \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product"
							]
						}
					},
					"response": []
				},
				{
					"name": "Remise dégressive Vitamine B5",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n\"description\": \"Remise degressive Vitamine B5\",\r\n\"priority\": \"LONGTERM\",\r\n\"products\": [\r\n{ \"code\": \"3400307972197\"}\r\n],\r\n\"promotionStatus\": \"ACTIVE\",\r\n\"isDegressive\": true,\r\n\"cascade\": {\r\n\"sliceType\": \"RATE\",\r\n\"slices\": [\r\n{ \"quantity\": 5, \"value\": 10 },\r\n{ \"quantity\": 10, \"value\": 15 },\r\n{ \"quantity\": 15, \"value\": 20 }\r\n]\r\n},\r\n\"initialPromotionValue\": 0,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product"
							]
						}
					},
					"response": []
				},
				{
					"name": "Remise fixe progressive sur gel Nexcare",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"Remise fix progessive sur gel\",\r\n  \"priority\": \"LONGTERM\",\r\n  \"products\": [\r\n    { \"code\": \"4054596881419\"}\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"isDegressive\": true,\r\n  \"cascade\": {\r\n    \"sliceType\": \"FIXED_PRICE\",\r\n    \"slices\": [\r\n      { \"quantity\": 2, \"value\": 1 },\r\n      { \"quantity\": 4, \"value\": 2 },\r\n      { \"quantity\": 6, \"value\": 3 }\r\n    ]\r\n  },\r\n\"initialPromotionValue\": 0,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"   \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product"
							]
						}
					},
					"response": []
				},
				{
					"name": "2€ de remise dès 3 crèmes Remeassly",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"2€ de remise des 3 cremes\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"3401177501708\"}\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"isDegressive\": true,\r\n  \"cascade\": {\r\n    \"sliceType\": \"FIXED_PRICE\",\r\n    \"slices\": [\r\n      { \"quantity\": 3, \"value\": 2 }\r\n    ]\r\n  },\r\n  \"initialPromotionValue\": 0,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product"
							]
						}
					},
					"response": []
				},
				{
					"name": "15% dès 3 Avène Baumes",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"15% dès 3 Avène Baumes\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"3282770392920\"}\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"isDegressive\": true,\r\n  \"cascade\": {\r\n    \"sliceType\": \"RATE\",\r\n    \"slices\": [\r\n      { \"quantity\": 3, \"value\": 15 }\r\n    ]\r\n  },\r\n   \"initialPromotionValue\": 0,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"   \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product"
							]
						}
					},
					"response": []
				},
				{
					"name": "2 gels Nexcare achetés = 1 offert",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "{{token}}",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"description\": \"2gels Nexcare achetes=1 offert\",\r\n  \"priority\": \"PUNCTUAL\",\r\n  \"products\": [\r\n    { \"code\": \"4054596881419\"}\r\n  ],\r\n  \"promotionStatus\": \"ACTIVE\",\r\n  \"isDegressive\": true,\r\n  \"cascade\": {\r\n    \"sliceType\": \"FIXED_PRICE\",\r\n    \"slices\": [\r\n      { \"quantity\": 3, \"value\": 5.02 }\r\n    ]\r\n  },\r\n  \"initialPromotionValue\": 0,\r\n  \"startDate\": \"2025-12-11\",\r\n  \"endDate\": \"2026-12-18\"  \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{BASE_URL}}/v1/{{finess}}/promotions/product",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"v1",
								"{{finess}}",
								"promotions",
								"product"
							]
						}
					},
					"response": []
				}
			],
			"description": "## Objectif\n\ncréer des promotions qui s’appliquent à **un seul produit**.\n\nExemple :\n\n- Prix fixe promotionnel\n    \n- Remise en pourcentage\n    \n- Remise en pourcentage ou en euro dégressive selon la quantité\n    \n\n##### Endpoint :\n\nPOST : {BASE_URL}/v1/{finess}/promotions/product\n\n---\n\n## Champs principaux\n\n| Champ | Description |\n| --- | --- |\n| description | Libellé de la promotion |\n| priority | PUNCTUAL, SEASONAL, LONGTERM, PERMANENT |\n| products | Produit |\n| products\\[\\].code | Code du produit(cip ou ean) |\n| initialPromotionValue | Remise de base en % |\n| cascade.sliceType | FIXED_PRICE (remise en prix fixe) or RATE (remise en pourcentage) |\n| cascade.slices | Liste des Tranches |\n| cascade.slices\\[\\].quantity | Quantité minimale à atteindre pour cette tranche |\n| cascade.slices\\[\\].value | Valeur de la tranche (prix fixe ou pourcentage selon le contexte) |\n| startDate / endDate | Période de validité |\n\n---\n\n## Cas d’usage typiques\n\n- Prix promo sur un produit\n    \n- Remise quantitative\n    \n- Offre « 2 achetés = X € de remise »"
		},
		{
			"name": "Authentification",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\r\n  \"username\": {{username}},\r\n  \"password\": {{password}}\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{BASE_URL}}/v1/auth/login",
					"host": [
						"{{BASE_URL}}"
					],
					"path": [
						"v1",
						"auth",
						"login"
					]
				},
				"description": "## 1\\. Objectif\n\nCette endpoint permet à un utilisateur de s’authentifier à l’aide d’un **username** et d’un **mot de passe**.\n\nEn cas de succès, un **token JWT** est retourné.\n\nCe token devra ensuite être utilisé pour authentifier toutes les autres requêtes vers l’API.\n\n## 2\\. Endpoint d’authentification\n\n- **Méthode HTTP** : `POST`\n    \n- **URL** :\n    \n\n[/v1/auth/login](https://push-api-qa-apps.ccs2-chs-sx-qa.ccs.cegedim.cloud/push-api/v1/auth/login)\n\n## 3\\. Configuration de la requête dans Postman\n\n### 3.1 Headers\n\nDans l’onglet **Headers**, ajouter les éléments suivants :\n\n| Key | Value |\n| --- | --- |\n| Accept | application/json |\n| Content-Type | application/json |\n\n**Remarque** :\n\nLe header `Authorization` n’est pas requis pour l’appel `/auth/login`.\n\nIl sera utilisé uniquement pour les appels protégés après authentification.  \n3.2 Body\n\nDans l’onglet **Body** :\n\n- Sélectionner **raw**\n    \n- Choisir le format **JSON**\n    \n- Renseigner le contenu suivant :\n    \n\n`{ \"username\": username, \"password\": password }`\n\n## 4.Exemple de requête CURL\n\n`curl -X POST '`{{BASE_URL}}/v1/auth/login[<code>'</code>](https://push-api-qa-apps.ccs2-chs-sx-qa.ccs.cegedim.cloud/push-api/v1/auth/login')`-H 'accept: application/json' -H 'Content-Type: application/json' -d '{ \"username\": username, \"password\": passoword }'`\n\n## 5\\. Réponses de l’API\n\n### 200 – Authentification réussie\n\nL’API retourne un **token JWT**.\n\n```\n{\n  \"token\": \"eyJhbGciOiJIUzM4NCJ9.eyJBVVRIT1JJVElFU19LRVkiOiJQVVNIX1BST01PVElPTlMiLCJQUk9GSUxFIjoiRlVMTCIsIklTU1VFRF9BVCI6MTc2NjM0MDc1MzM4OSwic3ViIjoiUFVTSF9URVNUIiwiaWF0IjoxNzY2MzQwNzUzLCJleHAiOjE3NjYzNDEzNTN9.EfAVJhpjAFmPsMjYfcurpcL-uXLMrjM8Nt4dONLLs3n4rnROk-CiyeN9226GkS5X\"\n}\n\n ```\n\n---\n\n### 400 – Erreur de paramètres\n\n- Paramètres manquants ou mal formatés\n    \n- Exemple : champ `username` ou `password` absent\n    \n\n---\n\n### 401 – Échec de l’authentification\n\n- Identifiants incorrects (username ou mot de passe invalide)\n    \n\n---\n\n### 500 – Erreur serveur\n\n- Erreur interne du serveur\n    \n- Contacter l’équipe technique si le problème persiste\n    \n\n---\n\n## 6\\. Utilisation du token pour les appels suivants\n\nPour toutes les autres APIs protégées :\n\n1. Copier la valeur du **token** retourné\n    \n2. Dans Postman, ajouter le header suivant :\n    \n\n| Key | Value |\n| --- | --- |\n| Authorization | Bearer |\n\n📌 Exemple :\n\n```\nAuthorization: Bearer eyJhbGciOiJIUzM4NCJ9...\n\n ```"
			},
			"response": []
		}
	]
}