Cards
Get Card Spending Insights
Returns entity-wide spending analytics for your entity: total spend, cashback earned, top merchants, top expenses, and weekly trends. Requires admin, viewer, or card manager access.
get/cards/insights
Request
- Base URLhttps://api.meow.com/v1
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
from_datestring date-time nullable
Only spend on or after this date.
to_datestring date-time nullable
Only spend on or before this date.
limit_top_expensesinteger
How many top expenses to return.
limit_top_merchantsinteger
How many top merchants to return.
Headers
x-entity-idstring uuid
Optional entity_id to scope requests to a specific entity.
Response
Successful Response
Example response
{
"top_expenses": [
{
"cardholder": "Felix Whiskers",
"trace_id": "card_24692111234567890123456"
}
],
"top_merchants": [
{
"merchant": "Whisker Roasters"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.