API Badges
Endpoints pour la gestion des badges produits.
SDK: client.app.store.badge
Endpoints
Lister les badges
POST /app/{appId}/store/badge/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/store/badge/list \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Créer un badge
POST /app/{appId}/store/badge/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Oui | Nom du badge |
sellerId | string | Oui | ID du vendeur |
description | string | Non | Description |
image | string | Non | URL de l’image |
imageId | string | Non | ID du fichier image |
curl -X POST https://api.applite.ai/app/{appId}/store/badge/create \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Promo",
"sellerId": "sel_789",
"description": "Produit en promotion"
}'Obtenir un badge
POST /app/{appId}/store/badge/{id}Requête
curl -X POST https://api.applite.ai/app/{appId}/store/badge/{badgeId} \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Mettre à jour un badge
POST /app/{appId}/store/badge/{id}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom |
description | string | Non | Nouvelle description |
image | string | Non | Nouvelle image |
curl -X POST https://api.applite.ai/app/{appId}/store/badge/{badgeId}/edit \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Best-seller"
}'Supprimer un badge
POST /app/{appId}/store/badge/{id}/deleteRequête
curl -X POST https://api.applite.ai/app/{appId}/store/badge/{badgeId}/delete \
-H "Content-Type: application/json" \
-d '{"apiKey": "your_api_key"}'Last updated on