# Wave — Accounting API: gotchas

> Canonical URL: https://developers.apideck.com/apis/accounting/wave/gotchas

## PATCH /accounting/ledger-accounts/{id}

Updates need `row_version` from a prior read of the account: Wave requires it (its `sequence`) and rejects an update without it with a `400` (`Field "sequence" of required type "Int!" was not provided`).

## GET /accounting/payments

Wave has no list of payments, only each invoice's payments, so every request reads the invoices that have a payment and pages over their payments. A request that would read more than 10,000 paid invoices fails with a 400 asking for `filter[updated_since]`, and a failed invoice page fails the request (502, or Wave's 4xx/429) rather than returning a partial list. `meta.total_count` will not appear. `filter[updated_since]` matches a payment's own modification time. Only invoice payments are listed.

## GET /accounting/balance-sheet

Wave only exposes balances as of today, so the report is always as of today (`end_date` is today's date), and `filter[end_date]` or any other filter is rejected with a `400` (Unsupported Filters). Wave does not close income and expenses into an equity account, so their difference is added to equity as a computed net income line, keeping assets equal to liabilities plus equity. Archived accounts are left out.

## GET /accounting/profit-and-loss

Wave exposes no period-bounded balances, so the report covers the business's lifetime up to today: `start_date` is `null`, `end_date` is today, and `filter[start_date]`, `filter[end_date]` and any other filter are rejected with a `400` (Unsupported Filters). Amounts are the accounts' current balances in the business currency, grouped by Wave account type and subtype. Archived accounts are left out.

## POST /accounting/expenses

Creates a Wave money transaction through Wave's `moneyTransactionCreate`, which Wave marks as **beta** and only allows on businesses that are not on classic accounting. The connection needs the `transaction:write` scope; connections authorized before it was added must re-authorize. Wave cannot read, update or delete these transactions through its API, so only create is supported and the response carries only the new `id`.

`account` is the bank or credit card account the money leaves (or returns to, for `type: refund`), and each line's `account` is the expense account. Wave requires the payment amount to equal the sum of the lines, so the connector computes it from `line_items` and ignores `total_amount`. A line amount includes its tax: send `tax_rate.id` with `tax_amount`, and the line's `total_amount` tax-inclusive (or set `tax_inclusive: false` to have `tax_amount` added). A line tax without `tax_amount` is not sent. With a non-recoverable sales tax, Wave books the whole line, tax included, to the expense account. Recoverable and non-recoverable sales taxes are both accepted. Wave sets up a new sales tax's account a few seconds after the tax is created; until then a line using that tax is rejected with `Account was not found` (400), and the same request succeeds when retried a few seconds later.

`reference` becomes Wave's `externalId`, which Wave keeps unique: resending the same `reference` is rejected with `400` (`A transaction with the same externalId already exists`) instead of creating a duplicate. Without a `reference`, a random id is used, so a retry creates a second transaction.


[API reference](https://developers.apideck.com/apis/accounting/reference.md) · [Coverage matrix](https://developers.apideck.com/apis/accounting/coverage)
