## Vue d'ensemble L'Email Pro **débite votre wallet** et crée un service email sous le domaine du client. **Scope requis :** `reseller:email` ## Plans disponibles | Slug | Nom | Prix (XAF/an) | Boîtes | |------|-----|---------------|--------| | `email-solo` | Email Solo | 12 000 | 1 | | `email-pro-plan` | Email Pro | 25 000 | 5 | | `email-business` | Email Business | 45 000 | Illimité | ## Activer un Email Pro ```http POST /api/v1/reseller/clients/{client_id}/email ``` **Corps de la requête :** | Champ | Type | Requis | Description | |-------|------|--------|-------------| | `plan_slug` | string | Oui | Slug du plan email | | `domain` | string | Oui | Domaine pour les boîtes email | ```bash curl -X POST "https://kennhosting.com/api/v1/reseller/clients/1/email" \ -H "Authorization: Bearer kh_live_YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "plan_slug": "email-solo", "domain": "jean-site.cm" }' ``` **Réponse live (201) :** ```json { "success": true, "data": { "sandbox": false, "client_id": 1, "order_uuid": "b8519367-97a8-4e6a-8ca7-677ba97bdda4", "plan": "email-solo", "domain": "jean-site.cm", "status": "provisioning", "amount_debited": 12000, "message": "L'Email Pro est en cours de création. Vous recevrez un webhook lorsqu'il sera actif." } } ``` **Réponse sandbox (201) :** ```json { "success": true, "data": { "sandbox": true, "client_id": 1, "plan": "email-solo", "domain": "jean-test.cm", "status": "active", "amount_debited": 12000, "message": "Email Pro sandbox simulé — aucune ressource réelle créée." } } ``` ## Consulter un service Email Pro ```http GET /api/v1/reseller/clients/{client_id}/email/{service_uuid} ``` ## Supprimer un service Email Pro ```http DELETE /api/v1/reseller/clients/{client_id}/email/{service_uuid} ``` Le client doit avoir un compte KennHosting (`user_id != null`) pour recevoir un service Email Pro en mode live. Un client sandbox ne peut pas avoir de services live.