# Réservations
# Nouvelle réservation créée
Création d'une réservation
{
"event": "purchase:created",
"emitted_at": "2022-11-30T15:22:11.000000Z",
"data": {
"id": 2352,
"owner_id": 3,
"vat_rate": 20,
"has_mixed_vat": false,
"deposit_amount": null,
"price_including_vat": 377000,
"comment": null,
"status": "pre-booked",
"cancellation_type": null,
"cancellation_comment": null,
"deposit_refunded": 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
}
],
"pre_booking_confirmed_at": null,
"booking_contract_signed_at": null,
"withdrawal_period_expires_at": null,
"notary_appointment_set_at": null,
"notary_appointment_end_at": null,
"sale_deed_signed_at": null,
"canceled_at": null,
"context": {
"tenant_key": "espace-client",
"program_id": 120,
"interest_id": 13512,
"lead_id": 59938
}
}
}
# Statut d'une réservation mis à jour
Mise à jour du statut d'une réservation
{
"event": "purchase:status-updated",
"emitted_at": "2022-11-30T15:22:11.000000Z",
"data": {
"id": 2352,
"owner_id": 3,
"vat_rate": 20,
"has_mixed_vat": false,
"deposit_amount": null,
"price_including_vat": 377000,
"comment": null,
"status": "booked",
"cancellation_type": null,
"cancellation_comment": null,
"deposit_refunded": 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
}
],
"pre_booking_confirmed_at": null,
"booking_contract_signed_at": "2024-02-08T23:00:00.000000Z",
"withdrawal_period_expires_at": null,
"notary_appointment_set_at": null,
"notary_appointment_end_at": null,
"sale_deed_signed_at": null,
"canceled_at": null,
"context": {
"tenant_key": "espace-client",
"program_id": 120,
"interest_id": 13512,
"lead_id": 59938
}
}
}
# Réservation supprimée
Suppression d'une réservation
{
"event": "purchase:deleted",
"emitted_at": "2022-11-30T15:22:11.000000Z",
"data": {
"id": 2352,
"context": {
"tenant_key": "espace-client",
"program_id": 120
}
}
}
# Modèle
| Champ | Type | Description | Exemple |
|---|---|---|---|
| id | int | ID de la réservation | 2351 |
Se référer à la section modèle des réservations
# 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 |
← Options