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
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 |
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) :
{
"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) :
{
"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
GET /api/v1/reseller/clients/{client_id}/email/{service_uuid}
Supprimer un service Email Pro
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.