Resources
How to connect bank data to an AI-built expense tracker in Australia
Build an Australian budgeting app with Fiskil. Follow one bank consent through a paginated transaction list, a settled taxi fare and a customer’s category edit.
Mia’s expense tracker shows a supermarket shop for A$36.80, lunch for A$18.20 and a pending taxi fare for A$12.00. Her transaction list should show all three. Her posted spending is A$55.00. When the taxi fare settles at A$14.50, her posted spending becomes A$69.50. Moving lunch from Groceries to Eating out should leave that total exactly where it is.
Here’s how to build that screen for an Australian budgeting app. Your backend connects the accounts Mia chooses to share and imports their transactions. Your app decides which payments count as spending and saves her category choices. Mia, the rows and the amounts are fictional. You can use them as a repeatable test alongside Fiskil’s sandbox.
1. Connect the coding assistant and the app
If you’re working with an AI coding assistant, add Fiskil’s public documentation server at https://docs.fiskil.com/api/ai/mcp using its remote HTTP MCP settings. The assistant can look up endpoint schemas and examples without a Fiskil API key. Give it a specific task: “Build a server-side bank connection and transaction list. Show pending purchases separately from posted spending and preserve the user’s edits when the feed refreshes.” Fiskil MCP setup for supported clients.
Create sandbox credentials in the Fiskil Console. Your backend exchanges the client_id and client_secret at POST /v1/token and uses the returned bearer token for banking requests. Keep credentials and tokens out of prompts, browser code and logs. The request below selects v3 with the version header. Its banking URL still starts with /v1/. Sandbox setup · Authentication · API versioning.
2. Take Mia from consent to one shared account
When Mia signs in, create a Fiskil End User once and save the returned end_user_id against her app user ID. When she taps Connect your bank, resolve that ID on the server and create an auth session with a success redirect_uri and a cancel_uri. Open the returned auth_url. Mia chooses her institution and accounts and approves sharing. If she cancels, return her to the connect screen. Create End User · Create auth session · Consent flow.
On her return, show Loading transactions. The consent.received webhook records the grant. The banking.transactions.sync.completed event tells your backend that detailed transactions have synced. Verify each webhook signature against the original request bytes, and handle repeat deliveries by message_id. Fetch the authorised accounts for Mia’s End User and let her select the everyday account. Recheck ownership and sharing scope on the server each time she reads or edits an expense. Webhooks · Get Accounts · List consents.
3. Import the transaction list, one page at a time
This server-side request uses the End User and account IDs you just resolved. A page size of two makes pagination easy to exercise. Leave the status filter unset so both pending and posted purchases can reach the list. Get Transactions parameters and response.
curl --fail --get 'https://api.fiskil.com/v1/banking/transactions' \
--header "Authorization: Bearer ${FISKIL_ACCESS_TOKEN}" \
--header 'X-Fiskil-Version: v3' \
--data-urlencode "end_user_id=${END_USER_ID}" \
--data-urlencode "account_id=${ACCOUNT_ID}" \
--data-urlencode 'page[size]=2'
Read the transactions array and follow the returned links.next until there is no next page. Keep the original user and account scope throughout. Insert each new record or update the existing row with the same scoped fiskil_id. Commit that page and its progress marker together. If page two fails, the screen can show the last complete import and its timestamp while your backend retries. Advance the completed-import timestamp only after the last page succeeds. Transaction identity and pagination · Integration best practices.
To label the feed’s freshness, look up banking.transactions for the selected End User and account. A manual transaction refresh queues work. Check freshness or wait for sync completion before telling Mia the feed is current. If your screen also shows money in the bank, fetch the account balance separately. A spending total answers a different question. Get Data Freshness · Refresh transactions · Get Balances.
4. Store the bank record and the user’s edit separately
The following is a small application data model. The unique keys keep a repeated page from creating a second expense and let Mia change a label without changing the bank amount. Restrict every join to the signed-in user’s authorised account.
| App record | Key and fields | What changes it |
|---|---|---|
| User connection | App user ID → Fiskil End User ID. Store each consent ID and its sharing state. | Consent events and a check of active consents. |
| Shared account | Local account key scoped to the owner, connection, institution and provider account ID. | An authorised accounts read. |
| Bank transaction | Unique pair of local account key and fiskil_id. Store status, signed amount, currency, posting time, display description and mapped provider category. |
A transaction import updates the source fields. |
| Personal category | One row per app user and bank transaction, holding a category label and edit time. | A deliberate user edit or reset. |
| Import progress | Account, query window, next-page link and last complete import time. | A successful page commit or the end of a complete import. |
For spending, this app groups by posting date in Australia/Sydney and keeps each currency separate. Convert AUD decimal strings to integer cents using decimal arithmetic. If a posted row lacks a posting time, flag it for review before assigning a day. Fiskil’s own from and to filters check posting time first and can fall back to execution time, so an API date filter alone doesn’t implement this reporting rule. Transaction date filters · Signed amounts and timestamps.
5. Calculate spending, then let Mia correct lunch
Here is Mia’s first import for one account. All three rows fall in the same reporting week. The labels are the app’s budget categories. This tracker shows gross purchases and displays income, refunds and confirmed transfers between the user’s own accounts separately.
| Transaction | Signed amount | Feed status | Initial budget category |
|---|---|---|---|
| Supermarket | −A$36.80 | Posted | Groceries |
| Bakery lunch | −A$18.20 | Posted | Groceries |
| Taxi | −A$12.00 | Pending | Transport |
The first two rows give A$55.00 in Groceries. Keep the A$12.00 visible with a Pending label. In the next complete import, the taxi appears as a posted A$14.50 purchase. Count the posted amount once. A pending item can carry a different amount or identifier in your test cases. Only link the two records when you have a reliable relationship. Similar descriptions and nearby dates alone cannot establish a match. If a pending item’s fate is uncertain, keep it out of posted spending and indicate its status. Transaction status filter · Pending and posted movements.
Mia opens the bakery row, selects Eating out and saves. Upsert one personal category against her posted bakery transaction. On the next import, refresh the provider fields and leave her edit in place. The following query runs against the app tables described above. Its input is one authorised account and one reporting week, with report_day, amount_cents and is_purchase set by the app during import.
SELECT COALESCE(e.label, t.provider_group, 'Uncategorised') AS category,
SUM(-t.amount_cents) AS spent_cents
FROM bank_transaction AS t
LEFT JOIN personal_category AS e
ON e.transaction_key = t.transaction_key AND e.user_id = :user_id
WHERE t.account_key = :authorised_account
AND t.currency = 'AUD' AND t.status = 'POSTED'
AND t.is_purchase = 1 AND t.amount_cents < 0
AND t.report_day >= :week_start AND t.report_day < :next_week
GROUP BY COALESCE(e.label, t.provider_group, 'Uncategorised');
| Posted spending | Before Mia’s edit | After Mia’s edit |
|---|---|---|
| Groceries | A$55.00 | A$36.80 |
| Eating out | A$0.00 | A$18.20 |
| Transport | A$14.50 | A$14.50 |
| Total | A$69.50 | A$69.50 |
If your product lets the user correct Fiskil’s predicted category itself, the API provides a separate operation. Send the transaction’s fiskil_id as fiskil_transaction_id and a valid Fiskil secondary_category to POST /v1/banking/transactions/category. Read the record back before showing the provider correction as confirmed. Mia’s personal label above needs only the local edit. Override Transaction Category · Fiskil’s category correction walkthrough.
6. Check the sandbox journey and the budget maths
In the Fiskil sandbox, create a test End User, start an auth session, choose the test bank, select an account and confirm sharing. Verify that your backend can list that account, retrieve its transactions and display freshness. Use controlled local fixtures for Mia’s exact amounts and status changes. Sandbox walkthrough · Get Transactions.
| Exercise | Pass condition |
|---|---|
| Cancel consent, then complete a fresh session | Cancellation returns to the connect screen. Successful consent shows loading until the dataset is ready. |
| Fail page two, retry it and replay the sync event | The partial import never appears complete. After retry there is one row per scoped transaction ID. |
| Start with the pending fare, then add the posted fare with a different ID | Posted spending moves from A$55.00 to A$69.50, even if the pending row is still visible. |
| Edit lunch, then replay the import | Eating out stays at A$18.20 and the total stays at A$69.50. A reset restores the current provider grouping. |
| Try a different user’s account or end the relevant consent | The backend refuses the cross-user read and edit. When consent ends, it stops new retrieval for that sharing scope and follows the agreed data-handling process. |
For a production rollout, use the budgeting app integration guide to plan CDR responsibilities and data handling. Once the sandbox journey and the spending checks pass, request live access through the Fiskil Console and complete the go-live checklist.


