DevelopersAPIReferencedata
ProfitLoss
ProfitLoss (data endpoint) in the Walletguide REST API. Parameters, response fields, and a playground you can run.
Authorization
bearerAuth Authorization<token>
A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.
In: header
Path Parameters
walletId*string
The wallet id (row uuid)
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/data/profitLoss" \ -H "Content-Type: application/json" \ -d '{ "monthPeriod": { "startMonth": "string", "endMonth": "string" } }'{ "rows": [ { "id": "string", "parentId": "string", "kind": "category", "level": 0, "name": "string", "amountsPerMonth": [ 0 ], "hasPlainTransactionsPerMonth": [ true ] } ], "unassignedPerMonth": [ 0 ], "currencyChangeEffectPerMonth": [ 0 ], "totalsPerMonth": [ 0 ], "months": [ "string" ]}