Démarrage rapide
Effectuez votre première requête API
Clé API
Dans le tableau de bord : Paramètres → Organisation → Clés. Choisissez Lecture ou Écriture.
Lister les produits
curl -sS \
-H "Authorization: Bearer YOUR_API_KEY" \
"https://dashboard.scango.ch/api/v1/products?limit=5"
{
"data": [{ "id": "…", "name": "…", "price": 120 }],
"meta": { "total": 1, "returned": 1, "limit": 5 }
}
Commandes
start, end et paymentState sont obligatoires :
curl -sS \
-H "Authorization: Bearer YOUR_API_KEY" \
"https://dashboard.scango.ch/api/v1/orders?start=2024-01-01T00:00:00.000Z&end=2024-01-02T00:00:00.000Z&paymentState=successful&limit=100"