Skip to main content
This page lists the public API’s changes, newest first. Version 1 changes only by addition: new requests, fields, parameters and events. The SDKs’ own changes are in their repositories’ CHANGELOG: degroshi-js and degroshi-python. The OpenAPI 3.1 spec the API reference is built from is here: public-openapi.json. Generate a client from it, or compare versions to see what was added.
  • A refund linked to the purchase it gives back names that purchase: refund_of_id on GET /v1/transactions, GET and PATCH /v1/transactions/{id}, POST /v1/transactions and the transaction.created and transaction.updated webhooks. The field is absent when there’s no link.
  • A webhook whose signing secret was found in public code gets a new secret by itself, and secret_leak says when (at) and where (url, when the report named one) it was found. The secret shown since is the new one: give it to the receiver. The field is on GET /v1/webhooks, POST /v1/webhooks (in endpoint), GET and PATCH /v1/webhooks/{id} and the pause and resume responses.
  • SDK 1.0.0-beta.17 for JavaScript and 1.0.0b17 for Python: these fields. See SDKs.
  • An account that is the archived copy of your part of a shared account, after access to it ended, has keeps_share_history on GET /v1/accounts, GET /v1/accounts/{id} and the accounts in GET /v1/accounts/net-worth. Such an account stays archived; it can only be deleted for good.
  • A transaction booked at the card’s rate has fx_correction_bps: the correction to our rate in basis points (460 is +4.6%). The field is on GET /v1/transactions, GET and PATCH /v1/transactions/{id}, POST /v1/transactions and the transaction.created and transaction.updated webhooks.
  • DELETE /v1/transactions/{id} takes an optional as_duplicate_of: the ID of the transaction kept when this one is deleted as its duplicate.
  • SDK 1.0.0-beta.15 and 1.0.0-beta.16 for JavaScript, 1.0.0b15 and 1.0.0b16 for Python: these fields and the parameter. See SDKs.
  • Webhooks can be managed with an API key that holds webhooks:manage (“Full access” gives it): /v1/webhooks creates, changes, pauses and deletes the request space’s webhooks, rotates their secrets, sends test events and shows deliveries. A key sees only that space’s webhooks whose events’ data it reads; the secret comes in the answers to creating a webhook and changing its secret. A new code, WHK_009. space_ids in POST /v1/webhooks is now optional. See Managing webhooks through the API.
  • GET /v1/transactions/day-totals: every day and the response carry count, how many rows the list shows for the same filters (transfers and cancelled rows included). A day with rows but no money (transfers alone) now appears with spent and earned at 0. Every list filter it already took is now documented on it: places, project, counterparty, recurring rule, import, tax review, include_portfolio_transfers and one_row_per_transfer.
  • SDKs 1.0.0-beta.3 for JavaScript and 1.0.0b3 for Python: degroshi.webhooks manages webhooks (list, create, change, pause, rotate the secret, send a test event, deliveries and resending them) beside verify. See SDKs.
  • The developer sandbox: a sandbox key starts with dg_test_ and reaches only your «Пісочниця», a space of invented demo data. POST /v1/sandbox/reset puts it back to that data (sandbox keys only, else 403 SBX_004; 20 a day, 429 SBX_003), and change-feed cursors then get 410. GET /v1/me/spaces has is_sandbox. New codes SBX_001 to SBX_009.
  • SDKs 1.0.0-beta.4 for JavaScript and 1.0.0b4 for Python: sandbox.reset() for a sandbox key, is_sandbox on spaces, and an account’s instalment_plan_id and a recurring rule’s day_changes (instalments are still off, so for now they’re null and empty). See SDKs.
  • Webhook event sandbox.reset: the sandbox went back to its starting data (origin api or app, the new seeded_at and seed_version). Only the sandbox sends it; a key needs transactions:read. The reference console now sends requests and takes only a sandbox key: any other key gets 403 AUTH_081. See Sandbox.
  • fx_basis on transactions (reference, card or bank): how amount was found from original_amount. Send bank when amount is what the account was charged: the account learns its own rate from it, and amounts the server converts itself (an edit of the original, the assistant’s drafts) take our rate with that correction.
  • GET /v1/transactions and GET /v1/transactions/day-totals take merchant_key: one merchant’s rows, by the key analytics gives a merchant (p:<brand id>, or n:<text> for a merchant without a brand).
  • GET /v1/transactions pages by cursor: pass meta.next_cursor (absent on the last page) as after, and the next page starts right after the last row, with the same filters and sort (another sort is a 400). Rows added or removed meanwhile don’t repeat or go missing; page works as before. The amount sorts compare at the latest rates, so a rate change between pages can move a row: drop repeats by id, or page by date. count=false together with after skips counting every row: meta.total and total_pages are then 0, while has_next and next_cursor work as always.
  • GET /v1/accounts/net-worth has change_24h: the net worth now against 24 hours earlier (since), with previous_net_worth, amount and percent (absent when the earlier net worth was 0). The earlier net worth counts every balance as of then, wallets, exchanges and brokerage accounts at that day’s value and that day’s rates. The field is absent when a rate of that day is missing.
  • A transaction’s place, when written, can be {"ref": "online"}: the space’s one place for purchases online.
  • GET /v1/analytics/merchants takes group_by=category with limit_per_category (1 to 20, 3 by default): each category’s largest merchants, and the new others with what the category has left. exclude_recurring=true leaves out the transactions a recurring payment created or matched.
  • Accounts have archived_at, when an archived account was closed: on GET /v1/accounts, GET /v1/accounts/{id} and by_account.items in GET /v1/accounts/net-worth.
  • A recurring payment can be a transfer: kind transfer with to_account_id, and to_amount when the receiving account is in another currency (without it, the amount converts at the payment day’s rate). The items of GET /v1/recurring-transactions/occurrences have kind, to_account_id and to_account_name. Transfers count in neither income nor spending.
  • A transaction on an account of pooled money can say whose spending it is: spent_by and spent_by_name in the responses and the transaction.created and transaction.updated webhooks. PATCH /v1/transactions/{id} takes spent_by (or null to make it shared again), and GET /v1/transactions and GET /v1/transactions/day-totals filter by spent_by.
  • Items in POST /v1/sources/{id}/transactions/batch can carry transfer: {account}: the item is one leg of a transfer, and account is another account of the source (its external_id) or any account of the space (its id). It links to the other leg on that account (the same amount the other way within 3 days; in another currency, the only one the other way), or waits up to 3 days for it. Degroshi never creates the other leg.
  • An account shared with the “View and add transactions” role has grant.edit_scope (own or all): which transactions may be changed. Every transaction has editable: whether the caller may change it (in the responses and the transaction.created and transaction.updated webhooks).
  • SDK 1.0.0-beta.5 to 1.0.0-beta.14 for JavaScript and 1.0.0b5 to 1.0.0b14 for Python: all of these fields and parameters, and transactions.iterate() pages by cursor once the API gives one. See SDKs.
  • GET /v1/analytics/net-worth takes share: with account_ids (an account’s own chart), whole shows the account whole, the whole balance and every operation, an account shared with you included. Without account_ids, net worth counts your part, as before.
  • share on the analytics endpoints and GET /v1/transactions/day-totals is documented: mine (your part of an account shared with you, the default) or whole (the whole account). It used to read “Reserved”.
  • Writing transactions: POST /v1/transactions, PATCH and DELETE /v1/transactions/{id} with the transactions:write permission (“Full access”). See Recording transactions.
  • Custom sources: /v1/sources creates a source, and a key with sources:write sends its accounts, transactions and balances. See Custom sources.
  • An Idempotency-Key header on the requests that create transactions, sources and balances: a retry with the same key within 24 hours gets the first answer.
  • GET /v1/me/spaces returns a key’s spaces with their ID, kind and your role, and works with any key.
  • A key can be limited to IP addresses and ranges; a request from another address gets a 403 with the code AUTH_080.
  • Webhooks: nine events, each signed in Degroshi-Signature. See Webhooks.
  • GET /v1/events and GET /v1/events/{id} return the last 30 days of events in the same shape as the webhook; the transaction and account lists take updated_since.
  • GET /v1/transactions takes the types, statuses, category_ids and treatment_classes filters, and GET /v1/transactions/day-totals takes types, statuses and category_ids, to pick several values at once.
  • The official SDKs for JavaScript and Python, 1.0.0-beta.0 and then 1.0.0-beta.1. See SDKs.
  • The API reference describes only what keys can use.
  • The change feed, GET /v1/changes: everything that changed since a cursor, deletions included, in the order the changes were saved. See Keeping a copy.
  • GET /v1/events records events from the first API key, even before there is a webhook.
  • Webhooks send amounts and balances as exact decimal strings, like the rest of the API ("642.3"), and changes made with an API key carry source api.
  • The API reference reads in English throughout: examples don’t quote the app’s labels, and fields go by their JSON names. Every operation documents its 429 answer (BIZ_080) with the Retry-After and X-RateLimit-* headers, the operations that convert money document the X-Display-Currency header, and x-error-codes lists only the codes the API answers with, each with its HTTP statuses.
  • Transactions carry linked_activity: the crypto wallet or exchange activity a row was recorded from (network, hash, explorer link, amount and fee legs, status), on reads and in the transaction.created and transaction.updated webhooks.
  • Recurring payments can wait for confirmation: a rule’s mode gains confirm, an occurrence’s status gains awaiting_confirmation, and POST /v1/transactions takes recurring_occurrence to record a waiting payment.
  • Transactions have a place: place, place_id and place_source on reads and writes, and the transaction list takes the city, country, online and place_id filters. Places aren’t switched on yet, so these stay empty for now.
  • SDKs 1.0.0-beta.2 for JavaScript and 1.0.0b2 for Python: the change feed through changes.iterate(), every method with its response type, the Python models in degroshi.models, and a retried delete that no longer finds the row counts as done. See SDKs.
  • A 401 says what’s wrong with the key: AUTH_041 (not a whole key), AUTH_042 (no such key), AUTH_043 (expired, details.expired_at) and AUTH_044 (revoked, details.revoked_at). They all used to be AUTH_048, which now covers only the remaining cases. See Errors.
  • The key can also be sent as Authorization: Bearer dg_pat_….
  • New webhook secrets start with dg_whsec_; those starting with whsec_ work as before.
  • Shared accounts in GET /v1/accounts: grant on an account shared with you has people, everyone with access (the owner first, then the rest, with a name, avatar_url and role, never an e-mail), and shared_with on your own account has the person’s user_id and avatar_url once they accept.
  • API keys work only in the spaces you tick and expire after 30, 90 or 365 days. A key made earlier is marked “Legacy key”: it works in all your spaces. See API keys.