New vs closed location count (last 4 months)
Overview
Get new-vs-closed location counts for each of the last four calendar months for the authenticated partner.
Prerequisites
- A bearer token. Callable with Partner tokens.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/partner/stats/new-vs-closed-location-count
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Who can call it: Partner tokens.
-
Mounted under the
partner/statsgroup. -
Scope joins
store, then company(loc,bundle_id=2), then brand, then partner, then main_partnerand matches when eitherpartner.idormain_partner.idequals. -
New counts use the account's
created_atover active/pending stores (narrowed byassignBrandswhen you setassign_brand). -
Closed counts use the account's soft-deleted
deleted_at(withTrashed), narrowed when you setassign_location.
Rate limit
- No rate limit.
Request
- No path, query, or body params (reads the authenticated user only).
Response
month(string) — short month-year label, e.g."Jun 26"(CarbonM yformat).closed_count(int) — locations deleted that month (0 if none).new_count(int) — locations created that month (0 if none).
200 Success · 200
200{
"data": [
{ "month": "Feb 26", "closed_count": 2, "new_count": 8 },
{ "month": "Mar 26", "closed_count": 1, "new_count": 5 },
{ "month": "Apr 26", "closed_count": 3, "new_count": 10 },
{ "month": "May 26", "closed_count": 0, "new_count": 7 }
]
}Errors
| Status | Meaning |
|---|---|
401 | The bearer token is missing, expired or invalid |
500 | Unexpected server error |
Example request
curl --request GET \
--url "https://production-api.shoutaboutus.com/api/v1/partner/stats/new-vs-closed-location-count" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 9 days ago
Did this page help you?
