Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API

API Badges

Endpoints pour la gestion des badges produits.

SDK: client.app.store.badge

Endpoints

Lister les badges

POST /app/{appId}/store/badge/list
ChampTypeRequisDescription
apiKeystringOuiClé 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/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom du badge
sellerIdstringOuiID du vendeur
descriptionstringNonDescription
imagestringNonURL de l’image
imageIdstringNonID 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}
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}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
descriptionstringNonNouvelle description
imagestringNonNouvelle 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}/delete
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