QR template statistics
Overview
Get aggregate QR template counts for the authenticated user's company — total templates, a breakdown by template type, and a count of those created in the last 30 days. Optionally scoped by store and/or created_at date range.
Prerequisites
- A bearer token. Callable with Account tokens.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
GET /api/v1/qr-codes/template/stats
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Who can call it: Account tokens.
-
All aggregates cover only (own company).
-
The optional
store_idmust also sit inside your own account tree.
Rate limit
- No rate limit.
Query parameters
- Query:
store_id(integer, optional) — must be an existing location and belong to the auth company (an ownership check). - Query:
start_date(stringY-m-d, optional) — the earliestcreated_atto include; swapped withend_datewhen the two are reversed. - Query:
end_date(stringY-m-d, optional) — the latestcreated_atto include.
Response
data.status(string) —"success".data.data(object):total_templates(integer) — count matching the scope/filters.by_template_type(object) — map oftemplate_type→ count (only types present appear as keys).recently_created(integer) — count withcreated_at >= now-30 days(within the same scope).data.message(string) —"QR code template statistics retrieved successfully".
200 OK · 200
200{
"data": {
"status": "success",
"data": {
"total_templates": 25,
"by_template_type": { "standard": 15, "hangtag": 7, "custom": 3 },
"recently_created": 3
},
"message": "QR code template statistics retrieved successfully"
}
}Errors
| Status | Meaning |
|---|---|
401 | The bearer token is missing, expired or invalid |
422 | The request failed validation — the response names the fields |
500 | Unexpected server error |
Example request
curl --request GET \
--url "https://production-api.shoutaboutus.com/api/v1/qr-codes/template/stats" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 10 days ago
Did this page help you?
