# Options
# Nouvelle option créée
Création d'une option
{
"event": "option:created",
"emitted_at": "2022-11-30T15:22:11.000000Z",
"data": {
"id": 2351,
"owner_id": 3,
"status": "option",
"option_lifespan": null,
"estimated_availability": null,
"expires_at": "2024-02-13 15:00:00",
"lots": [
{
"id": 8116,
"primpromo_id": null,
"reference": "M04",
"type": "house",
"typology": "T4",
"subtype": null
},
{
"id": 8120,
"primpromo_id": null,
"reference": "P01",
"type": "parking",
"typology": "underground",
"subtype": null
}
],
"context": {
"tenant_key": "espace-client",
"program_id": 120,
"interest_id": 13515,
"lead_id": 59941
}
}
}
# Option mise à jour
Mise à jour d'une option
{
"event": "option:updated",
"emitted_at": "2022-11-30T15:22:11.000000Z",
"data": {
"id": 2351,
"owner_id": 3,
"status": "option-canceled",
"option_lifespan": null,
"estimated_availability": null,
"expires_at": null,
"lots": [
{
"id": 8116,
"primpromo_id": null,
"reference": "M04",
"type": "house",
"typology": "T4",
"subtype": null
},
{
"id": 8120,
"primpromo_id": null,
"reference": "P01",
"type": "parking",
"typology": "underground",
"subtype": null
}
],
"context": {
"tenant_key": "espace-client",
"program_id": 120,
"interest_id": 13515,
"lead_id": 59941
}
}
}
# Option supprimée
Suppression d'une option
{
"event": "option:deleted",
"emitted_at": "2022-11-30T15:22:11.000000Z",
"data": {
"id": 2351,
"context": {
"tenant_key": "espace-client",
"program_id": 120
}
}
}
# Modèle
| Champ | Type | Description | Exemple |
|---|---|---|---|
| id | int | ID de l'option | 2351 |
Se référer à la section modèle des options
# Contexte
| Champ | Type | Description | Exemple |
|---|---|---|---|
| tenant_key | string | Clé de l'espace client | espace-client |
| program_id | int | ID du programme | 100 |
| program_primpromo_id | string | ID Primpromo du programme (si PPM connecté) | 09141 |
| interest_id | int | ID de l'intérêt programme | 141 |
| lead_id | int | ID du lead | 9141 |