Créer un événement de conversion vente
| Champ | Type | Requis | Description |
|---|---|---|---|
trackingId | string | ✓ | Le ta_tid du cookie ou paramètre URL |
customer | object | ✓ | Informations client |
customer.externalId | string | ✓ | Votre ID utilisateur/client interne |
customer.email | string | Adresse email du client | |
customer.firstname | string | Prénom du client | |
customer.lastname | string | Nom du client | |
customer.phoneNumber | string | Numéro de téléphone du client | |
customer.avatarUrl | string | URL de l’avatar du client | |
amount | number | ✓ | Montant en unités de devise (pas en centimes) |
currency | string | ✓ | Code devise ISO 4217 (ex: eur, usd) |
metadata | object | Données personnalisées (paires clé-valeur) |
| Devise | Code |
|---|---|
| Euro | eur |
| Dollar US | usd |
| Livre Sterling | gbp |
| Yen Japonais | jpy |
| Franc Suisse | chf |
| Dollar Canadien | cad |
| Dollar Australien | aud |
| Code HTTP | Erreur | Description |
|---|---|---|
| 400 | Invalid payload | Validation du corps de requête échouée |
| 400 | Missing customer.externalId | Champ requis non fourni |
| 401 | Invalid API key | Clé API invalide ou révoquée |
| 401 | Hostname not in allowed list | Origine non autorisée (côté client) |
| 403 | This click does not belong to your workspace | trackingId appartient à un autre workspace |
| 404 | Click not found for this trackingId | trackingId n’existe pas ou a expiré |