DevelopersAPIReferencedata
ExpensesByMerchant
Whole-wallet figures need the permissions listed without assets:read; scoping the request with assetIds makes it a per-asset breakdown, which needs…
POST
bearerAuthheader
Authorization<token>A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.
walletId*stringThe wallet id (row uuid)
Format
uuidapplication/json- body
period*|Window the merchant spend is aggregated over.
limit?integerMax merchants to return (default 10).
Range
0 < valueassetIds?array<string>Scope to these asset uuids; omit for whole-wallet.
categoryIds?array<string>Scope to these category uuids; omit for all categories.
expensesByMerchant result
application/json- response
[index: integer]?curl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/data/expensesByMerchant' \ -H 'Content-Type: application/json' \ -d '{ "period": "today"}'Example Response
[ { "merchantId": "string", "merchantName": "string", "amount": 0, "logo": "string" }]