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

Avis

Les avis permettent aux clients de noter et commenter des produits, agents ou rendez-vous. Les avis supportent plusieurs types : STORE_PRODUCT, MULTI_SERVICE_AGENT, MULTI_SERVICE_APPOINTMENT.

SDK : client.review

Endpoints

Soumettre un avis (client)

Permet à un client de soumettre un nouvel avis.

POST /app/{appId}/review/submit
ChampTypeRequisDescription
appApiKeystringOuiClé API de l’application
customerApiKeystringOuiClé API du client (téléphone)
typestringOuiSTORE_PRODUCT, MULTI_SERVICE_AGENT, MULTI_SERVICE_APPOINTMENT
ratingnumberOuiNote (1-5)
titlestringNonTitre de l’avis
commentstringNonCommentaire
imagesstring[]NonURLs des images
productIdstringNonID du produit (si type STORE_PRODUCT)
agentIdstringNonID de l’agent (si type MULTI_SERVICE_AGENT)
appointmentIdstringNonID du rendez-vous (si type MULTI_SERVICE_APPOINTMENT)
curl -X POST https://api.applite.ai/app/{appId}/review/submit \ -H "Content-Type: application/json" \ -d '{ "appApiKey": "app_api_key", "customerApiKey": "+2250700000000", "type": "STORE_PRODUCT", "rating": 4, "title": "Très bon produit", "comment": "Qualité excellente", "productId": "product_id" }'

Lister les avis publics

Liste les avis vérifiés (endpoint public).

POST /app/{appId}/review/public
ChampTypeRequisDescription
appApiKeystringNonClé API de l’application
customerApiKeystringNonClé API du client
typestringNonFiltrer par type
productIdstringNonFiltrer par produit
agentIdstringNonFiltrer par agent
appointmentIdstringNonFiltrer par rendez-vous
pagenumberNonNuméro de page
limitnumberNonÉléments par page
curl -X POST https://api.applite.ai/app/{appId}/review/public \ -H "Content-Type: application/json" \ -d '{ "appApiKey": "app_api_key", "type": "STORE_PRODUCT", "productId": "product_id", "limit": 10 }'

Obtenir un avis

Récupère les détails d’un avis par son ID.

POST /app/{appId}/review/{id}
ChampTypeRequisDescription
apiKeystringOuiClé API de l’utilisateur
curl -X POST https://api.applite.ai/app/{appId}/review/{id} \ -H "Content-Type: application/json" \ -d '{ "apiKey": "user_api_key" }'
Last updated on