Store tracker
Read tracker usage over an API key; add or remove stores from a logged-in session.
HOLEN
/api/v1/store-trackerRead tracker usage for the API key owner. Read-only. Alias: /api/store-tracker.
Senden
X-API-Schlüssel on every request.Request
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()Antwort
{
"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.
| Verfahren | Pfad | Body | Zweck |
|---|---|---|---|
| BEITRAG | /api/storetracker/add |
storeurl |
Track a store by URL/domain. |
| BEITRAG | /api/salestracker/delete |
Shop-ID |
Remove a tracked store. |
| HOLEN | /api/storetracker/amount-stores-tracked |
— | Tracked count (Betrag, max_allowed). |