Créer un plan
Plans
Créer un plan
Créer un plan d’abonnement
POST
Créer un plan
Documentation Index
Fetch the complete documentation index at: https://docs.sahelpay.ml/llms.txt
Use this file to discover all available pages before exploring further.
Créer un plan
Crée un nouveau plan d’abonnement (hebdomadaire ou mensuel).Endpoint
Headers
| Header | Requis | Description |
|---|---|---|
Authorization | ✅ | Bearer sk_xxx |
Content-Type | ✅ | application/json |
Body
| Paramètre | Type | Requis | Description |
|---|---|---|---|
name | string | ✅ | Nom du plan (ex: “Premium Mensuel”) |
amount | integer | ✅ | Montant en FCFA |
interval | string | ✅ | WEEKLY ou MONTHLY |
description | string | Description du plan |
Exemple
Réponse
Erreurs
| Code | Description |
|---|---|
INVALID_AMOUNT | Montant invalide |
INVALID_INTERVAL | Interval doit être WEEKLY ou MONTHLY |