{
  "info": {
    "_postman_id": "5d0c7a52-6f0e-4d7a-9b8e-10ca1a9e2026",
    "name": "Localoge Channel API v1",
    "description": "# API de distribution Localoge\n\nToutes les routes de `/api/v1/channel`, prêtes à envoyer, avec leurs tests.\n\n## Démarrer en trois gestes\n\n1. Importez cette collection **et** les deux environnements (`Import` dans Postman, puis le fichier ou son lien).\n2. Choisissez l'environnement **Localoge Sandbox** et collez votre clé de test `lok_test_…` dans `apiKey` (valeur courante : elle reste sur votre poste).\n3. Lancez la collection entière (`Run collection`) : le scénario crée un logement d'essai, pose calendrier et tarifs, envoie une réservation, la modifie, écrit au voyageur, l'annule, déclare le webhook, vérifie sa signature, simule des réservations Localoge et archive le logement.\n\nVotre clé s'obtient dans votre espace développeur : https://developers.localoge.com/app/dev (sandbox : https://sandbox.localoge.com/app/dev).\n\n## Ce qu'il faut savoir\n\n- Authentification : `Authorization: Bearer {{apiKey}}`, posée une fois pour toute la collection.\n- Montants en **centimes** d'euro (`9500` = 95,00 €), dates `YYYY-MM-DD`, départ exclu.\n- Enveloppe : `{ success, environment, data }` ou `{ success: false, error: { code, message, request_id } }`.\n- Les identifiants s'enchaînent tout seuls : `listingId`, `reservationId`, `importId`, `deliveryId`, `webhookSecret`, `simReservationId` sont gardés dans les variables de collection.\n- **Production** : toute écriture est ignorée tant que `autoriserEcrituresProduction` ne vaut pas `oui`. Les lectures passent.\n- `Remettre le sandbox à zéro` est ignorée tant que `confirmerRemiseAZero` ne vaut pas `oui`.\n\nDocumentation complète : https://developers.localoge.com · Spécification OpenAPI : https://developers.localoge.com/openapi.yaml",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// 1. Un environnement choisi, et une clé du bon environnement.",
          "const instance = pm.variables.get('instanceAttendue');",
          "if (!pm.variables.get('baseUrl') || !instance) {",
          "  throw new Error('Choisissez l’environnement « Localoge Sandbox » ou « Localoge Production » en haut à droite de Postman.');",
          "}",
          "const publique = pm.request.url.getPath() === '/instance';",
          "const cle = pm.variables.get('apiKey') || '';",
          "if (!publique) {",
          "  if (!cle) throw new Error('Renseignez votre clé dans la variable apiKey de l’environnement (clé lok_test_… pour le sandbox).');",
          "  const prefixe = instance === 'production' ? 'lok_live_' : 'lok_test_';",
          "  if (!cle.startsWith(prefixe)) throw new Error('Cet environnement attend une clé ' + prefixe + '… : les clés de test ne marchent que sur le sandbox, les clés live qu’en production.');",
          "}",
          "",
          "// 2. Garde-fou production : aucune écriture tant que autoriserEcrituresProduction ne vaut pas « oui ».",
          "//    Exécuter toute la collection en production créerait un vrai logement et une vraie réservation.",
          "const lecture = ['GET', 'HEAD', 'OPTIONS'].includes(pm.request.method);",
          "const echange = pm.request.url.getPath().endsWith('/oauth/token');",
          "if (instance === 'production' && !lecture && !echange && pm.variables.get('autoriserEcrituresProduction') !== 'oui') {",
          "  console.warn('Écriture ignorée en production : passez autoriserEcrituresProduction à « oui » pour l’envoyer.');",
          "  pm.execution.skipRequest();",
          "}",
          "",
          "// 3. Un jeu d'essai : identifiants et dates du scénario (régénérés par « Vérifier sa clé »).",
          "if (!pm.collectionVariables.get('runId')) {",
          "  const run = Date.now().toString(36);",
          "  const jour = (n) => { const x = new Date(); x.setUTCHours(0, 0, 0, 0); x.setUTCDate(x.getUTCDate() + n); return x.toISOString().slice(0, 10); };",
          "  // Arrivée entre J+200 et J+320 : loin des séjours réels, et différente d'un passage à l'autre.",
          "  const base = 200 + (Date.now() % 120);",
          "  pm.collectionVariables.set('runId', run);",
          "  pm.collectionVariables.set('startedAt', new Date(Date.now() - 60000).toISOString());",
          "  pm.collectionVariables.set('externalReservationId', 'PM-RES-' + run);",
          "  pm.collectionVariables.set('checkIn', jour(base));",
          "  pm.collectionVariables.set('rateDay2', jour(base + 1));",
          "  pm.collectionVariables.set('rateDay3', jour(base + 2));",
          "  pm.collectionVariables.set('checkOut', jour(base + 3));",
          "  pm.collectionVariables.set('modifiedCheckOut', jour(base + 4));",
          "  pm.collectionVariables.set('closedDay1', jour(base + 20));",
          "  pm.collectionVariables.set('closedDay2', jour(base + 21));",
          "  pm.collectionVariables.set('calendarTo', jour(base + 30));",
          "}"
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Contrôles communs à toutes les réponses de l'API.",
          "const ct = pm.response.headers.get('Content-Type') || '';",
          "pm.test('Réponse JSON', () => pm.expect(ct).to.include('application/json'));",
          "pm.test('Pas d’erreur serveur', () => pm.expect(pm.response.code).to.be.below(500));",
          "if (ct.includes('application/json') && pm.request.url.getPath().includes('/api/v1/channel/')) {",
          "  const r = pm.response.json();",
          "  pm.test('Enveloppe { success, environment, data | error }', () => {",
          "    pm.expect(r).to.have.property('success');",
          "    if (r.success) {",
          "      pm.expect(r).to.have.property('data');",
          "      pm.expect(r.environment).to.eql(pm.variables.get('instanceAttendue'));",
          "    } else {",
          "      pm.expect(r.error).to.include.keys(['code', 'message', 'request_id']);",
          "    }",
          "  });",
          "  pm.test('En-têtes de débit X-RateLimit-*', () => {",
          "    pm.expect(pm.response.headers.has('X-RateLimit-Limit')).to.be.true;",
          "    pm.expect(pm.response.headers.has('X-RateLimit-Remaining')).to.be.true;",
          "  });",
          "}"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "propertyId",
      "value": "POSTMAN-DEMO-1",
      "type": "string",
      "description": "Votre identifiant de logement pour le scénario."
    },
    {
      "key": "hostRef",
      "value": "",
      "type": "string",
      "description": "host_ref de l’hôte (rendu par « Échanger le code »). Vide : le compte hôte rattaché à votre accès."
    },
    {
      "key": "listingId",
      "value": "",
      "type": "string",
      "description": "Une annonce existante de l'hôte, gardée par « Lister les annonces existantes de l'hôte »."
    },
    {
      "key": "mediaId",
      "value": "inconnue",
      "type": "string",
      "description": "Le media_id d'une photo que vous avez déposée. Par défaut « inconnue » : la requête montre alors le refus 404."
    },
    {
      "key": "authCode",
      "value": "code-a-remplacer",
      "type": "string",
      "description": "Le code reçu sur votre adresse de retour après l’autorisation de l’hôte."
    },
    {
      "key": "webhookUrl",
      "value": "",
      "type": "string",
      "description": "Votre URL de réception HTTPS. Vide : le miroir de Localoge."
    },
    {
      "key": "confirmerRemiseAZero",
      "value": "non",
      "type": "string",
      "description": "« oui » pour autoriser la remise à zéro du sandbox."
    },
    {
      "key": "autoriserEcrituresProduction",
      "value": "non",
      "type": "string",
      "description": "« oui » pour autoriser les écritures en production."
    }
  ],
  "item": [
    {
      "name": "Compte",
      "description": "Vérifier la clé, l’instance et la conformité.",
      "item": [
        {
          "id": "localoge-instance",
          "name": "Sur quelle instance suis-je ?",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json();",
                  "pm.test('Champs instance', () => pm.expect(j).to.include.keys([\"instance\"]));",
                  "pm.test('Instance attendue par l’environnement', () => pm.expect(j.instance).to.eql(pm.variables.get('instanceAttendue')));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{rootUrl}}/instance",
              "host": [
                "{{rootUrl}}"
              ],
              "path": [
                "instance"
              ]
            },
            "description": "Route publique, sans clé. Répond `sandbox` ou `production` : la première chose à vérifier quand un appel se comporte bizarrement.\n\nDocumentation : https://developers.localoge.com/sandbox/\n\n---\n\n**EN.** Public route, no key. Returns `sandbox` or `production`: the first thing to check when a call behaves oddly.",
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{rootUrl}}/instance",
                  "host": [
                    "{{rootUrl}}"
                  ],
                  "path": [
                    "instance"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"instance\": \"sandbox\",\n  \"sandbox_url\": \"https://sandbox.localoge.com\",\n  \"production_url\": \"https://localoge.com\",\n  \"developers_url\": \"https://developers.localoge.com\"\n}"
            }
          ]
        },
        {
          "id": "localoge-ping",
          "name": "Vérifier sa clé (ping)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs partner, environment, key_id, scopes, server_time', () => pm.expect(d).to.include.keys([\"partner\",\"environment\",\"key_id\",\"scopes\",\"server_time\"]));",
                  "pm.test('Environnement de la clé = instance', () => pm.expect(d.environment).to.eql(pm.variables.get('instanceAttendue')));",
                  "if (d.partner !== undefined && d.partner !== null) pm.collectionVariables.set('partnerSlug', d.partner);",
                  "pm.collectionVariables.unset('runId');"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/ping",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "ping"
              ]
            },
            "description": "Vérifie la clé sans rien créer. Rend le partenaire, l'environnement, l'identifiant public de la clé et ses portées.\n\nCette requête démarre aussi un **nouveau jeu d'essai** : les identifiants de réservation et les dates du scénario sont régénérés à chaque passage.\n\nDocumentation : https://developers.localoge.com/authentification/\n\n---\n\n**EN.** Checks the key without creating anything: partner, environment, public key id and scopes. Also starts a new test run (fresh reservation ids and dates)."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/ping",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "ping"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"partner\": \"demo-pms-test-claude\",\n    \"environment\": \"sandbox\",\n    \"key_id\": \"lok_test_3f9a2c1e\",\n    \"scopes\": [],\n    \"server_time\": \"2026-09-29T20:12:51.915Z\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-conformance",
          "name": "Relire sa conformité",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Objet de conformité', () => pm.expect(d).to.be.an('object'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/conformance",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "conformance"
              ]
            },
            "description": "La liste des vérifications que Localoge fait avant d'ouvrir la production, et leur état pour votre intégration.\n\nDocumentation : https://developers.localoge.com/conformite/\n\n---\n\n**EN.** The checks Localoge runs before opening production, and their state for your integration."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/conformance",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "conformance"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"passed\": 17,\n    \"failed\": 0,\n    \"warnings\": 0,\n    \"checks\": [\n      {\n        \"id\": \"auth\",\n        \"label\": \"Authentification\",\n        \"status\": \"pass\",\n        \"detail\": \"GET /ping a répondu 200.\"\n      },\n      {\n        \"id\": \"property_created\",\n        \"label\": \"Création d'un logement\",\n        \"status\": \"pass\",\n        \"detail\": \"3 logement(s) créé(s).\"\n      },\n      {\n        \"id\": \"property_idempotent\",\n        \"label\": \"Republication idempotente\",\n        \"status\": \"pass\",\n        \"detail\": \"Un logement renvoyé à l'identique a répondu 200 sans doublon.\"\n      }\n    ]\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Hôtes et autorisations",
      "description": "Échanger le code d’autorisation d’un hôte contre son host_ref.",
      "item": [
        {
          "id": "localoge-oauth",
          "name": "Échanger le code d'autorisation d'un hôte",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 403', () => pm.expect(pm.response.code).to.be.oneOf([200, 403]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "if (pm.response.code === 200) {",
                  "  pm.test('host_ref rendu', () => pm.expect(d.host_ref).to.match(/^lh_/));",
                  "  pm.collectionVariables.set('hostRef', d.host_ref);",
                  "} else {",
                  "  pm.test('Code refusé proprement', () => { pm.expect(j.success).to.eql(false); pm.expect(j.error.code).to.eql('FORBIDDEN'); });",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/oauth/token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "oauth",
                "token"
              ]
            },
            "description": "Après que l'hôte vous a autorisé sur notre page, vous recevez un `code` (valable 10 minutes, à usage unique) sur votre adresse de retour. Échangez-le ici contre un `host_ref`, à mettre dans chaque envoi de logement de cet hôte.\n\nRemplacez la variable `authCode` par le code reçu. Avec la valeur par défaut, la réponse est un 403 `FORBIDDEN` : c'est attendu, et le test l'accepte.\n\nSans `host_ref` (variable vide), le logement va sur le compte hôte rattaché à votre accès : en sandbox, votre hôte de test.\n\nDocumentation : https://developers.localoge.com/connecter-un-hote/\n\n---\n\n**EN.** Exchange the one-time `code` (valid 10 minutes) received after the host authorized you for a `host_ref`, to be sent with each property of that host. With the default placeholder code the answer is a 403 `FORBIDDEN`, which the test accepts.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"{{authCode}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (403)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/oauth/token",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "oauth",
                    "token"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"code\": \"{{authCode}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"FORBIDDEN\",\n    \"message\": \"This key is not allowed to perform this action: code inconnu\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-oauth-revoke",
          "name": "Annoncer la déconnexion d'un hôte",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 403', () => pm.expect(pm.response.code).to.be.oneOf([200, 403]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "if (pm.response.code === 200) pm.test('Liaison révoquée', () => pm.expect(d.revoked).to.eql(true));",
                  "else pm.test('Code FORBIDDEN', () => pm.expect(j.error.code).to.eql('FORBIDDEN'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/oauth/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "oauth",
                "revoke"
              ]
            },
            "description": "À appeler quand votre hôte retire Localoge de votre logiciel : la liaison est révoquée chez nous (idempotent, `already_revoked: true` si elle l'était déjà). Aucun `host.revoked` ne vous est renvoyé pour votre propre demande, et l'hôte n'est pas prévenu par e-mail. Il peut se reconnecter plus tard par `/connect` : le même `host_ref` est réutilisé. 403 `FORBIDDEN` si le `host_ref` est inconnu de votre compte.\n\nDocumentation : https://developers.localoge.com/connecter-un-hote/",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"host_ref\": \"{{hostRef}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "id": "localoge-host-listings",
          "name": "Lister les annonces existantes de l'hôte",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 403', () => pm.expect(pm.response.code).to.be.oneOf([200, 403]));",
                  "const j = pm.response.json(); const d = (j && j.data) || [];",
                  "if (pm.response.code === 200) pm.test('data est un tableau', () => pm.expect(d).to.be.an('array'));",
                  "else pm.test('Code FORBIDDEN', () => pm.expect(j.error.code).to.eql('FORBIDDEN'));",
                  "if (pm.response.code === 200 && d[0]) pm.collectionVariables.set('listingId', d[0].listing_id);"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/host/listings?host_ref={{hostRef}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "host",
                "listings"
              ],
              "query": [
                {
                  "key": "host_ref",
                  "value": "{{hostRef}}",
                  "description": "Le host_ref rendu par oauth/token."
                }
              ]
            },
            "description": "Les annonces que l'hôte relié a DÉJÀ sur Localoge, au format complet d'un logement, avec `listing_id`, `status` et `external_property_id` (null tant que vous ne l'avez pas reprise). Les annonces gérées pour un propriétaire en font partie : `role: \"manager\"` et `managed_for.display_name`, `managed_for.first_name` et `managed_for.last_name` (le gestionnaire y écrit disponibilités, tarifs, extras, fiche et photos ; `payout` reste null). 403 `FORBIDDEN` si le host_ref est inconnu ou si l'hôte a retiré son autorisation.\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** List the listings the linked host already has on Localoge, so you can claim them instead of creating duplicates."
          },
          "response": []
        },
        {
          "id": "localoge-host-listing-claim",
          "name": "Reprendre une annonce existante (claim)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200, 201, 403 ou 404', () => pm.expect(pm.response.code).to.be.oneOf([200, 201, 403, 404]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "if (pm.response.code < 300) pm.test('claimed', () => pm.expect(d.claimed).to.eql(true));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/host/listings/{{listingId}}/claim",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "host",
                "listings",
                "{{listingId}}",
                "claim"
              ]
            },
            "description": "Rattache une annonce existante de l'hôte à VOTRE identifiant, sans la recréer ni la dépublier. Idempotent : 201 la première fois, 200 ensuite. 409 `CONFLICT` si l'identifiant sert déjà à une autre annonce, ou si l'annonce est déjà reliée sous un autre identifiant. `{{listingId}}` : un `listing_id` rendu par la requête précédente.\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** Claim an existing listing of the linked host under your own external_property_id. Idempotent.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"host_ref\": \"{{hostRef}}\",\n  \"external_property_id\": \"{{propertyId}}-REPRISE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "id": "localoge-owners",
          "name": "Lister les propriétaires connectés",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.eql(200));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('owners est un tableau', () => pm.expect(d.owners).to.be.an('array'));",
                  "if (d.owners && d.owners[0]) pm.test('Champs host_ref, host_name, status, connected_at, revoked_at, listings_count', () => pm.expect(d.owners[0]).to.include.keys(['host_ref','host_name','status','connected_at','revoked_at','listings_count']));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/owners?limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "owners"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "1 à 500."
                }
              ]
            },
            "description": "Les propriétaires qui ont autorisé votre logiciel : `host_ref`, `host_name`, `status` (`connected` ou `revoked`), `connected_at`, `revoked_at`, `listings_count`. Jamais d'e-mail. Paginé par curseur (`next_cursor`).\n\nDocumentation : https://developers.localoge.com/connecter-un-hote/\n\n---\n\n**EN.** Lists the owners who authorised your software, with their status and number of linked listings. No email or personal data."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Logements",
      "description": "Créer, mettre à jour, relire, paginer, importer en masse.",
      "item": [
        {
          "id": "localoge-propertyCreate",
          "name": "Créer ou mettre à jour un logement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 201', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs listing_id, external_property_id, created, status, missing', () => pm.expect(d).to.include.keys([\"listing_id\",\"external_property_id\",\"created\",\"status\",\"missing\"]));",
                  "pm.test('d.missing est un tableau', () => pm.expect(d.missing).to.be.an('array'));",
                  "pm.test('Même identifiant externe', () => pm.expect(d.external_property_id).to.eql(pm.variables.get('propertyId')));",
                  "if (d.listing_id !== undefined && d.listing_id !== null) pm.collectionVariables.set('listingId', d.listing_id);"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties"
              ]
            },
            "description": "Crée le logement, ou le met à jour s'il existe déjà : l'opération est **idempotente** sur `external_property_id`. 201 à la création, 200 ensuite (`unchanged: true` si rien n'a changé).\n\n⚠️ Tous les montants sont en **centimes** (`9500` = 95,00 €).\n\n`missing` liste ce qui empêche encore la publication (photos, régime `usage_type`…). En sandbox, `status: published` ne met rien en ligne : le logement reste invisible du public.\n\nLes photos sont rapatriées par Localoge (HTTPS, JPEG/PNG/WebP, 8 Mo au plus).\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** Creates the property, or updates it if it already exists: **idempotent** on `external_property_id`. 201 on creation, 200 afterwards (`unchanged: true` when nothing changed). Amounts in **cents**. `missing` lists what still blocks publication.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"external_property_id\": \"{{propertyId}}\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"title\": \"Appartement lumineux près du port\",\n  \"description\": \"Appartement de 45 m² au deuxième étage, à deux rues du port. Séjour avec canapé convertible, chambre avec lit double, cuisine équipée et balcon exposé sud.\",\n  \"property_type\": \"apartment\",\n  \"address\": \"12 quai de la Tourette\",\n  \"city\": \"Sète\",\n  \"postal_code\": \"34200\",\n  \"country\": \"FR\",\n  \"latitude\": 43.4028,\n  \"longitude\": 3.6966,\n  \"max_guests\": 4,\n  \"bedrooms\": 1,\n  \"beds\": 2,\n  \"bathrooms\": 1,\n  \"surface_m2\": 45,\n  \"amenities\": [\n    \"wifi\",\n    \"kitchen\",\n    \"washer\",\n    \"heating\"\n  ],\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"cancellation_policy\": \"moderate\",\n  \"base_price\": 9500,\n  \"min_price\": 7000,\n  \"max_price\": 18000,\n  \"cleaning_fee\": 4000,\n  \"currency\": \"EUR\",\n  \"min_nights\": 2,\n  \"usage_type\": \"secondary_residence\",\n  \"photos\": [\n    {\n      \"url\": \"{{rootUrl}}/og-localoge.png\",\n      \"position\": 0,\n      \"caption\": \"Séjour\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/og-devenir-hote.png\",\n      \"position\": 1,\n      \"caption\": \"Chambre\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/logo.png\",\n      \"position\": 2,\n      \"caption\": \"Balcon\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"title\": \"Appartement lumineux près du port\",\n  \"description\": \"Appartement de 45 m² au deuxième étage, à deux rues du port. Séjour avec canapé convertible, chambre avec lit double, cuisine équipée et balcon exposé sud.\",\n  \"property_type\": \"apartment\",\n  \"address\": \"12 quai de la Tourette\",\n  \"city\": \"Sète\",\n  \"postal_code\": \"34200\",\n  \"country\": \"FR\",\n  \"latitude\": 43.4028,\n  \"longitude\": 3.6966,\n  \"max_guests\": 4,\n  \"bedrooms\": 1,\n  \"beds\": 2,\n  \"bathrooms\": 1,\n  \"surface_m2\": 45,\n  \"amenities\": [\n    \"wifi\",\n    \"kitchen\",\n    \"washer\",\n    \"heating\"\n  ],\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"cancellation_policy\": \"moderate\",\n  \"base_price\": 9500,\n  \"min_price\": 7000,\n  \"max_price\": 18000,\n  \"cleaning_fee\": 4000,\n  \"currency\": \"EUR\",\n  \"min_nights\": 2,\n  \"usage_type\": \"secondary_residence\",\n  \"photos\": [\n    {\n      \"url\": \"{{rootUrl}}/og-localoge.png\",\n      \"position\": 0,\n      \"caption\": \"Séjour\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/og-devenir-hote.png\",\n      \"position\": 1,\n      \"caption\": \"Chambre\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/logo.png\",\n      \"position\": 2,\n      \"caption\": \"Balcon\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"created\": false,\n    \"unchanged\": false,\n    \"status\": \"paused\",\n    \"missing\": [],\n    \"photos\": {\n      \"total\": 3,\n      \"ajoutees\": 0,\n      \"inchangees\": 3,\n      \"refusees\": []\n    }\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyCreateFull",
          "name": "Créer un logement COMPLET (tous les champs)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 201', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs listing_id, external_property_id, created, status, missing', () => pm.expect(d).to.include.keys([\"listing_id\",\"external_property_id\",\"created\",\"status\",\"missing\"]));",
                  "pm.test('d.missing est un tableau', () => pm.expect(d.missing).to.be.an('array'));",
                  "pm.test('Aucun équipement ignoré', () => pm.expect(d.amenities_ignored || []).to.eql([]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties"
              ]
            },
            "description": "**Tous les champs qu'accepte `POST /properties`, dans un seul envoi** : une vraie villa à Agde, valeurs cohérentes entre elles. Aucun n'est obligatoire **sauf `external_property_id` et `title`**. Envoyez ceux que votre logiciel connaît, laissez les autres : un champ **absent ne change rien** chez nous. Ce qui manque encore pour publier est listé dans `missing`.\n\n⚠️ Montants en **centimes** (`25000` = 250,00 €), heures en `HH:MM`, jours de semaine de `0` (dimanche) à `6` (samedi).\n\n### Les champs, par thème\n\n- **Identité** : `external_property_id` (obligatoire), `host_ref`, `link_existing_listing_id` et `force_new` (création seulement : réponse à un `409 POSSIBLE_DUPLICATE`, rattacher à l'annonce existante de l'hôte ou créer quand même), `title` (obligatoire, 160 car.), `description`, `property_type`, `property_form` (précision de forme, ex. `LONGERE` pour un gîte), `space` (`entire` ou `annex`), `usage_type`, `registration_number`, `tax_category` (classement du meublé).\n- **Adresse** : `address`, `city`, `postal_code`, `country`, `latitude`, `longitude`, `floor`, `has_elevator`.\n- **Capacité** : `max_guests`, `bedrooms`, `beds`, `bathrooms`, `surface_m2`.\n- **Prix et frais** : `currency`, `base_price`, `weekend_price`, `min_price` + `max_price` (ensemble), `cleaning_fee`, `host_covers_guest_fee`, `turnover_checkin_time`, `public_host_name`, `deposit_amount`, `extra_guest_fee` + `extra_guest_after`, `linens_included`, `linens_available`, `linens_price`, `towels_available`, `towels_price`, `tourist_tax_rate`, `auto_cancel_on_payment_fail`.\n- **Remises** : `length_discounts` (paliers, non cumulables), `early_bird_pct` + `early_bird_months`, `last_minute_pct` + `last_minute_days`.\n- **Règles de séjour et horaires** : `check_in_time`, `check_out_time`, `min_nights`, `max_nights`, `no_arrival_days`, `no_departure_days`, `cancellation_policy`, `pets_policy`, `smoking_policy`, `adults_only`, `parties_policy`, `infants_policy`, `commercial_photography_policy`, `children_note`, `quiet_hours_from`, `quiet_hours_to`, `check_in_until`, `house_rules_extra`, `checkin_method`.\n- **Réservation** : `instant_book`, `lead_days`, `lead_cutoff_hour`, `booking_window_days`.\n- **Exigences voyageur** : `guest_require_identity`, `guest_require_phone`, `guest_min_stays`, `guest_no_negative_review`, `min_guest_rating` (sur 10).\n- **Équipements** : `amenities` (clés Localoge, les inconnues reviennent dans `amenities_ignored`).\n- **Photos et vidéos** : `photos[]` (`url`, `position`, `caption`, `room`), `videos[]` (facultatif : `url`, `thumbnail_url`, `duration_sec`, `caption`, `position`). Trois photos au minimum pour publier.\n- **Options payantes** : `options[]` (`label`, `unit_price`, `max_quantity`, `billing`), remplacent toute la liste.\n- **Saisons** : `seasons[]` (séjour minimum par période), remplacent toutes les saisons, chevauchement refusé.\n- **Traductions** : `translations.en|de|es|it` (`title`, `description`).\n- **Livret d'accueil** : `guide` (wifi, rubriques `arrival`, `wifi`, `home`, `house_rules`, `departure`, `surroundings`, `help`, adresses, moment d'envoi).\n- **Versement** : `payout_model` (`host` ou `owner`).\n\nLa vidéo est **facultative** : supprimez le bloc `videos` si vous n'en avez pas. `null` ne sert qu'à **retirer** un réglage là où c'est prévu (`max_nights`, remises, `booking_window_days`, `lead_cutoff_hour`, `checkin_method`, `property_form`, `length_discounts`).\n\nDocumentation : https://developers.localoge.com/logements/#tous-les-champs-dun-logement\n\n---\n\n**EN.** EVERY field accepted by `POST /properties`, in one request: a real villa in Agde with consistent values. **None is required except `external_property_id` and `title`.** Send what your software knows; an **absent field changes nothing** on our side, and what is still needed to publish is listed in `missing`. Amounts in cents, times as `HH:MM`, weekdays from `0` (Sunday) to `6` (Saturday). Groups: identity, address, capacity, prices and fees, discounts, stay rules and times, booking, guest requirements, amenities, photos and videos (video optional), paid options, seasons, translations, welcome guide, payout. `null` only removes a setting where documented (`max_nights`, discounts, `booking_window_days`, `lead_cutoff_hour`, `checkin_method`, `property_form`, `length_discounts`).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Exemple documenté : Création (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"listing_id\": \"9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d\",\n    \"external_property_id\": \"POSTMAN-DEMO-1-COMPLET\",\n    \"created\": true,\n    \"unchanged\": false,\n    \"status\": \"published\",\n    \"missing\": [],\n    \"photos\": {\n      \"total\": 6,\n      \"ajoutees\": 6,\n      \"inchangees\": 0,\n      \"refusees\": []\n    },\n    \"videos\": {\n      \"total\": 1,\n      \"ajoutees\": 1,\n      \"inchangees\": 0,\n      \"refusees\": []\n    }\n  }\n}"
            },
            {
              "name": "Exemple documenté : Rejeu identique (200, unchanged)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"listing_id\": \"9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d\",\n    \"external_property_id\": \"POSTMAN-DEMO-1-COMPLET\",\n    \"created\": false,\n    \"unchanged\": true,\n    \"status\": \"published\",\n    \"missing\": []\n  }\n}"
            },
            {
              "name": "Exemple documenté : 400 INVALID_PAYLOAD (schéma)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PAYLOAD\",\n    \"message\": \"The request body is invalid: max_nights: max_nights must be greater than or equal to min_nights\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 400 INVALID_PAYLOAD (cohérence avec l’annonce)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PAYLOAD\",\n    \"message\": \"The request body is invalid: property_form \\\"CABANE_PERCHEE\\\" is not valid for property_type \\\"villa\\\"\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 401 UNAUTHORIZED",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"UNAUTHORIZED\",\n    \"message\": \"Invalid or missing API key\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 403 FORBIDDEN (host_ref)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"FORBIDDEN\",\n    \"message\": \"This key is not allowed to perform this action: unknown host_ref, or the host revoked your authorization\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 403 FORBIDDEN (portée)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"FORBIDDEN\",\n    \"message\": \"This key is not allowed to perform this action: this key lacks the scope properties:write\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 429 RATE_LIMITED",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-COMPLET\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"link_existing_listing_id\": \"\",\n  \"force_new\": false,\n  \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n  \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n  \"property_type\": \"villa\",\n  \"property_form\": null,\n  \"space\": \"entire\",\n  \"usage_type\": \"secondary_residence\",\n  \"registration_number\": \"34003000123AB\",\n  \"tax_category\": \"4\",\n  \"address\": \"14 impasse des Tamaris\",\n  \"city\": \"Agde\",\n  \"postal_code\": \"34300\",\n  \"country\": \"FR\",\n  \"latitude\": 43.2988,\n  \"longitude\": 3.4596,\n  \"floor\": 0,\n  \"has_elevator\": false,\n  \"max_guests\": 8,\n  \"bedrooms\": 4,\n  \"beds\": 5,\n  \"sleeping_areas\": [\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"king\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"double\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"chambre\",\n      \"beds\": [\n        {\n          \"type\": \"superpose\",\n          \"count\": 1\n        }\n      ]\n    },\n    {\n      \"room\": \"salon\",\n      \"beds\": [\n        {\n          \"type\": \"canape\",\n          \"count\": 1\n        }\n      ]\n    }\n  ],\n  \"bathrooms\": 3,\n  \"surface_m2\": 180,\n  \"currency\": \"EUR\",\n  \"base_price\": 25000,\n  \"weekend_price\": 28000,\n  \"min_price\": 20000,\n  \"max_price\": 45000,\n  \"cleaning_fee\": 12000,\n  \"host_covers_guest_fee\": false,\n  \"turnover_checkin_time\": null,\n  \"public_host_name\": \"Gîtes Le Beauséjour\",\n  \"deposit_amount\": 100000,\n  \"extra_guest_fee\": 2000,\n  \"extra_guest_after\": 6,\n  \"linens_included\": false,\n  \"linens_available\": true,\n  \"linens_price\": 1500,\n  \"towels_available\": true,\n  \"towels_price\": 800,\n  \"tourist_tax_rate\": 0,\n  \"auto_cancel_on_payment_fail\": false,\n  \"length_discounts\": [\n    {\n      \"nights\": 7,\n      \"pct\": 10\n    },\n    {\n      \"nights\": 28,\n      \"pct\": 20\n    }\n  ],\n  \"early_bird_pct\": 5,\n  \"early_bird_months\": 6,\n  \"last_minute_pct\": 10,\n  \"last_minute_days\": 7,\n  \"vitrine_discount_pct\": 5,\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"min_nights\": 3,\n  \"max_nights\": 28,\n  \"no_arrival_days\": [\n    0\n  ],\n  \"no_departure_days\": [\n    0\n  ],\n  \"cancellation_policy\": \"moderate\",\n  \"long_stay_cancellation_policy\": \"long_firm\",\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"adults_only\": false,\n  \"parties_policy\": \"forbidden\",\n  \"infants_policy\": \"allowed\",\n  \"commercial_photography_policy\": \"forbidden\",\n  \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n  \"quiet_hours_from\": \"22:00\",\n  \"quiet_hours_to\": \"08:00\",\n  \"check_in_until\": \"21:00\",\n  \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n  \"notices\": [\n    \"stairs\",\n    \"no_parking\"\n  ],\n  \"pets_max\": 2,\n  \"weekend_days\": [\n    5,\n    6\n  ],\n  \"preparation_days\": 1,\n  \"deposit_may_be_requested\": true,\n  \"pet_fee\": {\n    \"amount\": 1000,\n    \"mode\": \"stay\"\n  },\n  \"checkin_method\": \"lockbox\",\n  \"instant_book\": true,\n  \"lead_days\": 1,\n  \"lead_cutoff_hour\": 18,\n  \"booking_window_days\": 365,\n  \"guest_require_identity\": true,\n  \"guest_require_phone\": true,\n  \"guest_min_stays\": 0,\n  \"guest_no_negative_review\": true,\n  \"min_guest_rating\": 7,\n  \"amenities\": [\n    \"wifi\",\n    \"air_conditioning\",\n    \"heating\",\n    \"kitchen\",\n    \"oven\",\n    \"dishwasher\",\n    \"washer\",\n    \"dryer\",\n    \"coffee_machine\",\n    \"tv\",\n    \"pool\",\n    \"garden\",\n    \"garden_furniture\",\n    \"bbq\",\n    \"free_parking\",\n    \"beach_nearby\",\n    \"crib\",\n    \"high_chair\",\n    \"iron\",\n    \"hair_dryer\",\n    \"smoke_detector\",\n    \"first_aid\"\n  ],\n  \"nearby_overrides\": {\n    \"supermarket\": 700,\n    \"beach\": \"seafront\"\n  },\n  \"photos\": [\n    {\n      \"url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n      \"position\": 0,\n      \"caption\": \"La villa et la piscine chauffée\",\n      \"room\": \"Extérieur\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n      \"position\": 1,\n      \"caption\": \"Séjour ouvert sur la terrasse\",\n      \"room\": \"Séjour\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n      \"position\": 2,\n      \"caption\": \"Cuisine équipée\",\n      \"room\": \"Cuisine\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n      \"position\": 3,\n      \"caption\": \"Suite parentale, lit 160\",\n      \"room\": \"Chambre 1\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n      \"position\": 4,\n      \"caption\": \"Salle d’eau de la suite\",\n      \"room\": \"Salle de bain\"\n    },\n    {\n      \"url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n      \"position\": 5,\n      \"caption\": \"La plage de la Tamarissière, à 600 m\",\n      \"room\": \"Alentours\"\n    }\n  ],\n  \"videos\": [\n    {\n      \"url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n      \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n      \"duration_sec\": 5,\n      \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n      \"position\": 0\n    }\n  ],\n  \"options\": [\n    {\n      \"label\": \"Lit bébé et chaise haute\",\n      \"unit_price\": 0,\n      \"max_quantity\": 1,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Ménage supplémentaire en cours de séjour\",\n      \"unit_price\": 6000,\n      \"max_quantity\": 3,\n      \"billing\": \"per_stay\"\n    },\n    {\n      \"label\": \"Panier petit-déjeuner\",\n      \"unit_price\": 1200,\n      \"max_quantity\": 8,\n      \"billing\": \"per_night\"\n    }\n  ],\n  \"seasons\": [\n    {\n      \"label\": \"Haute saison\",\n      \"start_month\": 7,\n      \"start_day\": 1,\n      \"end_month\": 8,\n      \"end_day\": 31,\n      \"min_nights\": 7\n    },\n    {\n      \"label\": \"Fêtes de fin d’année\",\n      \"start_month\": 12,\n      \"start_day\": 20,\n      \"end_month\": 1,\n      \"end_day\": 5,\n      \"min_nights\": 4\n    }\n  ],\n  \"translations\": {\n    \"en\": {\n      \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n      \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\"\n    },\n    \"de\": {\n      \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n      \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\"\n    },\n    \"es\": {\n      \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n      \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\"\n    },\n    \"it\": {\n      \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n      \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\"\n    }\n  },\n  \"guide\": {\n    \"enabled\": true,\n    \"wifi_name\": \"Tamaris-5G\",\n    \"wifi_password\": \"soleil-et-sel-2026\",\n    \"sections\": {\n      \"arrival\": {\n        \"entries\": [\n          {\n            \"title\": \"La boîte à clés\",\n            \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n          },\n          {\n            \"title\": \"Stationnement\",\n            \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n          }\n        ]\n      },\n      \"wifi\": {\n        \"entries\": [\n          {\n            \"title\": \"La box\",\n            \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n          }\n        ]\n      },\n      \"home\": {\n        \"entries\": [\n          {\n            \"title\": \"Piscine\",\n            \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n          },\n          {\n            \"title\": \"Lave-linge\",\n            \"text\": \"Dans le cellier, lessive fournie.\"\n          }\n        ]\n      },\n      \"house_rules\": {\n        \"entries\": [\n          {\n            \"title\": \"Le calme\",\n            \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n          }\n        ]\n      },\n      \"departure\": {\n        \"entries\": [\n          {\n            \"title\": \"Avant de partir\",\n            \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n          }\n        ]\n      },\n      \"surroundings\": {\n        \"entries\": [\n          {\n            \"title\": \"Marché\",\n            \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n          }\n        ]\n      },\n      \"help\": {\n        \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n      }\n    },\n    \"addresses\": [\n      {\n        \"name\": \"Boulangerie du Port\",\n        \"category\": \"Boulangerie\",\n        \"distance\": \"8 min à pied\",\n        \"phone\": \"+33467000000\",\n        \"note\": \"Ouverte le dimanche matin.\"\n      },\n      {\n        \"name\": \"Pharmacie de la Tamarissière\",\n        \"category\": \"Pharmacie\",\n        \"distance\": \"5 min en voiture\"\n      }\n    ],\n    \"send_trigger\": \"before_checkin\",\n    \"send_offset_days\": 1,\n    \"send_time\": \"10:00\",\n    \"send_last_minute\": true\n  },\n  \"payout_model\": \"host\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "0"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyGetFull",
          "name": "Relire le logement COMPLET",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs external_property_id, listing_id, status, missing, title, extra_guest_fee, length_discounts, instant_book, guest_require_identity, options, seasons, translations, guide, photos, videos', () => pm.expect(d).to.include.keys([\"external_property_id\",\"listing_id\",\"status\",\"missing\",\"title\",\"extra_guest_fee\",\"length_discounts\",\"instant_book\",\"guest_require_identity\",\"options\",\"seasons\",\"translations\",\"guide\",\"photos\",\"videos\"]));",
                  "pm.test('Mêmes valeurs qu’à l’envoi', () => { pm.expect(d.extra_guest_fee).to.eql(2000); pm.expect(d.check_in_time).to.eql('16:00'); pm.expect(d.seasons.length).to.eql(2); });"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}-COMPLET",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}-COMPLET"
              ]
            },
            "description": "Tout ce que Localoge a enregistré, **sous les mêmes noms qu'à l'écriture** : un envoi relu doit pouvoir être comparé champ par champ à ce que vous avez posté. S'y ajoutent `listing_id`, `status`, `missing`, `coordinates_source`, `last_sync_at`, et pour chaque photo son `media_id`, l'URL servie (`url`) et l'URL d'origine (`source_url`). Les traductions disent si elles sont encore à jour (`up_to_date`).\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** Everything Localoge stored, **under the same names as on write**, plus `listing_id`, `status`, `missing`, `coordinates_source`, `last_sync_at`, and for each photo its `media_id`, served `url` and original `source_url`. Translations say whether they are still `up_to_date`."
          },
          "response": [
            {
              "name": "Exemple documenté : Relecture complète (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}-COMPLET",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}-COMPLET"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1-COMPLET\",\n    \"link_existing_listing_id\": \"\",\n    \"force_new\": false,\n    \"title\": \"Villa les Tamaris, piscine chauffée à 600 m de la plage\",\n    \"description\": \"Villa de plain-pied de 180 m² sur un terrain clos de 900 m², au calme d'une impasse du quartier de la Tamarissière, à 600 m de la plage et 10 minutes à pied du port. Quatre chambres dont une suite parentale, grand séjour ouvert sur la terrasse couverte, cuisine équipée, piscine chauffée de 10 x 5 m (mai à octobre) et barbecue.\",\n    \"property_type\": \"villa\",\n    \"property_form\": null,\n    \"space\": \"entire\",\n    \"usage_type\": \"secondary_residence\",\n    \"registration_number\": \"34003000123AB\",\n    \"tax_category\": \"4\",\n    \"address\": \"14 impasse des Tamaris\",\n    \"city\": \"Agde\",\n    \"postal_code\": \"34300\",\n    \"country\": \"FR\",\n    \"latitude\": 43.2988,\n    \"longitude\": 3.4596,\n    \"floor\": 0,\n    \"has_elevator\": false,\n    \"max_guests\": 8,\n    \"bedrooms\": 4,\n    \"beds\": 5,\n    \"sleeping_areas\": [\n      {\n        \"room\": \"chambre\",\n        \"beds\": [\n          {\n            \"type\": \"king\",\n            \"count\": 1\n          }\n        ]\n      },\n      {\n        \"room\": \"chambre\",\n        \"beds\": [\n          {\n            \"type\": \"double\",\n            \"count\": 1\n          }\n        ]\n      },\n      {\n        \"room\": \"chambre\",\n        \"beds\": [\n          {\n            \"type\": \"double\",\n            \"count\": 1\n          }\n        ]\n      },\n      {\n        \"room\": \"chambre\",\n        \"beds\": [\n          {\n            \"type\": \"superpose\",\n            \"count\": 1\n          }\n        ]\n      },\n      {\n        \"room\": \"salon\",\n        \"beds\": [\n          {\n            \"type\": \"canape\",\n            \"count\": 1\n          }\n        ]\n      }\n    ],\n    \"bathrooms\": 3,\n    \"surface_m2\": 180,\n    \"currency\": \"EUR\",\n    \"base_price\": 25000,\n    \"weekend_price\": 28000,\n    \"min_price\": 20000,\n    \"max_price\": 45000,\n    \"cleaning_fee\": 12000,\n    \"host_covers_guest_fee\": false,\n    \"turnover_checkin_time\": null,\n    \"public_host_name\": \"Gîtes Le Beauséjour\",\n    \"deposit_amount\": 100000,\n    \"extra_guest_fee\": 2000,\n    \"extra_guest_after\": 6,\n    \"linens_included\": false,\n    \"linens_available\": true,\n    \"linens_price\": 1500,\n    \"towels_available\": true,\n    \"towels_price\": 800,\n    \"tourist_tax_rate\": 0,\n    \"auto_cancel_on_payment_fail\": false,\n    \"length_discounts\": [\n      {\n        \"nights\": 7,\n        \"pct\": 10\n      },\n      {\n        \"nights\": 28,\n        \"pct\": 20\n      }\n    ],\n    \"early_bird_pct\": 5,\n    \"early_bird_months\": 6,\n    \"last_minute_pct\": 10,\n    \"last_minute_days\": 7,\n    \"vitrine_discount_pct\": 5,\n    \"check_in_time\": \"16:00\",\n    \"check_out_time\": \"10:00\",\n    \"min_nights\": 3,\n    \"max_nights\": 28,\n    \"no_arrival_days\": [\n      0\n    ],\n    \"no_departure_days\": [\n      0\n    ],\n    \"cancellation_policy\": \"moderate\",\n    \"long_stay_cancellation_policy\": \"long_firm\",\n    \"pets_policy\": \"forbidden\",\n    \"smoking_policy\": \"forbidden\",\n    \"adults_only\": false,\n    \"parties_policy\": \"forbidden\",\n    \"infants_policy\": \"allowed\",\n    \"commercial_photography_policy\": \"forbidden\",\n    \"children_note\": \"Lit bébé et chaise haute sur demande.\",\n    \"quiet_hours_from\": \"22:00\",\n    \"quiet_hours_to\": \"08:00\",\n    \"check_in_until\": \"21:00\",\n    \"house_rules_extra\": \"Merci de trier vos déchets et de ne pas fumer sur la terrasse.\",\n    \"notices\": [\n      \"stairs\",\n      \"no_parking\"\n    ],\n    \"pets_max\": 2,\n    \"weekend_days\": [\n      5,\n      6\n    ],\n    \"preparation_days\": 1,\n    \"deposit_may_be_requested\": true,\n    \"pet_fee\": {\n      \"amount\": 1000,\n      \"mode\": \"stay\"\n    },\n    \"checkin_method\": \"lockbox\",\n    \"instant_book\": true,\n    \"lead_days\": 1,\n    \"lead_cutoff_hour\": 18,\n    \"booking_window_days\": 365,\n    \"guest_require_identity\": true,\n    \"guest_require_phone\": true,\n    \"guest_min_stays\": 0,\n    \"guest_no_negative_review\": true,\n    \"min_guest_rating\": 7,\n    \"amenities\": [\n      \"wifi\",\n      \"air_conditioning\",\n      \"heating\",\n      \"kitchen\",\n      \"oven\",\n      \"dishwasher\",\n      \"washer\",\n      \"dryer\",\n      \"coffee_machine\",\n      \"tv\",\n      \"pool\",\n      \"garden\",\n      \"garden_furniture\",\n      \"bbq\",\n      \"free_parking\",\n      \"beach_nearby\",\n      \"crib\",\n      \"high_chair\",\n      \"iron\",\n      \"hair_dryer\",\n      \"smoke_detector\",\n      \"first_aid\"\n    ],\n    \"nearby_overrides\": {\n      \"supermarket\": 700,\n      \"beach\": \"seafront\"\n    },\n    \"options\": [\n      {\n        \"label\": \"Lit bébé et chaise haute\",\n        \"unit_price\": 0,\n        \"max_quantity\": 1,\n        \"billing\": \"per_stay\"\n      },\n      {\n        \"label\": \"Ménage supplémentaire en cours de séjour\",\n        \"unit_price\": 6000,\n        \"max_quantity\": 3,\n        \"billing\": \"per_stay\"\n      },\n      {\n        \"label\": \"Panier petit-déjeuner\",\n        \"unit_price\": 1200,\n        \"max_quantity\": 8,\n        \"billing\": \"per_night\"\n      }\n    ],\n    \"seasons\": [\n      {\n        \"label\": \"Haute saison\",\n        \"start_month\": 7,\n        \"start_day\": 1,\n        \"end_month\": 8,\n        \"end_day\": 31,\n        \"min_nights\": 7\n      },\n      {\n        \"label\": \"Fêtes de fin d’année\",\n        \"start_month\": 12,\n        \"start_day\": 20,\n        \"end_month\": 1,\n        \"end_day\": 5,\n        \"min_nights\": 4\n      }\n    ],\n    \"payout_model\": \"host\",\n    \"photos\": [\n      {\n        \"media_id\": \"7a1e0000-3c2d-4b5a-8f9e-0a1b2c3d4e5f\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0000-5d3e-4f6a-9b1c-2e3f4a5b6c7d.jpg\",\n        \"source_url\": \"https://picsum.photos/id/1040/1600/1067.jpg\",\n        \"position\": 0,\n        \"is_cover\": true,\n        \"caption\": \"La villa et la piscine chauffée\",\n        \"room\": \"Extérieur\"\n      },\n      {\n        \"media_id\": \"7a1e0001-3c2d-4b5a-8f9e-0a1b2c3d4e5f\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0001-5d3e-4f6a-9b1c-2e3f4a5b6c7d.jpg\",\n        \"source_url\": \"https://picsum.photos/id/1047/1600/1067.jpg\",\n        \"position\": 1,\n        \"is_cover\": false,\n        \"caption\": \"Séjour ouvert sur la terrasse\",\n        \"room\": \"Séjour\"\n      },\n      {\n        \"media_id\": \"7a1e0002-3c2d-4b5a-8f9e-0a1b2c3d4e5f\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0002-5d3e-4f6a-9b1c-2e3f4a5b6c7d.jpg\",\n        \"source_url\": \"https://picsum.photos/id/164/1600/1067.jpg\",\n        \"position\": 2,\n        \"is_cover\": false,\n        \"caption\": \"Cuisine équipée\",\n        \"room\": \"Cuisine\"\n      },\n      {\n        \"media_id\": \"7a1e0003-3c2d-4b5a-8f9e-0a1b2c3d4e5f\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0003-5d3e-4f6a-9b1c-2e3f4a5b6c7d.jpg\",\n        \"source_url\": \"https://picsum.photos/id/1036/1600/1067.jpg\",\n        \"position\": 3,\n        \"is_cover\": false,\n        \"caption\": \"Suite parentale, lit 160\",\n        \"room\": \"Chambre 1\"\n      },\n      {\n        \"media_id\": \"7a1e0004-3c2d-4b5a-8f9e-0a1b2c3d4e5f\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0004-5d3e-4f6a-9b1c-2e3f4a5b6c7d.jpg\",\n        \"source_url\": \"https://picsum.photos/id/1029/1600/1067.jpg\",\n        \"position\": 4,\n        \"is_cover\": false,\n        \"caption\": \"Salle d’eau de la suite\",\n        \"room\": \"Salle de bain\"\n      },\n      {\n        \"media_id\": \"7a1e0005-3c2d-4b5a-8f9e-0a1b2c3d4e5f\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0005-5d3e-4f6a-9b1c-2e3f4a5b6c7d.jpg\",\n        \"source_url\": \"https://picsum.photos/id/1018/1600/1067.jpg\",\n        \"position\": 5,\n        \"is_cover\": false,\n        \"caption\": \"La plage de la Tamarissière, à 600 m\",\n        \"room\": \"Alentours\"\n      }\n    ],\n    \"videos\": [\n      {\n        \"media_id\": \"8b2f0000-4d3e-5c6b-9a0f-1b2c3d4e5f60\",\n        \"url\": \"https://sandbox.localoge.com/uploads/9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d/0b7c0010-5d3e-4f6a-9b1c-2e3f4a5b6c7d.mp4\",\n        \"source_url\": \"https://download.samplelib.com/mp4/sample-5s.mp4\",\n        \"thumbnail_url\": \"https://picsum.photos/id/1040/1280/720.jpg\",\n        \"duration_sec\": 5,\n        \"caption\": \"Visite de la villa (facultative : retirez ce bloc si vous n’avez pas de vidéo)\",\n        \"position\": 0\n      }\n    ],\n    \"translations\": {\n      \"en\": {\n        \"title\": \"Villa les Tamaris, heated pool 600 m from the beach\",\n        \"description\": \"Single-storey 180 m² villa on a 900 m² enclosed plot, quiet cul-de-sac in La Tamarissière, 600 m from the beach. Four bedrooms, heated 10 x 5 m pool (May to October), barbecue.\",\n        \"source\": \"host\",\n        \"up_to_date\": true\n      },\n      \"de\": {\n        \"title\": \"Villa les Tamaris, beheizter Pool 600 m vom Strand\",\n        \"description\": \"Ebenerdige Villa mit 180 m² auf einem eingezäunten Grundstück von 900 m², 600 m vom Strand. Vier Schlafzimmer, beheizter Pool 10 x 5 m (Mai bis Oktober), Grill.\",\n        \"source\": \"host\",\n        \"up_to_date\": true\n      },\n      \"es\": {\n        \"title\": \"Villa les Tamaris, piscina climatizada a 600 m de la playa\",\n        \"description\": \"Villa de una planta de 180 m² en una parcela cerrada de 900 m², a 600 m de la playa. Cuatro dormitorios, piscina climatizada de 10 x 5 m (de mayo a octubre), barbacoa.\",\n        \"source\": \"host\",\n        \"up_to_date\": true\n      },\n      \"it\": {\n        \"title\": \"Villa les Tamaris, piscina riscaldata a 600 m dalla spiaggia\",\n        \"description\": \"Villa su un unico livello di 180 m² su un terreno recintato di 900 m², a 600 m dalla spiaggia. Quattro camere, piscina riscaldata 10 x 5 m (da maggio a ottobre), barbecue.\",\n        \"source\": \"host\",\n        \"up_to_date\": true\n      }\n    },\n    \"guide\": {\n      \"exists\": true,\n      \"enabled\": true,\n      \"wifi_name\": \"Tamaris-5G\",\n      \"wifi_password\": \"soleil-et-sel-2026\",\n      \"sections\": {\n        \"arrival\": {\n          \"entries\": [\n            {\n              \"title\": \"La boîte à clés\",\n              \"text\": \"À gauche du portail. Le code vous est envoyé la veille de votre arrivée.\"\n            },\n            {\n              \"title\": \"Stationnement\",\n              \"text\": \"Deux places dans la cour, portail à fermer derrière vous.\"\n            }\n          ]\n        },\n        \"wifi\": {\n          \"entries\": [\n            {\n              \"title\": \"La box\",\n              \"text\": \"Dans le meuble TV du séjour. Si le réseau tombe, débranchez-la dix secondes.\"\n            }\n          ]\n        },\n        \"home\": {\n          \"entries\": [\n            {\n              \"title\": \"Piscine\",\n              \"text\": \"Chauffée de mai à octobre. Bâche à remettre le soir.\"\n            },\n            {\n              \"title\": \"Lave-linge\",\n              \"text\": \"Dans le cellier, lessive fournie.\"\n            }\n          ]\n        },\n        \"house_rules\": {\n          \"entries\": [\n            {\n              \"title\": \"Le calme\",\n              \"text\": \"Pas de musique en extérieur après 22 h, les voisins sont proches.\"\n            }\n          ]\n        },\n        \"departure\": {\n          \"entries\": [\n            {\n              \"title\": \"Avant de partir\",\n              \"text\": \"Lave-vaisselle lancé, poubelles au bac jaune ou gris, clés dans la boîte.\"\n            }\n          ]\n        },\n        \"surroundings\": {\n          \"entries\": [\n            {\n              \"title\": \"Marché\",\n              \"text\": \"Jeudi matin sur la promenade, à Agde centre.\"\n            }\n          ]\n        },\n        \"help\": {\n          \"entries\": [\n            {\n              \"title\": null,\n              \"text\": \"Coupure d’eau ou de courant : le tableau et la vanne sont dans le cellier.\"\n            }\n          ]\n        }\n      },\n      \"addresses\": [\n        {\n          \"name\": \"Boulangerie du Port\",\n          \"category\": \"Boulangerie\",\n          \"distance\": \"8 min à pied\",\n          \"phone\": \"+33467000000\",\n          \"note\": \"Ouverte le dimanche matin.\"\n        },\n        {\n          \"name\": \"Pharmacie de la Tamarissière\",\n          \"category\": \"Pharmacie\",\n          \"distance\": \"5 min en voiture\",\n          \"phone\": null,\n          \"note\": null\n        }\n      ],\n      \"send_trigger\": \"before_checkin\",\n      \"send_offset_days\": 1,\n      \"send_time\": \"10:00\",\n      \"send_last_minute\": true\n    },\n    \"listing_id\": \"9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d\",\n    \"status\": \"published\",\n    \"missing\": [],\n    \"coordinates_source\": \"provided\",\n    \"last_sync_at\": \"2026-09-30T08:12:52.000Z\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyCreateMinimal",
          "name": "Créer un logement MINIMAL (deux champs)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 201', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs listing_id, status, missing', () => pm.expect(d).to.include.keys([\"listing_id\",\"status\",\"missing\"]));",
                  "pm.test('Brouillon avec ce qui manque', () => pm.expect(d.missing.length).to.be.above(0));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties"
              ]
            },
            "description": "Le contraste avec la requête précédente : **`external_property_id` et `title` suffisent**. Le logement est créé en `draft`, et `missing` dit tout ce qu'il faudra envoyer ensuite pour qu'il soit publié (adresse, prix, photos, régime…). Complétez-le plus tard avec `PUT /properties/{id}` : ce que vous n'envoyez pas reste en place.\n\n`host_ref` n'est pas obligatoire dans le schéma, mais sans lui le logement va sur le compte hôte rattaché à votre accès (cas du gestionnaire qui pousse ses propres logements).\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** The contrast: **`external_property_id` and `title` are enough**. The property is created as `draft` and `missing` tells you what to send next. Complete it later with `PUT /properties/{id}`: what you do not send stays in place.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"external_property_id\": \"{{propertyId}}-MINIMAL\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"title\": \"Studio à compléter\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Exemple documenté : Brouillon (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_property_id\": \"{{propertyId}}-MINIMAL\",\n  \"host_ref\": \"{{hostRef}}\",\n  \"title\": \"Studio à compléter\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"listing_id\": \"9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d\",\n    \"external_property_id\": \"POSTMAN-DEMO-1-MINIMAL\",\n    \"created\": true,\n    \"unchanged\": false,\n    \"status\": \"draft\",\n    \"missing\": [\n      \"photos\",\n      \"price\",\n      \"address\",\n      \"description\",\n      \"usage_type\"\n    ]\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyUpdate",
          "name": "Mettre à jour un logement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 201', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs listing_id, status, missing, unchanged', () => pm.expect(d).to.include.keys([\"listing_id\",\"status\",\"missing\",\"unchanged\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}"
              ]
            },
            "description": "Même traitement que la création, l'identifiant venant du chemin. Un nouvel envoi d'un logement archivé le désarchive.\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** Same processing as creation, the id coming from the path. Sending an archived property again unarchives it.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"host_ref\": \"{{hostRef}}\",\n  \"title\": \"Appartement lumineux près du port, balcon sud\",\n  \"description\": \"Appartement de 45 m² au deuxième étage, à deux rues du port. Séjour avec canapé convertible, chambre avec lit double, cuisine équipée et balcon exposé sud.\",\n  \"property_type\": \"apartment\",\n  \"address\": \"12 quai de la Tourette\",\n  \"city\": \"Sète\",\n  \"postal_code\": \"34200\",\n  \"country\": \"FR\",\n  \"latitude\": 43.4028,\n  \"longitude\": 3.6966,\n  \"max_guests\": 4,\n  \"bedrooms\": 1,\n  \"beds\": 2,\n  \"bathrooms\": 1,\n  \"surface_m2\": 45,\n  \"amenities\": [\n    \"wifi\",\n    \"kitchen\",\n    \"washer\",\n    \"heating\"\n  ],\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"cancellation_policy\": \"moderate\",\n  \"base_price\": 9900,\n  \"min_price\": 7000,\n  \"max_price\": 18000,\n  \"cleaning_fee\": 4000,\n  \"currency\": \"EUR\",\n  \"min_nights\": 2,\n  \"usage_type\": \"secondary_residence\",\n  \"photos\": [\n    {\n      \"url\": \"{{rootUrl}}/og-localoge.png\",\n      \"position\": 0,\n      \"caption\": \"Séjour\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/og-devenir-hote.png\",\n      \"position\": 1,\n      \"caption\": \"Chambre\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/logo.png\",\n      \"position\": 2,\n      \"caption\": \"Balcon\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"host_ref\": \"{{hostRef}}\",\n  \"title\": \"Appartement lumineux près du port, balcon sud\",\n  \"description\": \"Appartement de 45 m² au deuxième étage, à deux rues du port. Séjour avec canapé convertible, chambre avec lit double, cuisine équipée et balcon exposé sud.\",\n  \"property_type\": \"apartment\",\n  \"address\": \"12 quai de la Tourette\",\n  \"city\": \"Sète\",\n  \"postal_code\": \"34200\",\n  \"country\": \"FR\",\n  \"latitude\": 43.4028,\n  \"longitude\": 3.6966,\n  \"max_guests\": 4,\n  \"bedrooms\": 1,\n  \"beds\": 2,\n  \"bathrooms\": 1,\n  \"surface_m2\": 45,\n  \"amenities\": [\n    \"wifi\",\n    \"kitchen\",\n    \"washer\",\n    \"heating\"\n  ],\n  \"pets_policy\": \"forbidden\",\n  \"smoking_policy\": \"forbidden\",\n  \"check_in_time\": \"16:00\",\n  \"check_out_time\": \"10:00\",\n  \"cancellation_policy\": \"moderate\",\n  \"base_price\": 9900,\n  \"min_price\": 7000,\n  \"max_price\": 18000,\n  \"cleaning_fee\": 4000,\n  \"currency\": \"EUR\",\n  \"min_nights\": 2,\n  \"usage_type\": \"secondary_residence\",\n  \"photos\": [\n    {\n      \"url\": \"{{rootUrl}}/og-localoge.png\",\n      \"position\": 0,\n      \"caption\": \"Séjour\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/og-devenir-hote.png\",\n      \"position\": 1,\n      \"caption\": \"Chambre\"\n    },\n    {\n      \"url\": \"{{rootUrl}}/logo.png\",\n      \"position\": 2,\n      \"caption\": \"Balcon\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"created\": false,\n    \"unchanged\": false,\n    \"status\": \"paused\",\n    \"missing\": [],\n    \"photos\": {\n      \"total\": 3,\n      \"ajoutees\": 0,\n      \"inchangees\": 3,\n      \"refusees\": []\n    }\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyGet",
          "name": "Relire un logement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs external_property_id, listing_id, status, title, city, max_guests, base_price, last_sync_at', () => pm.expect(d).to.include.keys([\"external_property_id\",\"listing_id\",\"status\",\"title\",\"city\",\"max_guests\",\"base_price\",\"last_sync_at\"]));",
                  "pm.test('Prix de base en centimes (entier)', () => pm.expect(Number.isInteger(d.base_price)).to.be.true);"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}"
              ]
            },
            "description": "Ce que Localoge a compris de votre envoi. Depuis le 30/09/2026 : **tous les champs qu'on peut écrire**, sous les mêmes noms (montants en centimes, heures en HH:MM), plus le statut, `missing`, les coordonnées et leur origine, la date de dernière synchronisation. Voir « Relire le logement COMPLET » pour la réponse entière.\n\nDocumentation : https://developers.localoge.com/logements/\n\n---\n\n**EN.** What Localoge understood: since 30/09/2026 every writable field under its write name, plus status, `missing`, coordinates and their origin, last sync date."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"paused\",\n    \"title\": \"Appartement lumineux près du port, balcon sud\",\n    \"city\": \"Sète\",\n    \"country\": \"FR\",\n    \"max_guests\": 4,\n    \"base_price\": 9900,\n    \"payout_model\": \"host\",\n    \"last_sync_at\": \"2026-09-29T20:12:52.000Z\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 404 PROPERTY_NOT_FOUND",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"PROPERTY_NOT_FOUND\",\n    \"message\": \"Property not found\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyList",
          "name": "Lister ses logements (page 1)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs properties, next_cursor, truncated', () => pm.expect(d).to.include.keys([\"properties\",\"next_cursor\",\"truncated\"]));",
                  "pm.test('d.properties est un tableau', () => pm.expect(d.properties).to.be.an('array'));",
                  "pm.test('Au plus une ligne (limit=1)', () => pm.expect(d.properties.length).to.be.at.most(1));",
                  "pm.collectionVariables.set('propertiesCursor', d.next_cursor || '');"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties?limit=1",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "1",
                  "description": "Taille de page, 1 à 500 (100 par défaut)."
                },
                {
                  "key": "updated_since",
                  "value": "",
                  "description": "Optionnel : date ISO 8601, ne rend que les logements modifiés depuis.",
                  "disabled": true
                }
              ]
            },
            "description": "Pagination par **curseur** : passez `next_cursor` tel quel dans `cursor` pour la page suivante ; `null` veut dire qu'il n'y en a plus. `limit=1` ici pour montrer l'enchaînement.\n\nDocumentation : https://developers.localoge.com/pagination/\n\n---\n\n**EN.** Cursor pagination: pass `next_cursor` as is in `cursor` for the next page; `null` means there is none. `limit=1` here to show the chaining."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties?limit=1",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "1",
                      "description": "Taille de page, 1 à 500 (100 par défaut)."
                    },
                    {
                      "key": "updated_since",
                      "value": "",
                      "description": "Optionnel : date ISO 8601, ne rend que les logements modifiés depuis.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"properties\": [\n      {\n        \"external_property_id\": \"PMS-A2\",\n        \"listing_id\": \"09a16e34-de5c-4981-9e7c-7f1d40143671\",\n        \"status\": \"published\",\n        \"link_status\": \"active\",\n        \"updated_at\": \"2026-09-29T14:57:47.000Z\"\n      }\n    ],\n    \"truncated\": true,\n    \"next_cursor\": \"eyJ0IjoiMjAyNi0wOS0yOVQxNDo1Nzo0Ny4wMDBaIiwiaWQiOiIyOTg4ZTI3My02YWI4LTRmN2QtOGI0My1hODZmYzY2N2RmZDcifQ\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyListNext",
          "name": "Lister ses logements (page suivante)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs properties, next_cursor', () => pm.expect(d).to.include.keys([\"properties\",\"next_cursor\"]));",
                  "pm.test('d.properties est un tableau', () => pm.expect(d.properties).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties?limit=1&cursor={{propertiesCursor}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "1"
                },
                {
                  "key": "cursor",
                  "value": "{{propertiesCursor}}",
                  "description": "Le next_cursor de la page précédente, recopié tel quel."
                }
              ]
            },
            "description": "La page suivante, avec le `next_cursor` rendu par la requête précédente. Un curseur abîmé ou fabriqué reçoit 400 `INVALID_PAYLOAD`.\n\nDocumentation : https://developers.localoge.com/pagination/\n\n---\n\n**EN.** The next page, with the `next_cursor` returned by the previous request. A damaged or forged cursor gets 400 `INVALID_PAYLOAD`."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties?limit=1&cursor={{propertiesCursor}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "1"
                    },
                    {
                      "key": "cursor",
                      "value": "{{propertiesCursor}}",
                      "description": "Le next_cursor de la page précédente, recopié tel quel."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"properties\": [\n      {\n        \"external_property_id\": \"PMS-A1\",\n        \"listing_id\": \"c4ab8e4c-4042-47bf-acba-a9eeae807ba4\",\n        \"status\": \"published\",\n        \"link_status\": \"active\",\n        \"updated_at\": \"2026-09-29T14:57:47.000Z\"\n      }\n    ],\n    \"truncated\": true,\n    \"next_cursor\": \"eyJ0IjoiMjAyNi0wOS0yOVQxNDo1Nzo0Ny4wMDBaIiwiaWQiOiJmOGNlZjlkNy0zNjUyLTQyMTItYTU3NS1lN2VjNTRhMDMwNjEifQ\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyPhotos",
          "name": "Relire les photos et vidéos",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs photos, videos', () => pm.expect(d).to.include.keys([\"photos\",\"videos\"]));",
                  "pm.test('d.photos est un tableau', () => pm.expect(d.photos).to.be.an('array'));",
                  "pm.test('d.videos est un tableau', () => pm.expect(d.videos).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/photos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "photos"
              ]
            },
            "description": "Les médias tels que Localoge les porte : identifiant, URL servie, position, URL d'origine. La couverture est la première photo : c'est l'ordre qui la décide.\n\nDocumentation : https://developers.localoge.com/photos/\n\n---\n\n**EN.** Media as Localoge holds them: id, served URL, position, original URL, caption, cover flag."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/photos",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "photos"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"photos\": [\n      {\n        \"media_id\": \"fe584b66-59a2-4a56-9827-22f95dc61021\",\n        \"url\": \"https://sandbox.localoge.com/uploads/cc4bcdf5-5d19-4096-88a6-803cef96ae6f/989fcd30-b85c-4945-af3a-339effc6bd7c.png\",\n        \"position\": 0,\n        \"is_cover\": true,\n        \"source_url\": \"https://sandbox.localoge.com/og-localoge.png\",\n        \"caption\": \"Séjour\"\n      },\n      {\n        \"media_id\": \"bdb3bdc4-6bc2-4dc4-96d4-a8fddbc2f6a4\",\n        \"url\": \"https://sandbox.localoge.com/uploads/cc4bcdf5-5d19-4096-88a6-803cef96ae6f/57112aa2-24c0-448d-b5d8-160c58dadae4.png\",\n        \"position\": 1,\n        \"is_cover\": false,\n        \"source_url\": \"https://sandbox.localoge.com/og-devenir-hote.png\",\n        \"caption\": \"Chambre\"\n      },\n      {\n        \"media_id\": \"28dbc9ce-f7c0-4ea8-be9d-d0e41e034cb7\",\n        \"url\": \"https://sandbox.localoge.com/uploads/cc4bcdf5-5d19-4096-88a6-803cef96ae6f/e5c76310-c0b9-4b4e-999a-7e0fa17b3d73.png\",\n        \"position\": 2,\n        \"is_cover\": false,\n        \"source_url\": \"https://sandbox.localoge.com/logo.png\",\n        \"caption\": \"Balcon\"\n      }\n    ],\n    \"videos\": []\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-propertyExtrasGet",
          "name": "Relire les extras (options payantes)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs extras', () => pm.expect(d).to.include.keys([\"extras\"]));",
                  "pm.test('d.extras est un tableau', () => pm.expect(d.extras).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/extras",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "extras"
              ]
            },
            "description": "La liste « Options & extras » de la fiche Localoge : nom, prix en centimes, unité (`per_stay` ou `per_night`), quantité maximale, icône. `source` vaut `partner` pour une ligne posée par l'API, `host` pour une ligne saisie par l'hôte.\n\n---\n\n**EN.** The extras (paid options) of the property, as the host sees them in Options & extras. `source` tells who set each line."
          },
          "response": []
        },
        {
          "id": "localoge-propertyExtrasPut",
          "name": "Remplacer les extras (options payantes)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs extras', () => pm.expect(d).to.include.keys([\"extras\"]));",
                  "pm.test('d.extras est un tableau', () => pm.expect(d.extras).to.be.an('array'));",
                  "pm.test('Deux extras posés', () => pm.expect(d.extras.length).to.eql(2));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/extras",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "extras"
              ]
            },
            "description": "Remplacement intégral et idempotent : la liste envoyée devient toute la liste (un extra absent est retiré). 40 au plus. Prix en centimes, 0 = offert. L'hôte voit ces lignes dans Options & extras.\n\n---\n\n**EN.** Full replacement, idempotent. Prices in cents (0 = free); units `per_stay` or `per_night`. Lines are marked `source: partner`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"extras\": [\n    {\n      \"name\": \"Linge de lit\",\n      \"price\": 250,\n      \"unit\": \"per_stay\",\n      \"max_quantity\": 4\n    },\n    {\n      \"name\": \"Petit-déjeuner\",\n      \"price\": 900,\n      \"unit\": \"per_night\",\n      \"max_quantity\": 6\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "id": "localoge-bulk",
          "name": "Importer un parc (import massif)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 202', () => pm.expect(pm.response.code).to.be.oneOf([202]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs import_id, accepted, status_url', () => pm.expect(d).to.include.keys([\"import_id\",\"accepted\",\"status_url\"]));",
                  "if (d.import_id !== undefined && d.import_id !== null) pm.collectionVariables.set('importId', d.import_id);"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties/bulk",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "bulk"
              ]
            },
            "description": "Des centaines de logements d'un coup. Localoge **accepte** (202) et traite en tâche de fond ; suivez l'avancement avec `status_url`.\n\nDocumentation : https://developers.localoge.com/import-massif/\n\n---\n\n**EN.** Hundreds of properties at once. Localoge **accepts** (202) and processes in the background; follow `status_url`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"properties\": [\n    {\n      \"external_property_id\": \"{{propertyId}}-B1\",\n      \"host_ref\": \"{{hostRef}}\",\n      \"title\": \"Studio cosy centre-ville\",\n      \"city\": \"Montpellier\",\n      \"country\": \"FR\",\n      \"max_guests\": 2,\n      \"base_price\": 6500,\n      \"currency\": \"EUR\"\n    },\n    {\n      \"external_property_id\": \"{{propertyId}}-B2\",\n      \"host_ref\": \"{{hostRef}}\",\n      \"title\": \"Maison avec jardin\",\n      \"city\": \"Agde\",\n      \"country\": \"FR\",\n      \"max_guests\": 6,\n      \"base_price\": 14000,\n      \"currency\": \"EUR\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (202)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties/bulk",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "bulk"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"properties\": [\n    {\n      \"external_property_id\": \"{{propertyId}}-B1\",\n      \"host_ref\": \"{{hostRef}}\",\n      \"title\": \"Studio cosy centre-ville\",\n      \"city\": \"Montpellier\",\n      \"country\": \"FR\",\n      \"max_guests\": 2,\n      \"base_price\": 6500,\n      \"currency\": \"EUR\"\n    },\n    {\n      \"external_property_id\": \"{{propertyId}}-B2\",\n      \"host_ref\": \"{{hostRef}}\",\n      \"title\": \"Maison avec jardin\",\n      \"city\": \"Agde\",\n      \"country\": \"FR\",\n      \"max_guests\": 6,\n      \"base_price\": 14000,\n      \"currency\": \"EUR\"\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Accepted",
              "code": 202,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"import_id\": \"dd063388-e2e9-4e44-834d-20481fd5c558\",\n    \"accepted\": 2,\n    \"status_url\": \"/api/v1/channel/imports/dd063388-e2e9-4e44-834d-20481fd5c558\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-import",
          "name": "Suivre un import",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Objet d’avancement', () => pm.expect(d).to.be.an('object').that.is.not.empty);"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/imports/{{importId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports",
                "{{importId}}"
              ]
            },
            "description": "Où en est l'import : compteurs et résultat par logement.\n\nDocumentation : https://developers.localoge.com/import-massif/\n\n---\n\n**EN.** Progress of a bulk import: counters and per-property result."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/imports/{{importId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "imports",
                    "{{importId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"id\": \"dd063388-e2e9-4e44-834d-20481fd5c558\",\n    \"status\": \"en_attente\",\n    \"total\": 2,\n    \"processed\": 0,\n    \"succeeded\": 0,\n    \"failed\": 0,\n    \"errors\": [],\n    \"started_at\": null,\n    \"ended_at\": null\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-photoUpload",
          "name": "Déposer une photo (fichier)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201, 200 ou 400 (sans fichier joint)', () => pm.expect(pm.response.code).to.be.oneOf([201, 200, 400]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/photos",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "photos"
              ]
            },
            "description": "Quand vos photos ne sont pas sur une adresse https publique. `ref` = VOTRE identifiant de la photo : la renvoyer ne crée rien (position et légende seulement). JPEG, PNG ou WebP, 8 Mo au plus. La réponse donne le statut de l'annonce et ce qui manque.\n\n---\n\n**EN.** Upload a photo as a file (`multipart/form-data`: `file`, `ref`, `position`, `caption`).",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "ref",
                  "value": "photo-1",
                  "type": "text"
                },
                {
                  "key": "position",
                  "value": "0",
                  "type": "text"
                }
              ]
            }
          },
          "response": []
        },
        {
          "id": "localoge-photoDelete",
          "name": "Retirer une photo déposée",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 404 (photo inconnue)', () => pm.expect(pm.response.code).to.be.oneOf([404]));"
                ]
              }
            }
          ],
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/photos/{{mediaId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "photos",
                "{{mediaId}}"
              ]
            },
            "description": "Seulement une photo que vous avez posée ; une photo ajoutée par l'hôte n'est jamais touchée.\n\n---\n\n**EN.** Remove a photo you posted."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Cycle de vie",
      "description": "Pause et réactivation (l’archivage est dans « Nettoyage »).",
      "item": [
        {
          "id": "localoge-pause",
          "name": "Mettre un logement en pause",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs external_property_id, listing_id, status, link_status', () => pm.expect(d).to.include.keys([\"external_property_id\",\"listing_id\",\"status\",\"link_status\"]));",
                  "pm.test('En pause', () => pm.expect(d.status).to.eql('paused'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/pause",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "pause"
              ]
            },
            "description": "Le logement sort de la vente, rien n'est perdu.\n\nDocumentation : https://developers.localoge.com/cycle-de-vie/\n\n---\n\n**EN.** The property leaves the sale, nothing is lost."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/pause",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "pause"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"paused\",\n    \"link_status\": \"paused\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-ownerInvitation",
          "name": "Lien d'invitation du propriétaire",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 409', () => pm.expect(pm.response.code).to.be.oneOf([200, 409]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/owner-invitation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "owner-invitation"
              ]
            },
            "description": "Pour un logement en payout_model owner : le lien opaque que le propriétaire ouvre pour créer son compte de paiement. Même lien à chaque appel, sans expiration. 409 PAYOUT_MODEL_NOT_OWNER sinon.\n\nDocumentation : https://developers.localoge.com/versement/"
          },
          "response": []
        },
        {
          "id": "localoge-activate",
          "name": "Réactiver un logement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs status, link_status', () => pm.expect(d).to.include.keys([\"status\",\"link_status\"]));",
                  "pm.test('Lien actif', () => pm.expect(d.link_status).to.eql('active'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/activate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "activate"
              ]
            },
            "description": "Repasse par la règle de publication (complétude, validation). Refusé en 403 si Localoge a verrouillé l'annonce.\n\nDocumentation : https://developers.localoge.com/cycle-de-vie/\n\n---\n\n**EN.** Goes through the publication rule again (completeness, validation). 403 if Localoge locked the listing."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/activate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "activate"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"pending_validation\",\n    \"link_status\": \"active\"\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Tarifs",
      "description": "Prix par nuit et restrictions de séjour.",
      "item": [
        {
          "id": "localoge-ratesProperty",
          "name": "Poser des prix par nuit (par logement)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs property_id, applied, skipped', () => pm.expect(d).to.include.keys([\"property_id\",\"applied\",\"skipped\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/rates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "rates"
              ]
            },
            "description": "Tous les champs d'un jour : `price` (**centimes**), `min_nights` (séjour minimum pour une arrivée ce jour-là), `no_arrival`, `no_departure`. Un champ absent ne change rien ; `null` retire une restriction ou le prix de la nuit. 1 000 jours au plus par appel. Il n'existe pas d'autre champ par jour.\n\nDocumentation : https://developers.localoge.com/tarifs/\n\n---\n\n**EN.** Every per-day field: `price` (cents), `min_nights`, `no_arrival`, `no_departure`. An absent field is unchanged, `null` removes a restriction or the night price. Up to 1,000 days per call.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"rates\": [\n    {\n      \"date\": \"{{checkIn}}\",\n      \"price\": 11000,\n      \"min_nights\": 2,\n      \"no_arrival\": false,\n      \"no_departure\": false\n    },\n    {\n      \"date\": \"{{rateDay2}}\",\n      \"price\": 11000\n    },\n    {\n      \"date\": \"{{rateDay3}}\",\n      \"price\": 12500,\n      \"min_nights\": null,\n      \"no_arrival\": null,\n      \"no_departure\": false\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/rates",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "rates"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"rates\": [\n    {\n      \"date\": \"{{checkIn}}\",\n      \"price\": 11000,\n      \"min_nights\": 2,\n      \"no_arrival\": false,\n      \"no_departure\": false\n    },\n    {\n      \"date\": \"{{rateDay2}}\",\n      \"price\": 11000\n    },\n    {\n      \"date\": \"{{rateDay3}}\",\n      \"price\": 12500,\n      \"min_nights\": null,\n      \"no_arrival\": null,\n      \"no_departure\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"property_id\": \"POSTMAN-DEMO-1\",\n    \"applied\": 4,\n    \"skipped\": []\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-rates",
          "name": "Poser des restrictions (forme globale)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs property_id, applied, skipped', () => pm.expect(d).to.include.keys([\"property_id\",\"applied\",\"skipped\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/rates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "rates"
              ]
            },
            "description": "Même opération, l'identifiant dans le corps. Ici : deux nuits minimum pour une arrivée ce jour-là.\n\nDocumentation : https://developers.localoge.com/tarifs/\n\n---\n\n**EN.** Same operation with the id in the body. Here: two nights minimum for an arrival on that day.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"property_id\": \"{{propertyId}}\",\n  \"rates\": [\n    {\n      \"date\": \"{{checkIn}}\",\n      \"min_nights\": 2,\n      \"no_arrival\": false\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/rates",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "rates"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"property_id\": \"{{propertyId}}\",\n  \"rates\": [\n    {\n      \"date\": \"{{checkIn}}\",\n      \"min_nights\": 2,\n      \"no_arrival\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"property_id\": \"POSTMAN-DEMO-1\",\n    \"applied\": 1,\n    \"skipped\": []\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-ratesBatch",
          "name": "Tarifs en lot, par plages (plusieurs logements)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('d.results est un tableau', () => pm.expect(d.results).to.be.an('array'));",
                  "pm.test('Un résultat par logement', () => pm.expect(d.results[0]).to.include.keys(['property_id', 'ok']));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/rates/batch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "rates",
                "batch"
              ]
            },
            "description": "Jusqu'à 50 logements par appel, des plages `date_from`/`date_to` (bornes comprises) et des dates à l'unité, qui l'emportent champ par champ. Un résultat par logement dans `results`, dans l'ordre envoyé : un logement inconnu ou verrouillé n'empêche pas les autres. 1 000 jours au plus par logement.\n\nDocumentation : https://developers.localoge.com/tarifs/\n\n---\n\n**EN.** Up to 50 properties per call, `date_from`/`date_to` ranges (both included) and single dates, which win field by field. One result per property in `results`, in the order sent: an unknown or locked property does not stop the others. Up to 1,000 days per property.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"properties\": [\n    {\n      \"property_id\": \"{{propertyId}}\",\n      \"ranges\": [\n        {\n          \"date_from\": \"{{checkIn}}\",\n          \"date_to\": \"{{rateDay3}}\",\n          \"price\": 11000,\n          \"min_nights\": 2\n        }\n      ],\n      \"rates\": [\n        {\n          \"date\": \"{{rateDay3}}\",\n          \"no_arrival\": true\n        }\n      ]\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Disponibilités",
      "description": "Fermer, rouvrir et relire les nuits (prix et restrictions compris).",
      "item": [
        {
          "id": "localoge-availabilityProperty",
          "name": "Fermer des nuits (par logement)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs property_id, applied, skipped', () => pm.expect(d).to.include.keys([\"property_id\",\"applied\",\"skipped\"]));",
                  "pm.test('d.skipped est un tableau', () => pm.expect(d.skipped).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/availability",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "availability"
              ]
            },
            "description": "Ferme ou rouvre des nuits. Une nuit **vendue** n'est jamais touchée : elle revient dans `skipped` avec sa raison. Jusqu'à 1 000 jours par appel.\n\nDocumentation : https://developers.localoge.com/disponibilites/\n\n---\n\n**EN.** Closes or reopens nights. A **sold** night is never touched: it comes back in `skipped` with its reason. Up to 1,000 days per call.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"availability\": [\n    {\n      \"date\": \"{{closedDay1}}\",\n      \"available\": false\n    },\n    {\n      \"date\": \"{{closedDay2}}\",\n      \"available\": false\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/availability",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "availability"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"availability\": [\n    {\n      \"date\": \"{{closedDay1}}\",\n      \"available\": false\n    },\n    {\n      \"date\": \"{{closedDay2}}\",\n      \"available\": false\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"property_id\": \"POSTMAN-DEMO-1\",\n    \"applied\": 2,\n    \"skipped\": []\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-availability",
          "name": "Rouvrir des nuits (forme globale)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs property_id, applied, skipped', () => pm.expect(d).to.include.keys([\"property_id\",\"applied\",\"skipped\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/availability",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "availability"
              ]
            },
            "description": "Même opération, l'identifiant du logement dans le corps (`property_id`). Rouvrir ne retire que VOS blocages, jamais ceux posés par l'hôte.\n\nDocumentation : https://developers.localoge.com/disponibilites/\n\n---\n\n**EN.** Same operation with the property id in the body (`property_id`). Reopening only removes YOUR blocks, never the host’s.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"property_id\": \"{{propertyId}}\",\n  \"availability\": [\n    {\n      \"date\": \"{{closedDay1}}\",\n      \"available\": true\n    },\n    {\n      \"date\": \"{{closedDay2}}\",\n      \"available\": true\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/availability",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "availability"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"property_id\": \"{{propertyId}}\",\n  \"availability\": [\n    {\n      \"date\": \"{{closedDay1}}\",\n      \"available\": true\n    },\n    {\n      \"date\": \"{{closedDay2}}\",\n      \"available\": true\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"property_id\": \"POSTMAN-DEMO-1\",\n    \"applied\": 2,\n    \"skipped\": []\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-availabilityBatch",
          "name": "Disponibilités en lot, par plages (plusieurs logements)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('d.results est un tableau', () => pm.expect(d.results).to.be.an('array'));",
                  "pm.test('Un résultat par logement', () => pm.expect(d.results[0]).to.include.keys(['property_id', 'ok']));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/availability/batch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "availability",
                "batch"
              ]
            },
            "description": "Jusqu'à 50 logements par appel, des plages `date_from`/`date_to` (bornes comprises) et des dates à l'unité, qui l'emportent. Un résultat par logement dans `results`, dans l'ordre envoyé. Mêmes règles que la route unitaire : une nuit vendue n'est jamais touchée. 1 000 jours au plus par logement.\n\nDocumentation : https://developers.localoge.com/disponibilites/\n\n---\n\n**EN.** Up to 50 properties per call, `date_from`/`date_to` ranges (both included) and single dates, which win. One result per property in `results`, in the order sent. Same rules as the single route: a sold night is never touched. Up to 1,000 days per property.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"properties\": [\n    {\n      \"property_id\": \"{{propertyId}}\",\n      \"ranges\": [\n        {\n          \"date_from\": \"{{closedDay1}}\",\n          \"date_to\": \"{{closedDay2}}\",\n          \"available\": true\n        }\n      ]\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "id": "localoge-calendar",
          "name": "Relire le calendrier",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs blocked, rates, rules', () => pm.expect(d).to.include.keys([\"blocked\",\"rates\",\"rules\"]));",
                  "pm.test('d.rates est un tableau', () => pm.expect(d.rates).to.be.an('array'));",
                  "pm.test('Le prix posé plus haut y figure', () => pm.expect(JSON.stringify(d.rates)).to.include(pm.variables.get('checkIn')));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/calendar?from={{checkIn}}&to={{calendarTo}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "calendar"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "{{checkIn}}",
                  "description": "Premier jour, YYYY-MM-DD."
                },
                {
                  "key": "to",
                  "value": "{{calendarTo}}",
                  "description": "Dernier jour, YYYY-MM-DD."
                }
              ]
            },
            "description": "Le calendrier tel que Localoge le voit : disponibilité, prix et restrictions jour par jour.\n\nDocumentation : https://developers.localoge.com/disponibilites/\n\n---\n\n**EN.** The calendar as Localoge sees it: blocked nights, price and restrictions per day."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/calendar?from={{checkIn}}&to={{calendarTo}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "calendar"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "{{checkIn}}",
                      "description": "Premier jour, YYYY-MM-DD."
                    },
                    {
                      "key": "to",
                      "value": "{{calendarTo}}",
                      "description": "Dernier jour, YYYY-MM-DD."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"blocked\": [],\n    \"rates\": [\n      {\n        \"date\": \"2027-06-19\",\n        \"price\": 11000\n      },\n      {\n        \"date\": \"2027-06-20\",\n        \"price\": 11000\n      },\n      {\n        \"date\": \"2027-06-21\",\n        \"price\": 12500\n      }\n    ],\n    \"rules\": [\n      {\n        \"date\": \"2027-06-19\",\n        \"min_nights\": 2,\n        \"no_arrival\": false,\n        \"no_departure\": null\n      },\n      {\n        \"date\": \"2027-06-21\",\n        \"min_nights\": null,\n        \"no_arrival\": null,\n        \"no_departure\": false\n      },\n      {\n        \"date\": \"2027-06-24\",\n        \"min_nights\": 2,\n        \"no_arrival\": false,\n        \"no_departure\": null\n      }\n    ]\n  }\n}"
            },
            {
              "name": "Exemple documenté : 400 INVALID_PAYLOAD (from, to)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/calendar?from={{checkIn}}&to={{calendarTo}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "calendar"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "{{checkIn}}",
                      "description": "Premier jour, YYYY-MM-DD."
                    },
                    {
                      "key": "to",
                      "value": "{{calendarTo}}",
                      "description": "Dernier jour, YYYY-MM-DD."
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PAYLOAD\",\n    \"message\": \"The request body is invalid: from and to are required, YYYY-MM-DD\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Réservations",
      "description": "Envoyer, rejouer, modifier, relire, lister, annuler les réservations prises chez vous.",
      "item": [
        {
          "id": "localoge-reservationCreate",
          "name": "Envoyer une réservation",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 201', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reservation_id, created, status', () => pm.expect(d).to.include.keys([\"reservation_id\",\"created\",\"status\"]));",
                  "if (d.reservation_id !== undefined && d.reservation_id !== null) pm.collectionVariables.set('reservationId', d.reservation_id);"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reservations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations"
              ]
            },
            "description": "Une réservation prise chez vous : Localoge bloque les nuits. **Idempotente** sur `external_reservation_id` : 201 à la création, 200 (`created: false`) sur un rejeu. 409 `DATES_UNAVAILABLE` si les nuits sont déjà prises.\n\n**Tous les champs du schéma sont dans ce corps** : `external_reservation_id`, `external_property_id`, `check_in`, `check_out` (départ exclu), `guest` (`first_name`, `last_name`, `email` obligatoire, `phone`), `guests_count`, `adults_count`, `total_amount`, `currency`, `status` (`confirmed` ou `cancelled`). Il n'y a pas de champ enfants ni d'heure d'arrivée : l'heure vient du logement (`check_in_time`).\n\n`total_amount` (centimes) est informatif : Localoge n'encaisse rien sur ces réservations.\n\nDocumentation : https://developers.localoge.com/reservations/\n\n---\n\n**EN.** A booking taken on your side: Localoge blocks the nights. **Idempotent** on `external_reservation_id`: 201 on creation, 200 (`created: false`) on replay, 409 `DATES_UNAVAILABLE` if the nights are taken. Every field of the schema is shown: guest (`first_name`, `last_name`, `email` required, `phone`), `guests_count`, `adults_count`, `total_amount` (cents, informative: Localoge collects nothing), `currency`, `status` (`confirmed` or `cancelled`). There is no children count nor arrival time field.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"external_reservation_id\": \"{{externalReservationId}}\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{checkOut}}\",\n  \"guest\": {\n    \"first_name\": \"Camille\",\n    \"last_name\": \"Martin\",\n    \"email\": \"camille.martin@example.com\",\n    \"phone\": \"+33600000000\"\n  },\n  \"guests_count\": 2,\n  \"adults_count\": 2,\n  \"total_amount\": 37000,\n  \"currency\": \"EUR\",\n  \"status\": \"confirmed\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_reservation_id\": \"{{externalReservationId}}\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{checkOut}}\",\n  \"guest\": {\n    \"first_name\": \"Camille\",\n    \"last_name\": \"Martin\",\n    \"email\": \"camille.martin@example.com\",\n    \"phone\": \"+33600000000\"\n  },\n  \"guests_count\": 2,\n  \"adults_count\": 2,\n  \"total_amount\": 37000,\n  \"currency\": \"EUR\",\n  \"status\": \"confirmed\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"created\": true,\n    \"status\": \"confirmed\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 409 DATES_UNAVAILABLE",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_reservation_id\": \"{{externalReservationId}}\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{checkOut}}\",\n  \"guest\": {\n    \"first_name\": \"Camille\",\n    \"last_name\": \"Martin\",\n    \"email\": \"camille.martin@example.com\",\n    \"phone\": \"+33600000000\"\n  },\n  \"guests_count\": 2,\n  \"adults_count\": 2,\n  \"total_amount\": 37000,\n  \"currency\": \"EUR\",\n  \"status\": \"confirmed\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"DATES_UNAVAILABLE\",\n    \"message\": \"These dates are no longer available\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 400 INVALID_PAYLOAD (dates)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_reservation_id\": \"{{externalReservationId}}\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{checkOut}}\",\n  \"guest\": {\n    \"first_name\": \"Camille\",\n    \"last_name\": \"Martin\",\n    \"email\": \"camille.martin@example.com\",\n    \"phone\": \"+33600000000\"\n  },\n  \"guests_count\": 2,\n  \"adults_count\": 2,\n  \"total_amount\": 37000,\n  \"currency\": \"EUR\",\n  \"status\": \"confirmed\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PAYLOAD\",\n    \"message\": \"The request body is invalid: check_out must be after check_in\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-reservationReplay",
          "name": "Rejouer la même réservation (idempotence)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Pas de doublon', () => pm.expect(d.created).to.eql(false));",
                  "pm.test('Même réservation', () => pm.expect(d.reservation_id).to.eql(pm.variables.get('reservationId')));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reservations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations"
              ]
            },
            "description": "Le même envoi une seconde fois, comme après un délai d'attente réseau : Localoge rend la réservation existante (200, `created: false`) et ne bloque rien de plus.\n\nDocumentation : https://developers.localoge.com/idempotence/\n\n---\n\n**EN.** The same request a second time, as after a network timeout: Localoge returns the existing reservation (200, `created: false`) and blocks nothing more.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"external_reservation_id\": \"{{externalReservationId}}\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{checkOut}}\",\n  \"guest\": {\n    \"first_name\": \"Camille\",\n    \"last_name\": \"Martin\",\n    \"email\": \"camille.martin@example.com\"\n  },\n  \"guests_count\": 2,\n  \"total_amount\": 37000,\n  \"currency\": \"EUR\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"external_reservation_id\": \"{{externalReservationId}}\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{checkOut}}\",\n  \"guest\": {\n    \"first_name\": \"Camille\",\n    \"last_name\": \"Martin\",\n    \"email\": \"camille.martin@example.com\"\n  },\n  \"guests_count\": 2,\n  \"total_amount\": 37000,\n  \"currency\": \"EUR\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"created\": false,\n    \"status\": \"confirmed\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-reservationUpdate",
          "name": "Modifier une réservation",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reservation_id, check_in, check_out', () => pm.expect(d).to.include.keys([\"reservation_id\",\"check_in\",\"check_out\"]));",
                  "pm.test('Nouveau départ appliqué', () => pm.expect(d.check_out).to.eql(pm.variables.get('modifiedCheckOut')));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}"
              ]
            },
            "description": "Nouvelles dates, nombre de voyageurs, montant. Libération et prise de nuits se font dans une seule transaction : un 409 laisse l'ancienne réservation **intacte**.\n\nDocumentation : https://developers.localoge.com/reservations/\n\n---\n\n**EN.** Every modifiable field: `check_in`, `check_out`, `guests_count`, `total_amount`. Releasing and taking nights happen in one transaction: a 409 leaves the old reservation **intact**.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{modifiedCheckOut}}\",\n  \"guests_count\": 3,\n  \"total_amount\": 48000\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"check_in\": \"{{checkIn}}\",\n  \"check_out\": \"{{modifiedCheckOut}}\",\n  \"guests_count\": 3,\n  \"total_amount\": 48000\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"check_in\": \"2027-06-19\",\n    \"check_out\": \"2027-06-23\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-reservationGet",
          "name": "Relire une réservation",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reservation', () => pm.expect(d).to.include.keys([\"reservation\"]));",
                  "pm.test('Champs reservation_id, origin, status, check_in, check_out, amounts', () => pm.expect(d.reservation).to.include.keys([\"reservation_id\",\"origin\",\"status\",\"check_in\",\"check_out\",\"amounts\"]));",
                  "pm.test('Origine partenaire', () => pm.expect(d.reservation.origin).to.eql('partner'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}"
              ]
            },
            "description": "Par votre identifiant ou par celui de Localoge (celui des webhooks). Montants en centimes, commission comprise.\n\nDocumentation : https://developers.localoge.com/reservations/\n\n---\n\n**EN.** By your id or by Localoge’s (the one in webhooks). Full object: origin, status, dates, guests, adults, currency, amounts in cents (rent, cleaning, options, tourist tax, commission, total), payment status, timestamps."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservation\": {\n      \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n      \"external_property_id\": \"POSTMAN-DEMO-1\",\n      \"external_reservation_id\": \"PM-RES-mun45dtr\",\n      \"origin\": \"partner\",\n      \"status\": \"confirmed\",\n      \"check_in\": \"2027-06-19\",\n      \"check_out\": \"2027-06-23\",\n      \"guests\": 3,\n      \"adults\": 3,\n      \"currency\": \"EUR\",\n      \"amounts\": {\n        \"rent\": 48000,\n        \"cleaning_fee\": 0,\n        \"options\": 0,\n        \"tourist_tax\": 0,\n        \"commission\": 0,\n        \"total\": 48000\n      },\n      \"payment_status\": \"none\",\n      \"created_at\": \"2026-09-29T20:12:53.000Z\",\n      \"updated_at\": \"2026-09-29T20:12:53.000Z\"\n    }\n  }\n}"
            },
            {
              "name": "Exemple documenté : 404 RESERVATION_NOT_FOUND",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"RESERVATION_NOT_FOUND\",\n    \"message\": \"Reservation not found\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-reservationList",
          "name": "Rattraper les réservations (liste)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reservations, next_cursor', () => pm.expect(d).to.include.keys([\"reservations\",\"next_cursor\"]));",
                  "pm.test('d.reservations est un tableau', () => pm.expect(d.reservations).to.be.an('array'));",
                  "pm.test('Notre réservation y figure', () => pm.expect(d.reservations.map((r) => r.reservation_id)).to.include(pm.variables.get('reservationId')));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations?updated_since={{startedAt}}&limit=50",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations"
              ],
              "query": [
                {
                  "key": "updated_since",
                  "value": "{{startedAt}}",
                  "description": "Date ISO 8601 : modifications et annulations comprises."
                },
                {
                  "key": "limit",
                  "value": "50"
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "Le next_cursor de la page précédente.",
                  "disabled": true
                }
              ]
            },
            "description": "Le filet de rattrapage si un webhook s'est perdu : toutes les réservations de vos logements modifiées depuis `updated_since`, les vôtres (`origin: partner`) comme celles de Localoge.\n\nDocumentation : https://developers.localoge.com/reservations/\n\n---\n\n**EN.** The catch-up net if a webhook was lost: every reservation of your properties changed since `updated_since`, yours (`origin: partner`) and Localoge’s."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/reservations?updated_since={{startedAt}}&limit=50",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations"
                  ],
                  "query": [
                    {
                      "key": "updated_since",
                      "value": "{{startedAt}}",
                      "description": "Date ISO 8601 : modifications et annulations comprises."
                    },
                    {
                      "key": "limit",
                      "value": "50"
                    },
                    {
                      "key": "cursor",
                      "value": "",
                      "description": "Le next_cursor de la page précédente.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservations\": [\n      {\n        \"reservation_id\": \"0de140c0-9d2b-4eb4-9b21-44cf45b6b028\",\n        \"external_property_id\": \"POSTMAN-DEMO-1\",\n        \"external_reservation_id\": null,\n        \"check_in\": \"2026-10-13\",\n        \"check_out\": \"2026-10-16\",\n        \"status\": \"cancelled\",\n        \"guests\": 3,\n        \"total\": 33700,\n        \"origin\": \"localoge\",\n        \"created_at\": \"2026-09-29T20:11:57.000Z\",\n        \"updated_at\": \"2026-09-29T20:11:57.000Z\"\n      },\n      {\n        \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n        \"external_property_id\": \"POSTMAN-DEMO-1\",\n        \"external_reservation_id\": \"PM-RES-mun45dtr\",\n        \"check_in\": \"2027-06-19\",\n        \"check_out\": \"2027-06-23\",\n        \"status\": \"confirmed\",\n        \"guests\": 3,\n        \"total\": 48000,\n        \"origin\": \"partner\",\n        \"created_at\": \"2026-09-29T20:12:53.000Z\",\n        \"updated_at\": \"2026-09-29T20:12:53.000Z\"\n      }\n    ],\n    \"truncated\": false,\n    \"next_cursor\": null\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-reservationCancel",
          "name": "Annuler une réservation",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reservation_id, status, already_cancelled', () => pm.expect(d).to.include.keys([\"reservation_id\",\"status\",\"already_cancelled\"]));",
                  "pm.test('Annulée', () => pm.expect(d.status).to.eql('cancelled'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}",
                "cancel"
              ]
            },
            "description": "Libère les nuits. Idempotente : une seconde annulation rend `already_cancelled: true`.\n\nDocumentation : https://developers.localoge.com/annulations/\n\n---\n\n**EN.** Releases the nights. Idempotent: a second cancellation returns `already_cancelled: true`."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/cancel",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}",
                    "cancel"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"status\": \"cancelled\",\n    \"already_cancelled\": false\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-approve",
          "name": "Accepter une demande (hôte)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 409 (réservation venue de vous : /cancel)', () => pm.expect(pm.response.code).to.be.oneOf([409]));",
                  "const j = pm.response.json();",
                  "pm.test('Code CONFLICT', () => pm.expect(j.error.code).to.eql('CONFLICT'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/approve",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}",
                "approve"
              ]
            },
            "description": "Logement en acceptation manuelle : la demande (`status: requested`) devient confirmée, comme si l'hôte l'acceptait depuis son espace. `host_actions` (lecture d'une réservation) dit si c'est possible. Ici, sur votre propre réservation : refus 409 attendu.\n\nDocumentation : https://developers.localoge.com/reservations/\n\n---\n\n**EN.** Accept a pending request on behalf of the host. `409 HOST_VERIFICATION_REQUIRED` while the host's identity is not verified, `409 DATES_UNAVAILABLE` if a night was taken meanwhile."
          },
          "response": []
        },
        {
          "id": "localoge-reject",
          "name": "Refuser une demande (hôte)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 409 (réservation venue de vous : /cancel)', () => pm.expect(pm.response.code).to.be.oneOf([409]));",
                  "const j = pm.response.json();",
                  "pm.test('Code CONFLICT', () => pm.expect(j.error.code).to.eql('CONFLICT'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/reject",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}",
                "reject"
              ]
            },
            "description": "La demande est annulée, ses nuits libérées, le voyageur prévenu (avec votre `reason`).\n\n---\n\n**EN.** Decline a pending request; `reason` is shown to the guest.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"Logement indisponible à ces dates\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "id": "localoge-hostCancel",
          "name": "Annuler en tant qu'hôte (non disponible)",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 403 : un partenaire n annule jamais une réservation Localoge', () => pm.expect(pm.response.code).to.eql(403));",
                  "const j = pm.response.json();",
                  "pm.test('Code HOST_CANCEL_NOT_AVAILABLE', () => pm.expect(j.error.code).to.eql('HOST_CANCEL_NOT_AVAILABLE'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/host-cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}",
                "host-cancel"
              ]
            },
            "description": "Non disponible depuis le 09/11/2026, pour toutes les clés : `403 HOST_CANCEL_NOT_AVAILABLE`. L'hôte annule une réservation Localoge depuis son espace Localoge. Une réservation que vous avez envoyée s'annule par `POST /reservations/{id}/cancel`, qui ne rembourse personne.\n\n---\n\n**EN.** Not available since 2026-11-09, for every key: `403 HOST_CANCEL_NOT_AVAILABLE`. The host cancels a Localoge reservation from their Localoge account. A reservation you sent is cancelled with `POST /reservations/{id}/cancel`, which never refunds anyone."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Messagerie",
      "description": "La conversation avec le voyageur d’un séjour.",
      "item": [
        {
          "id": "localoge-messagePost",
          "name": "Écrire au voyageur",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs id, sent_at', () => pm.expect(d).to.include.keys([\"id\",\"sent_at\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}",
                "messages"
              ]
            },
            "description": "Le message part au nom de l'**hôte**, jamais du logiciel. 4 000 caractères au plus. Le voyageur est prévenu quand il a réservé sur Localoge.\n\nDocumentation : https://developers.localoge.com/messagerie/\n\n---\n\n**EN.** Body: `{ \"text\": \"…\" }`, 4,000 characters max. Sent on behalf of the **host**, never of the software. Answer: `{ id, sent_at }` (201).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"Bonjour Camille, les clés vous attendent dans la boîte à code, le code vous sera envoyé la veille. Bon voyage !\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/messages",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}",
                    "messages"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"Bonjour Camille, les clés vous attendent dans la boîte à code, le code vous sera envoyé la veille. Bon voyage !\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"id\": \"ff84d22e-83d0-442a-8475-3d91d8fe51dd\",\n    \"sent_at\": \"2026-09-29T20:12:53.718Z\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 400 INVALID_PAYLOAD (texte)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/messages",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}",
                    "messages"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"text\": \"Bonjour Camille, les clés vous attendent dans la boîte à code, le code vous sera envoyé la veille. Bon voyage !\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"INVALID_PAYLOAD\",\n    \"message\": \"The request body is invalid: text is required, 4000 characters max\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-messageList",
          "name": "Lire la conversation",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs messages', () => pm.expect(d).to.include.keys([\"messages\"]));",
                  "pm.test('d.messages est un tableau', () => pm.expect(d.messages).to.be.an('array'));",
                  "pm.test('Notre message y figure', () => pm.expect(d.messages.length).to.be.above(0));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{externalReservationId}}",
                "messages"
              ]
            },
            "description": "Les 100 derniers messages de CE séjour (le voyageur de la réservation, sur ce logement), du plus ancien au plus récent. `from` vaut `guest` ou `host`.\n\nDocumentation : https://developers.localoge.com/messagerie/\n\n---\n\n**EN.** The last 100 messages of THIS stay, oldest first: `{ id, from: \"guest\" | \"host\", text, sent_at }`."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{externalReservationId}}/messages",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{externalReservationId}}",
                    "messages"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"messages\": [\n      {\n        \"id\": \"4677e74e-a619-4a3f-ba4a-cca5b2e5c674\",\n        \"from\": \"host\",\n        \"text\": \"Bonjour Camille, les clés vous attendent dans la boîte à code, le code vous sera envoyé la veille. Bon voyage !\",\n        \"sent_at\": \"2026-09-29T20:10:56.000Z\"\n      },\n      {\n        \"id\": \"ff84d22e-83d0-442a-8475-3d91d8fe51dd\",\n        \"from\": \"host\",\n        \"text\": \"Bonjour Camille, les clés vous attendent dans la boîte à code, le code vous sera envoyé la veille. Bon voyage !\",\n        \"sent_at\": \"2026-09-29T20:12:53.000Z\"\n      }\n    ]\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Avis",
      "description": "Les avis publiés sur un logement (note sur 10).",
      "item": [
        {
          "id": "localoge-reviews",
          "name": "Lire les avis d'un logement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reviews', () => pm.expect(d).to.include.keys([\"reviews\"]));",
                  "pm.test('d.reviews est un tableau', () => pm.expect(d.reviews).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}/reviews",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}",
                "reviews"
              ]
            },
            "description": "Les 100 derniers avis. ⚠️ La note est sur **10** : divisez par deux pour un affichage sur cinq étoiles. Aucun nom d'auteur n'est transmis.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** The last 100 reviews. The rating is out of **10**. No author name is transmitted."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}/reviews",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}",
                    "reviews"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reviews\": [\n      {\n        \"id\": \"23c78772-c37f-432f-89e3-6f9daa5785f5\",\n        \"rating\": 9,\n        \"comment\": \"Très bel appartement, hôte réactif.\",\n        \"published_at\": \"2026-09-29T20:11:57.000Z\"\n      }\n    ]\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-host-reviews",
          "name": "Lire les avis des voyageurs de l'hôte",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 403', () => pm.expect(pm.response.code).to.be.oneOf([200, 403]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('d.reviews est un tableau', () => pm.expect(d.reviews).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/host/reviews?host_ref={{hostRef}}&since=2026-01-01T00:00:00Z&page=1",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "host",
                "reviews"
              ],
              "query": [
                {
                  "key": "host_ref",
                  "value": "{{hostRef}}",
                  "description": "Le host_ref rendu par oauth/token."
                },
                {
                  "key": "since",
                  "value": "2026-01-01T00:00:00Z",
                  "description": "Date ISO 8601 : seulement les avis publiés après (date de PUBLICATION)."
                },
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            },
            "description": "Les avis publics laissés par les voyageurs sur les logements de l'hôte relié (ou gérés pour un propriétaire). Note sur **10**, prénom du voyageur seul, `host_reply` toujours null.\n\nDocumentation : https://developers.localoge.com/connecter-un-hote/"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Webhooks",
      "description": "Déclarer son URL, envoyer un test, vérifier la signature, suivre et rejouer les livraisons.",
      "item": [
        {
          "id": "localoge-webhooksGet",
          "name": "Relire son abonnement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs webhooks', () => pm.expect(d).to.include.keys([\"webhooks\"]));",
                  "pm.test('d.webhooks est un tableau', () => pm.expect(d.webhooks).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "L'URL déclarée et les événements suivis. Le secret de signature n'est jamais relu : il n'est montré qu'une fois.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** The declared URL and followed events. The signing secret is never returned again."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"webhooks\": [\n      {\n        \"id\": \"6dd15810-5650-4208-b48b-3083ae07fdb0\",\n        \"url\": \"https://sandbox.localoge.com/webhook-echo/demo-pms-test-claude\",\n        \"events\": [],\n        \"status\": \"active\"\n      }\n    ]\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-webhooksPut",
          "name": "Déclarer son URL de réception",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Sans webhookUrl, on déclare le miroir de Localoge : il garde ce qu'il reçoit et en vérifie la signature.",
                  "if (!pm.variables.get('webhookUrl')) pm.variables.set('webhookUrl', pm.variables.get('rootUrl') + '/webhook-echo/' + pm.variables.get('partnerSlug'));"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 201', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs id, url, secret, events', () => pm.expect(d).to.include.keys([\"id\",\"url\",\"secret\",\"events\"]));",
                  "pm.test('Secret whsec_', () => pm.expect(d.secret).to.match(/^whsec_/));",
                  "if (d.secret !== undefined && d.secret !== null) pm.collectionVariables.set('webhookSecret', d.secret);"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "HTTPS obligatoire, adresse publique. `events` vide = tous les événements. ⚠️ Le secret `whsec_…` est rendu **une seule fois**, ici ; chaque appel en produit un nouveau et invalide l'ancien. La collection le garde dans `webhookSecret` pour vérifier les signatures.\n\nSans variable `webhookUrl`, la requête déclare le **miroir** `{{rootUrl}}/webhook-echo/<votre-slug>`, qui garde les 20 derniers envois 24 h.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** HTTPS required, public address. Empty `events` = all events. The `whsec_…` secret is returned **once**, here; each call makes a new one and invalidates the previous one. Without `webhookUrl`, the request declares the Localoge echo mirror.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"{{webhookUrl}}\",\n  \"events\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/webhooks",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"{{webhookUrl}}\",\n  \"events\": []\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"id\": \"6dd15810-5650-4208-b48b-3083ae07fdb0\",\n    \"url\": \"https://sandbox.localoge.com/webhook-echo/demo-pms-test-claude\",\n    \"secret\": \"whsec_exemple_rendu_une_seule_fois\",\n    \"events\": []\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-webhooksTest",
          "name": "Envoyer un événement de test",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 202', () => pm.expect(pm.response.code).to.be.oneOf([202]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event, event_key, status', () => pm.expect(d).to.include.keys([\"event\",\"event_key\",\"status\"]));",
                  "if (d.event_key !== undefined && d.event_key !== null) pm.collectionVariables.set('testEventKey', d.event_key);",
                  "pm.collectionVariables.set('echoTentatives', '0');"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "test"
              ]
            },
            "description": "Met en file un `webhook.test` vers votre URL, sans rien créer. Il part au prochain passage de l'expéditeur (moins d'une minute).\n\n**Les exemples de cette requête montrent le corps et les en-têtes EXACTS de chaque événement** que Localoge envoie : `reservation.created`, `reservation.updated`, `reservation.cancelled`, `availability.updated`, `property.updated`, `property.status_changed`, `message.received`, `review.created`, `host.revoked`, `webhook.test`, `payment.succeeded`, `payment.refunded`. En-têtes : `X-Localoge-Signature: t=<horodatage>,v1=<hmac>`, `X-Localoge-Event`, `X-Localoge-Event-Key` (à dédupliquer). Répondez un 2xx en moins de 10 secondes ; sinon Localoge réessaie (1, 5, 15, 60, 360 puis 1 440 minutes).\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** Queues a `webhook.test` to your URL. The examples of this request show the exact body and headers of EVERY event Localoge sends: `reservation.created`, `reservation.updated`, `reservation.cancelled`, `availability.updated`, `property.updated`, `property.status_changed`, `message.received`, `review.created`, `host.revoked`, `webhook.test`, `payment.succeeded`, `payment.refunded`."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (202)",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks/test",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks",
                    "test"
                  ]
                }
              },
              "status": "Accepted",
              "code": 202,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"webhook.test\",\n    \"event_key\": \"webhook.test:c38ad9e0-7113-4c1a-84fd-d1895089713c\",\n    \"status\": \"pending\"\n  }\n}"
            },
            {
              "name": "Webhook reçu : reservation.created",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "reservation.created"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "reservation.created:e28fcba1-f4d8-4b74-8d92-5c6705122606",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"reservation.created\",\n  \"event_key\": \"reservation.created:e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"check_in\": \"2027-06-19\",\n    \"check_out\": \"2027-06-23\",\n    \"status\": \"confirmed\",\n    \"guests\": 2,\n    \"total\": 118000,\n    \"currency\": \"EUR\",\n    \"updated_at\": \"2026-09-30T08:15:02.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : reservation.updated",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "reservation.updated"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "reservation.updated:e28fcba1-f4d8-4b74-8d92-5c6705122606",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"reservation.updated\",\n  \"event_key\": \"reservation.updated:e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"check_in\": \"2027-06-19\",\n    \"check_out\": \"2027-06-24\",\n    \"status\": \"confirmed\",\n    \"guests\": 3,\n    \"total\": 142000,\n    \"currency\": \"EUR\",\n    \"updated_at\": \"2026-09-30T09:01:44.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : reservation.cancelled",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "reservation.cancelled"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "reservation.cancelled:e28fcba1-f4d8-4b74-8d92-5c6705122606",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"reservation.cancelled\",\n  \"event_key\": \"reservation.cancelled:e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"check_in\": \"2027-06-19\",\n    \"check_out\": \"2027-06-24\",\n    \"status\": \"cancelled\",\n    \"guests\": 3,\n    \"total\": 142000,\n    \"currency\": \"EUR\",\n    \"updated_at\": \"2026-09-30T10:20:10.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : availability.updated",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "availability.updated"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "availability:9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d:2027-07-14:3",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"availability.updated\",\n  \"event_key\": \"availability:9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d:2027-07-14:3\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"dates\": [\n      \"2027-07-14\",\n      \"2027-07-15\",\n      \"2027-07-16\"\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : property.updated",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "property.updated"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "property:9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d:1790755200000",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"property.updated\",\n  \"event_key\": \"property:9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d:1790755200000\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"listing_id\": \"9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d\",\n    \"status\": \"published\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : property.status_changed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "property.status_changed"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "property.status:9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d:published:1790755260000",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"property.status_changed\",\n  \"event_key\": \"property.status:9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d:published:1790755260000\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"listing_id\": \"9f2c1a44-8e3b-4d21-b0c7-5e6f7a8b9c0d\",\n    \"status\": \"published\",\n    \"previous_status\": \"pending_validation\",\n    \"updated_at\": \"2026-09-30T08:21:00.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : message.received",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "message.received"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "message:e28fcba1-f4d8-4b74-8d92-5c6705122606:1790756400000",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"message.received\",\n  \"event_key\": \"message:e28fcba1-f4d8-4b74-8d92-5c6705122606:1790756400000\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"from\": \"guest\",\n    \"text\": \"Bonjour, peut-on arriver vers 18 h ?\",\n    \"sent_at\": \"2026-09-30T08:40:00.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : review.created",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "review.created"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "review:e28fcba1-f4d8-4b74-8d92-5c6705122606:1790842800000",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"review.created\",\n  \"event_key\": \"review:e28fcba1-f4d8-4b74-8d92-5c6705122606:1790842800000\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"rating\": 9,\n    \"comment\": \"Très bel appartement, hôte réactif.\",\n    \"published_at\": \"2026-10-01T08:40:00.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : host.revoked",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "host.revoked"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "host.revoked:lh_4f8a2c1e9b7d:1790760000000",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"host.revoked\",\n  \"event_key\": \"host.revoked:lh_4f8a2c1e9b7d:1790760000000\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"host_ref\": \"lh_4f8a2c1e9b7d\",\n    \"revoked_at\": \"2026-09-30T09:40:00.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : webhook.test",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "webhook.test"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "webhook.test:c38ad9e0-7113-4c1a-84fd-d1895089713c",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"webhook.test\",\n  \"event_key\": \"webhook.test:c38ad9e0-7113-4c1a-84fd-d1895089713c\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"message\": \"Test event from Localoge\",\n    \"sent_at\": \"2026-09-30T08:12:54.086Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : payment.succeeded",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "payment.succeeded"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "payment.succeeded:e28fcba1-f4d8-4b74-8d92-5c6705122606",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"payment.succeeded\",\n  \"event_key\": \"payment.succeeded:e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"amount\": 118000,\n    \"reservation_total\": 118000,\n    \"currency\": \"EUR\",\n    \"occurred_at\": \"2026-09-30T08:15:05.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            },
            {
              "name": "Webhook reçu : payment.refunded",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Localoge-Signature",
                    "value": "t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799",
                    "description": "HMAC-SHA256 de `<t>.<corps brut>` avec votre secret whsec_ (valeur illustrative)."
                  },
                  {
                    "key": "X-Localoge-Event",
                    "value": "payment.refunded"
                  },
                  {
                    "key": "X-Localoge-Event-Key",
                    "value": "payment.refunded:re_3Q0exempleRembours",
                    "description": "Stable d’une tentative à l’autre : dédupliquez dessus."
                  }
                ],
                "url": {
                  "raw": "{{webhookUrl}}",
                  "host": [
                    "{{webhookUrl}}"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"payment.refunded\",\n  \"event_key\": \"payment.refunded:re_3Q0exempleRembours\",\n  \"api_version\": \"v1\",\n  \"environment\": \"sandbox\",\n  \"created_at\": \"2026-09-30T08:15:02.000Z\",\n  \"data\": {\n    \"reservation_id\": \"e28fcba1-f4d8-4b74-8d92-5c6705122606\",\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"amount\": 59000,\n    \"reservation_total\": 118000,\n    \"currency\": \"EUR\",\n    \"occurred_at\": \"2026-09-30T10:20:12.000Z\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"received\": true\n}"
            }
          ]
        },
        {
          "id": "localoge-echo",
          "name": "Vérifier la signature du webhook reçu (miroir)",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "// Le webhook part au prochain passage de l'expéditeur (60 s) : on attend 10 s entre deux lectures.",
                  "const n = Number(pm.collectionVariables.get('echoTentatives') || 0);",
                  "if (n > 0) setTimeout(() => {}, 10000);"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs deliveries', () => pm.expect(d).to.include.keys([\"deliveries\"]));",
                  "pm.test('d.deliveries est un tableau', () => pm.expect(d.deliveries).to.be.an('array'));",
                  "const cle = pm.variables.get('testEventKey');",
                  "const recu = d.deliveries.find((x) => x.cleEvenement === cle);",
                  "const n = Number(pm.collectionVariables.get('echoTentatives') || 0);",
                  "if (!recu && cle && n < 14) {",
                  "  pm.collectionVariables.set('echoTentatives', String(n + 1));",
                  "  console.log('Webhook pas encore arrivé, nouvelle lecture (' + (n + 1) + '/14)');",
                  "  pm.execution.setNextRequest(pm.info.requestName);",
                  "} else {",
                  "  pm.test('Le webhook de test est arrivé', () => pm.expect(recu, 'rien reçu pour ' + cle).to.be.an('object'));",
                  "  if (recu) {",
                  "    const m = /^t=(\\d+),v1=([0-9a-f]+)$/.exec(recu.signature || '');",
                  "    pm.test('En-tête X-Localoge-Signature bien formé', () => pm.expect(m).to.not.be.null);",
                  "    const secret = pm.variables.get('webhookSecret');",
                  "    if (m && secret) {",
                  "      const cryptoJs = require('crypto-js');",
                  "      const brut = typeof recu.corps === 'string' ? recu.corps : JSON.stringify(recu.corps);",
                  "      const calcule = cryptoJs.HmacSHA256(m[1] + '.' + brut, secret).toString(cryptoJs.enc.Hex);",
                  "      pm.test('Signature HMAC-SHA256 recalculée identique', () => pm.expect(calcule).to.eql(m[2]));",
                  "    }",
                  "    pm.test('Verdict du miroir : signature valide', () => pm.expect(recu.signatureValide).to.eql(true));",
                  "    pm.test('Corps : event, event_key, data', () => pm.expect(recu.corps).to.include.keys(['event', 'event_key', 'data']));",
                  "  }",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhook-echo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhook-echo"
              ]
            },
            "description": "Relit ce que Localoge a envoyé au miroir, et **refait le calcul de signature** dans Postman, comme votre serveur doit le faire :\n\n1. lire `X-Localoge-Signature` : `t=<horodatage>,v1=<hmac>` ;\n2. calculer HMAC-SHA256, clé = votre secret `whsec_…`, message = `<horodatage>.<corps brut>` ;\n3. comparer en temps constant, et refuser un horodatage de plus de 5 minutes.\n\nDans l'exécuteur de collection, la requête se relance seule (jusqu'à 14 fois, 10 s d'écart) tant que l'événement n'est pas arrivé.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** Reads what Localoge sent to the mirror and **recomputes the signature** in Postman: HMAC-SHA256 of `<timestamp>.<raw body>` with your `whsec_…` secret, compared with `v1` of `X-Localoge-Signature: t=<timestamp>,v1=<hmac>`; reject timestamps older than 5 minutes."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhook-echo",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhook-echo"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"deliveries\": [\n      {\n        \"recuLe\": \"2026-09-29T20:13:50.000Z\",\n        \"evenement\": \"webhook.test\",\n        \"cleEvenement\": \"webhook.test:c38ad9e0-7113-4c1a-84fd-d1895089713c\",\n        \"signature\": \"t=1790712830,v1=4c14b0984a5116d57abea4cbb9929fd3afbe56e942dee41bcc3f5ea91c1e3799\",\n        \"signatureValide\": true,\n        \"corps\": {\n          \"event\": \"webhook.test\",\n          \"event_key\": \"webhook.test:c38ad9e0-7113-4c1a-84fd-d1895089713c\",\n          \"api_version\": \"v1\",\n          \"environment\": \"sandbox\",\n          \"created_at\": \"2026-09-29T20:12:54.000Z\",\n          \"data\": {\n            \"message\": \"Test event from Localoge\",\n            \"sent_at\": \"2026-09-29T20:12:54.086Z\"\n          }\n        }\n      }\n    ]\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-deliveries",
          "name": "Lister ses livraisons",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs deliveries, next_cursor', () => pm.expect(d).to.include.keys([\"deliveries\",\"next_cursor\"]));",
                  "pm.test('d.deliveries est un tableau', () => pm.expect(d.deliveries).to.be.an('array'));",
                  "const t = d.deliveries.find((x) => x.event_key === pm.variables.get('testEventKey')) || d.deliveries[0];",
                  "if (t) pm.collectionVariables.set('deliveryId', t.id);"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/deliveries?limit=5",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "deliveries"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "5"
                },
                {
                  "key": "status",
                  "value": "delivered",
                  "description": "pending, delivered ou failed.",
                  "disabled": true
                }
              ]
            },
            "description": "Ce qui est parti, ce qui a échoué et pourquoi, ce qui sera réessayé et quand. Du plus récent au plus ancien, paginé par curseur.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** What left, what failed and why, what will be retried and when. Newest first, cursor paginated."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks/deliveries?limit=5",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks",
                    "deliveries"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "5"
                    },
                    {
                      "key": "status",
                      "value": "delivered",
                      "description": "pending, delivered ou failed.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"deliveries\": [\n      {\n        \"id\": \"b7e3a45b-db2d-463e-9fcb-e1d48364db3b\",\n        \"event\": \"webhook.test\",\n        \"event_key\": \"webhook.test:c38ad9e0-7113-4c1a-84fd-d1895089713c\",\n        \"status\": \"delivered\",\n        \"attempts\": 1,\n        \"last_http_status\": 200,\n        \"last_response_ms\": 2,\n        \"last_error\": null,\n        \"next_attempt_at\": null,\n        \"last_attempt_at\": \"2026-09-29T20:13:50.000Z\",\n        \"delivered_at\": \"2026-09-29T20:13:50.000Z\",\n        \"created_at\": \"2026-09-29T20:12:54.000Z\",\n        \"payload\": {\n          \"message\": \"Test event from Localoge\",\n          \"sent_at\": \"2026-09-29T20:12:54.086Z\"\n        }\n      },\n      {\n        \"id\": \"79f4fdb9-41a3-4ad0-ba34-853f858e3712\",\n        \"event\": \"property.updated\",\n        \"event_key\": \"property:cc4bcdf5-5d19-4096-88a6-803cef96ae6f:1790712772166\",\n        \"status\": \"delivered\",\n        \"attempts\": 1,\n        \"last_http_status\": 200,\n        \"last_response_ms\": 4,\n        \"last_error\": null,\n        \"next_attempt_at\": null,\n        \"last_attempt_at\": \"2026-09-29T20:13:50.000Z\",\n        \"delivered_at\": \"2026-09-29T20:13:50.000Z\",\n        \"created_at\": \"2026-09-29T20:12:52.000Z\",\n        \"payload\": {\n          \"external_property_id\": \"POSTMAN-DEMO-1\",\n          \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n          \"status\": \"paused\"\n        }\n      },\n      {\n        \"id\": \"dce4aa4f-fa8d-4699-a85b-e993b6857b76\",\n        \"event\": \"property.status_changed\",\n        \"event_key\": \"property.status:cc4bcdf5-5d19-4096-88a6-803cef96ae6f:published:1790712717750\",\n        \"status\": \"delivered\",\n        \"attempts\": 1,\n        \"last_http_status\": 200,\n        \"last_response_ms\": 6,\n        \"last_error\": null,\n        \"next_attempt_at\": null,\n        \"last_attempt_at\": \"2026-09-29T20:12:50.000Z\",\n        \"delivered_at\": \"2026-09-29T20:12:50.000Z\",\n        \"created_at\": \"2026-09-29T20:11:57.000Z\",\n        \"payload\": {\n          \"external_property_id\": \"POSTMAN-DEMO-1\",\n          \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n          \"status\": \"published\",\n          \"previous_status\": \"pending_validation\",\n          \"reason\": \"validated by Localoge\",\n          \"updated_at\": \"2026-09-29T20:11:57.750Z\"\n        }\n      }\n    ],\n    \"next_cursor\": \"eyJ0IjoiMjAyNi0wOS0yOVQyMDoxMTo1Ny4wMDBaIiwiaWQiOiI2NDI3ZmQxNi01YWUwLTRkN2YtYjIwNS00OTVkZmUwZWU0MmYifQ\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-deliveryRetry",
          "name": "Rejouer une livraison",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 409', () => pm.expect(pm.response.code).to.be.oneOf([200, 409]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "if (pm.response.code === 200) pm.test('Remise en file', () => pm.expect(d.status).to.eql('pending'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/deliveries/{{deliveryId}}/retry",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "deliveries",
                "{{deliveryId}}",
                "retry"
              ]
            },
            "description": "Remet la livraison en file tout de suite, compteur de tentatives à zéro. 409 si elle est en cours d'envoi.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** Requeues the delivery now, attempts reset. 409 if it is being sent."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/webhooks/deliveries/{{deliveryId}}/retry",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "webhooks",
                    "deliveries",
                    "{{deliveryId}}",
                    "retry"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"id\": \"b7e3a45b-db2d-463e-9fcb-e1d48364db3b\",\n    \"status\": \"pending\"\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Événements",
      "description": "Tout ce que Localoge vous a émis, livré ou non.",
      "item": [
        {
          "id": "localoge-events",
          "name": "Relire les événements émis",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs events, next_cursor', () => pm.expect(d).to.include.keys([\"events\",\"next_cursor\"]));",
                  "pm.test('d.events est un tableau', () => pm.expect(d.events).to.be.an('array'));",
                  "pm.test('has_more booléen et next_cursor jamais nul', () => { pm.expect(d.has_more).to.be.a('boolean'); pm.expect(d.next_cursor).to.be.a('string'); });",
                  "if (d.events.length) pm.test('Chaque événement porte event_id, sequence et resource_version', () => pm.expect(d.events[0]).to.include.keys(['event_id', 'sequence', 'resource_version']));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/events?since={{startedAt}}&limit=50",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events"
              ],
              "query": [
                {
                  "key": "since",
                  "value": "{{startedAt}}",
                  "description": "Date ISO 8601."
                },
                {
                  "key": "limit",
                  "value": "50"
                }
              ]
            },
            "description": "Le filet universel : tout ce que Localoge vous a émis, livré ou non, même sans webhook, dans l'ordre de `sequence`. Gardez `next_cursor` et repartez de lui : aucun événement n'est sauté. Dédupliquez sur `event_id`, pas sur `event_key`. À relire après une panne de votre côté.\n\nDocumentation : https://developers.localoge.com/webhooks/\n\n---\n\n**EN.** The universal net: everything Localoge emitted to you, delivered or not, even without a webhook, ordered by `sequence`. Keep `next_cursor` and resume from it: no event is skipped. Deduplicate on `event_id`, not `event_key`."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/events?since={{startedAt}}&limit=50",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "events"
                  ],
                  "query": [
                    {
                      "key": "since",
                      "value": "{{startedAt}}",
                      "description": "Date ISO 8601."
                    },
                    {
                      "key": "limit",
                      "value": "50"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"events\": [\n      {\n        \"id\": \"04117338-00d9-4930-8ee1-714c5ed2ff94\",\n        \"event\": \"message.received\",\n        \"event_key\": \"message:0de140c0-9d2b-4eb4-9b21-44cf45b6b028:1790712717587\",\n        \"created_at\": \"2026-09-29T20:11:57.000Z\",\n        \"data\": {\n          \"external_property_id\": \"POSTMAN-DEMO-1\",\n          \"reservation_id\": \"0de140c0-9d2b-4eb4-9b21-44cf45b6b028\",\n          \"from\": \"guest\",\n          \"text\": \"Bonjour, peut-on arriver vers 18 h ?\",\n          \"sent_at\": \"2026-09-29T20:11:57.587Z\"\n        }\n      },\n      {\n        \"id\": \"0674b6bd-8cf3-43b7-95fb-746daf6036e4\",\n        \"event\": \"reservation.created\",\n        \"event_key\": \"reservation.created:0de140c0-9d2b-4eb4-9b21-44cf45b6b028\",\n        \"created_at\": \"2026-09-29T20:11:57.000Z\",\n        \"data\": {\n          \"reservation_id\": \"0de140c0-9d2b-4eb4-9b21-44cf45b6b028\",\n          \"external_property_id\": \"POSTMAN-DEMO-1\",\n          \"check_in\": \"2026-10-13\",\n          \"check_out\": \"2026-10-16\",\n          \"status\": \"confirmed\",\n          \"guests\": 2,\n          \"total\": 33700,\n          \"currency\": \"EUR\",\n          \"updated_at\": \"2026-09-29T20:11:57.000Z\"\n        }\n      },\n      {\n        \"id\": \"1cae99b3-185e-4119-8b93-5718dc93f888\",\n        \"event\": \"property.status_changed\",\n        \"event_key\": \"property.status:cc4bcdf5-5d19-4096-88a6-803cef96ae6f:paused:1790712717958\",\n        \"created_at\": \"2026-09-29T20:11:57.000Z\",\n        \"data\": {\n          \"external_property_id\": \"POSTMAN-DEMO-1\",\n          \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n          \"status\": \"paused\",\n          \"previous_status\": \"published\",\n          \"reason\": \"archived by partner\",\n          \"updated_at\": \"2026-09-29T20:11:57.958Z\"\n        }\n      }\n    ],\n    \"next_cursor\": null\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Sandbox (simulateur)",
      "description": "Sandbox seulement : provoquer les événements côté Localoge.",
      "item": [
        {
          "id": "localoge-simCreated",
          "name": "Simuler une réservation Localoge",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event, reservation_id', () => pm.expect(d).to.include.keys([\"event\",\"reservation_id\"]));",
                  "if (d.reservation_id !== undefined && d.reservation_id !== null) pm.collectionVariables.set('simReservationId', d.reservation_id);"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sandbox/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "simulate"
              ]
            },
            "description": "Sandbox seulement. Un voyageur fictif réserve votre logement sur Localoge : les nuits se bloquent et le webhook `reservation.created` part, comme en production. Sans dates, le simulateur prend la première fenêtre libre de 3 nuits.\n\nÉvénements possibles : `reservation.created`, `reservation.updated`, `reservation.cancelled`, `message.received`, `review.created`, `listing.validated`.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. A fictitious guest books your property on Localoge: nights are blocked and `reservation.created` is sent, as in production.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"reservation.created\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"guests\": 2\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/simulate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "simulate"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"reservation.created\",\n  \"external_property_id\": \"{{propertyId}}\",\n  \"guests\": 2\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"reservation.created\",\n    \"reservation_id\": \"81908164-6df2-462b-8ff3-a24be9d107ce\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"confirmed\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-simGet",
          "name": "Relire la réservation Localoge simulée",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Origine Localoge', () => pm.expect(d.reservation.origin).to.eql('localoge'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/reservations/{{simReservationId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reservations",
                "{{simReservationId}}"
              ]
            },
            "description": "L'identifiant Localoge (celui des webhooks) suffit pour relire une réservation prise sur Localoge. `origin` vaut `localoge`.\n\nDocumentation : https://developers.localoge.com/reservations/\n\n---\n\n**EN.** The Localoge id (the one in webhooks) is enough to read a reservation taken on Localoge. `origin` is `localoge`."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/reservations/{{simReservationId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "reservations",
                    "{{simReservationId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"reservation\": {\n      \"reservation_id\": \"81908164-6df2-462b-8ff3-a24be9d107ce\",\n      \"external_property_id\": \"POSTMAN-DEMO-1\",\n      \"external_reservation_id\": null,\n      \"origin\": \"localoge\",\n      \"status\": \"confirmed\",\n      \"check_in\": \"2026-10-13\",\n      \"check_out\": \"2026-10-16\",\n      \"guests\": 2,\n      \"adults\": 2,\n      \"currency\": \"EUR\",\n      \"amounts\": {\n        \"rent\": 29700,\n        \"cleaning_fee\": 4000,\n        \"options\": 0,\n        \"tourist_tax\": 0,\n        \"commission\": 891,\n        \"total\": 33700\n      },\n      \"payment_status\": \"captured\",\n      \"created_at\": \"2026-09-29T20:13:54.000Z\",\n      \"updated_at\": \"2026-09-29T20:13:54.000Z\"\n    }\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-simUpdated",
          "name": "Simuler une modification",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event', () => pm.expect(d).to.include.keys([\"event\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sandbox/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "simulate"
              ]
            },
            "description": "Sandbox seulement. Le voyageur modifie sa réservation : webhook `reservation.updated`.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. The guest modifies the reservation: `reservation.updated`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"reservation.updated\",\n  \"reservation_id\": \"{{simReservationId}}\",\n  \"guests\": 3\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/simulate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "simulate"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"reservation.updated\",\n  \"reservation_id\": \"{{simReservationId}}\",\n  \"guests\": 3\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"reservation.updated\",\n    \"reservation_id\": \"81908164-6df2-462b-8ff3-a24be9d107ce\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"confirmed\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-simMessage",
          "name": "Simuler un message du voyageur",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event', () => pm.expect(d).to.include.keys([\"event\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sandbox/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "simulate"
              ]
            },
            "description": "Sandbox seulement. Webhook `message.received`, puis la conversation se relit avec `GET /reservations/{id}/messages`.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. `message.received`, then read the conversation with `GET /reservations/{id}/messages`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"message.received\",\n  \"reservation_id\": \"{{simReservationId}}\",\n  \"text\": \"Bonjour, peut-on arriver vers 18 h ?\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/simulate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "simulate"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"message.received\",\n  \"reservation_id\": \"{{simReservationId}}\",\n  \"text\": \"Bonjour, peut-on arriver vers 18 h ?\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"message.received\",\n    \"reservation_id\": \"81908164-6df2-462b-8ff3-a24be9d107ce\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-simReview",
          "name": "Simuler un avis",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event', () => pm.expect(d).to.include.keys([\"event\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sandbox/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "simulate"
              ]
            },
            "description": "Sandbox seulement. Webhook `review.created` (note sur 10).\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. `review.created` (rating out of 10).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"review.created\",\n  \"reservation_id\": \"{{simReservationId}}\",\n  \"rating\": 9,\n  \"text\": \"Très bel appartement, hôte réactif.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/simulate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "simulate"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"review.created\",\n  \"reservation_id\": \"{{simReservationId}}\",\n  \"rating\": 9,\n  \"text\": \"Très bel appartement, hôte réactif.\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"review.created\",\n    \"reservation_id\": \"81908164-6df2-462b-8ff3-a24be9d107ce\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-simValidated",
          "name": "Simuler la validation de l'annonce",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event', () => pm.expect(d).to.include.keys([\"event\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sandbox/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "simulate"
              ]
            },
            "description": "Sandbox seulement. Comme si l'équipe Localoge validait l'annonce : webhook `property.status_changed`.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. As if the Localoge team validated the listing: `property.status_changed`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"listing.validated\",\n  \"external_property_id\": \"{{propertyId}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/simulate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "simulate"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"listing.validated\",\n  \"external_property_id\": \"{{propertyId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"listing.validated\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"published\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-simCancelled",
          "name": "Simuler l'annulation par le voyageur",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 201', () => pm.expect(pm.response.code).to.be.oneOf([201]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs event', () => pm.expect(d).to.include.keys([\"event\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sandbox/simulate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "simulate"
              ]
            },
            "description": "Sandbox seulement. Les nuits se libèrent, webhook `reservation.cancelled`.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. Nights are released, `reservation.cancelled`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event\": \"reservation.cancelled\",\n  \"reservation_id\": \"{{simReservationId}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (201)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/simulate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "simulate"
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"event\": \"reservation.cancelled\",\n  \"reservation_id\": \"{{simReservationId}}\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"event\": \"reservation.cancelled\",\n    \"reservation_id\": \"81908164-6df2-462b-8ff3-a24be9d107ce\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"cancelled\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-emails",
          "name": "Boîte de test (e-mails du sandbox)",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs emails', () => pm.expect(d).to.include.keys([\"emails\"]));",
                  "pm.test('d.emails est un tableau', () => pm.expect(d.emails).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sandbox/emails?limit=5",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "emails"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "5"
                }
              ]
            },
            "description": "Sandbox seulement. Aucun e-mail ne part du sandbox : ceux qui seraient partis vers vos hôtes et voyageurs de test sont rangés ici.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only. No email leaves the sandbox: those that would have been sent are stored here."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/sandbox/emails?limit=5",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "sandbox",
                    "emails"
                  ],
                  "query": [
                    {
                      "key": "limit",
                      "value": "5"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"emails\": [\n      {\n        \"id\": \"9e3c8a74-16f9-477a-8f89-01f99b078390\",\n        \"to\": \"hote-test.demo-pms-test-claude@sandbox.localoge.invalid\",\n        \"subject\": \"Réservation annulée : Villa Les Pins, Agde\",\n        \"html\": \"<!DOCTYPE html>\\n<html lang=\\\"fr\\\">\\n<head>\\n  <meta charset=\\\"utf-8\\\">\\n  <meta name=\\\"viewport\\\" content=\\\"width=device-width,initial-scale=1\\\">\\n  <meta name=\\\"x-apple-disable-message-reformatting\\\">\\n  <title>Réservation annulée</title>\\n</head>\\n<body s…\",\n        \"listing_id\": null,\n        \"created_at\": \"2026-09-29T15:04:01.000Z\"\n      },\n      {\n        \"id\": \"b780f350-ee98-4138-ae68-fcd939829ca2\",\n        \"to\": \"hote-test.demo-pms-test-claude@sandbox.localoge.invalid\",\n        \"subject\": \"Nouvelle réservation : Villa Les Pins, Agde\",\n        \"html\": \"<!DOCTYPE html>\\n<html lang=\\\"fr\\\">\\n<head>\\n  <meta charset=\\\"utf-8\\\">\\n  <meta name=\\\"viewport\\\" content=\\\"width=device-width,initial-scale=1\\\">\\n  <meta name=\\\"x-apple-disable-message-reformatting\\\">\\n  <title>Nouvelle réservation 🎉</title>\\n</head>\\n<bo…\",\n        \"listing_id\": \"c4ab8e4c-4042-47bf-acba-a9eeae807ba4\",\n        \"created_at\": \"2026-09-29T15:03:44.000Z\"\n      },\n      {\n        \"id\": \"fcc7316c-851e-4bad-b66a-d0d5d8c8864d\",\n        \"to\": \"voyageur.demo-pms-test-claude@sandbox.localoge.invalid\",\n        \"subject\": \"Réservation confirmée : Villa Les Pins, Agde\",\n        \"html\": \"<!DOCTYPE html>\\n<html lang=\\\"fr\\\">\\n<head>\\n  <meta charset=\\\"utf-8\\\">\\n  <meta name=\\\"viewport\\\" content=\\\"width=device-width,initial-scale=1\\\">\\n  <meta name=\\\"x-apple-disable-message-reformatting\\\">\\n  <title>Réservation confirmée ✅</title>\\n</head>\\n<bo…\",\n        \"listing_id\": \"c4ab8e4c-4042-47bf-acba-a9eeae807ba4\",\n        \"created_at\": \"2026-09-29T15:03:44.000Z\"\n      }\n    ]\n  }\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Nettoyage",
      "description": "Archiver le logement d’essai ; remise à zéro du sandbox sur confirmation.",
      "item": [
        {
          "id": "localoge-archive",
          "name": "Archiver un logement",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Archivé', () => pm.expect(d.link_status).to.eql('archived'));"
                ]
              }
            }
          ],
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}"
              ]
            },
            "description": "« Supprimer » = **archiver** : hors vente, historique gardé (séjours, avis, factures). Refusé en 409 tant qu'un séjour est à venir. Un nouvel envoi du même identifiant le désarchive.\n\nDocumentation : https://developers.localoge.com/cycle-de-vie/\n\n---\n\n**EN.** \"Delete\" means **archive**: off sale, history kept. 409 `CONFLICT` while a stay is upcoming. Sending the same id again unarchives it."
          },
          "response": [
            {
              "name": "Réponse relevée sur le sandbox (200)",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"success\": true,\n  \"environment\": \"sandbox\",\n  \"data\": {\n    \"external_property_id\": \"POSTMAN-DEMO-1\",\n    \"listing_id\": \"cc4bcdf5-5d19-4096-88a6-803cef96ae6f\",\n    \"status\": \"paused\",\n    \"link_status\": \"archived\"\n  }\n}"
            },
            {
              "name": "Exemple documenté : 409 CONFLICT (séjour à venir)",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/properties/{{propertyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "properties",
                    "{{propertyId}}"
                  ]
                }
              },
              "status": "Conflict",
              "code": 409,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                },
                {
                  "key": "X-RateLimit-Limit",
                  "value": "600"
                },
                {
                  "key": "X-RateLimit-Remaining",
                  "value": "598"
                },
                {
                  "key": "X-RateLimit-Reset",
                  "value": "42"
                }
              ],
              "body": "{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"CONFLICT\",\n    \"message\": \"The current state of this object does not allow this operation: this property has an upcoming or ongoing stay; cancel it first\",\n    \"request_id\": \"d8f39d58-9dbb-4a03-b8a9-b524c82ed791\"\n  }\n}"
            }
          ]
        },
        {
          "id": "localoge-archiveFull",
          "name": "Archiver le logement complet",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 404', () => pm.expect(pm.response.code).to.be.oneOf([200, 404]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};"
                ]
              }
            }
          ],
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}-COMPLET",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}-COMPLET"
              ]
            },
            "description": "Archive la villa d'exemple créée par « Créer un logement COMPLET ».\n\nDocumentation : https://developers.localoge.com/cycle-de-vie/\n\n---\n\n**EN.** Archives the example villa created by \"Create a COMPLETE property\"."
          },
          "response": []
        },
        {
          "id": "localoge-archiveMinimal",
          "name": "Archiver le logement minimal",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200 ou 404', () => pm.expect(pm.response.code).to.be.oneOf([200, 404]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};"
                ]
              }
            }
          ],
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/properties/{{propertyId}}-MINIMAL",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "properties",
                "{{propertyId}}-MINIMAL"
              ]
            },
            "description": "Archive le logement créé par « Créer un logement MINIMAL ».\n\nDocumentation : https://developers.localoge.com/cycle-de-vie/\n\n---\n\n**EN.** Archives the property created by \"Create a MINIMAL property\"."
          },
          "response": []
        },
        {
          "id": "localoge-reset",
          "name": "Remettre le sandbox à zéro (destructif)",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "if (pm.variables.get('instanceAttendue') !== 'sandbox') {",
                  "  console.warn('Requête réservée au sandbox : ignorée sur cet environnement.');",
                  "  pm.execution.skipRequest();",
                  "}",
                  "if (pm.variables.get('confirmerRemiseAZero') !== 'oui') {",
                  "  console.warn('Remise à zéro ignorée : passez la variable confirmerRemiseAZero à « oui » pour l’exécuter.');",
                  "  pm.execution.skipRequest();",
                  "}"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('Statut HTTP 200', () => pm.expect(pm.response.code).to.be.oneOf([200]));",
                  "const j = pm.response.json(); const d = (j && j.data) || {};",
                  "pm.test('Champs reset, properties_removed', () => pm.expect(d).to.include.keys([\"reset\",\"properties_removed\"]));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sandbox/reset",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sandbox",
                "reset"
              ]
            },
            "description": "Sandbox seulement, et **destructif** : efface TOUS vos logements de test, leurs réservations, messages et événements. Ignorée tant que la variable `confirmerRemiseAZero` ne vaut pas `oui`.\n\nDocumentation : https://developers.localoge.com/simulateur/\n\n---\n\n**EN.** Sandbox only and **destructive**: erases ALL your test properties, reservations, messages and events. Skipped until `confirmerRemiseAZero` is `oui`."
          },
          "response": []
        }
      ]
    }
  ]
}
