Store tracker
Read tracker usage over an API key; add or remove stores from a logged-in session.
OBTENIR
/api/v1/store-trackerRead tracker usage for the API key owner. Read-only. Alias: /api/store-tracker.
Send
Clé X-API on every request.Demande
curl -sS \
-H "X-API-Key: $WH_API_KEY" \
"{origin}/api/v1/store-tracker"const res = await fetch(`${ORIGIN}/api/v1/store-tracker`, {
method: 'GET',
headers: {
'X-API-Key': process.env.WH_API_KEY,
},
});
const data = await res.json();import os, requests
res = requests.get(
f"{ORIGIN}/api/v1/store-tracker",
headers={"X-API-Key": os.environ["WH_API_KEY"]},
)
data = res.json()Response
{
"success": true,
"amount": 37,
"max_allowed": 100
}{
"success": false,
"error": "Unauthorized"
}Track / remove (session only)
These power the Sales tracker UI and require a logged-in browser session, not an API key.
| Method | Chemin | Body | Objectif |
|---|---|---|---|
| PUBLICATION | /api/storetracker/add |
storeurl |
Track a store by URL/domain. |
| PUBLICATION | /api/salestracker/delete |
shopid |
Remove a tracked store. |
| OBTENIR | /api/storetracker/amount-stores-tracked |
— | Tracked count (amount, max_allowed). |