Skip to content

Cards by type

GET
/analytics/card-type-distribution

Card-derived, and cards carry no location, so a location-restricted key gets location_scope_unsupported (403) instead of a shop-wide number.

Authorizations

ApiKeyBearer

A shop-scoped API key created in the dashboard and shown exactly once. An MCP tmk_ key presented here returns a 401 that names the mistake.

Type
HTTP (bearer)

Responses

Cards by type

application/json
JSON
{
  
"distribution": [
  
  
{
  
  
  
"type": "standard",
  
  
  
"count": 12,
  
  
  
"label_key": "card_types.standard",
  
  
  
"color": "#6F4E37"
  
  
}
  
]
}

Samples

Powered by VitePress OpenAPI

Requires the Business API add-on.