> ## Documentation Index
> Fetch the complete documentation index at: https://www.finta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tax onboarding

> Answer a tax year's onboarding questions, see the price, and pay so Finta prepares and files the return

Before Finta prepares a company's income tax return, someone answers its tax onboarding questions and pays for the filing. These three endpoints let you do that through the API, the same way the Finta app's tax onboarding pages do:

| Endpoint | What it does |
| - | - |
| [`GET /tax_filing_progress`](https://www.finta.com/docs/api-reference/taxes/retrieve-tax-filing-progress) | Where one tax year's filing stands, from onboarding to filed, and the one thing that has to happen next. |
| [`PATCH /tax_onboarding`](https://www.finta.com/docs/api-reference/taxes/update-tax-onboarding) | Saves answers for one onboarding group and returns the same object as `GET /tax_filing_progress`. |
| [`POST /tax_checkout`](https://www.finta.com/docs/api-reference/taxes/create-tax-checkout) | Makes the Stripe payment link for a year whose onboarding is done. |

All three require **API access: Manage** and **Taxes: Manage** for the key owner. Every save goes through the same checks as the Finta app, so an answer saved through the API shows on the app's onboarding pages, and an answer saved in the app shows in the API.

`tax_year` defaults to last year, the year being filed now. To record a return the company already filed somewhere else instead, see [Tax uploads](https://www.finta.com/docs/api-reference/tax-uploads.md).

## The loop

1. Call `GET /tax_filing_progress` and read `next_step`.
2. If `next_step.kind` is `answer`, send the answers for `next_step.group` with `PATCH /tax_onboarding`. Its response is the new progress, with the next step.
3. Repeat until `next_step.kind` is `pay`, then call `POST /tax_checkout` and give the person its `url`.
4. After payment, `next_step` says what Finta is doing and when the person has something to do, such as signing the draft return.

## Stages

`filings` lists the `income` and `delaware` filings, each with a `stage`:

| Stage | Meaning |
| - | - |
| `not_started` | Nothing is saved for the year yet. For Delaware, also a year whose income return was uploaded from elsewhere. |
| `onboarding` | Tax onboarding is in progress. |
| `payment` | Every onboarding group is done and the year isn't paid. |
| `preparing` | Paid; Finta is preparing the return. |
| `review` | There's something for the person to sign or pay. |
| `filing` | Finta is filing it. |
| `filed` | Filed. |

Each filing also has `due_date` (Delaware March 1, income April 15, or October 15 with an extension, as in [`GET /taxes`](https://www.finta.com/docs/api-reference/taxes/list-taxes); absent once filed) and `overdue`. A filing has its own `next_step` when the person has to act on it and it isn't the top-level `next_step`, and a `message` naming the [upload](https://www.finta.com/docs/api-reference/tax-uploads.md) that records it as filed outside Finta, when that upload is allowed. Finta files the Delaware franchise tax only in a year it also files the income return, starting right after payment.

## The next step

`next_step.kind` is one of:

| Kind | Meaning |
| - | - |
| `answer` | Answer the current group (`group`) with `PATCH /tax_onboarding`. See [Questions](#questions). |
| `open_link` | Something the person does in the Finta app at `url`: a group the API can't answer yet, or `required_actions` such as `sign_return` (sign the draft income return) and `provide_ach_details` (enter the bank account Finta pays the Delaware franchise tax from). An income step at review carries `draft` with the return's `total_tax_cents` and `rd_tax_credits_cents`; the PDF is viewed and signed at `url`. A Delaware step carries `amount_due_cents`. |
| `pay` | `POST /tax_checkout` makes the payment link. `price_cents` is before discounts; `discounted_price_cents` is what checkout charges with a saved coupon code. |
| `wait` | Finta, or something outside onboarding such as an import, comes first. `message` says what, and how long Finta usually takes. |
| `done` | Filed. `filed_at` is when the income return was filed. When it was filed outside Finta and the Delaware franchise tax isn't recorded, `message` says so. |

## Groups

Onboarding is split into six groups, answered in this order:

| Group | What it covers |
| - | - |
| `data_sources` | What the company incorporated with, and where its cap table is kept. Stripe, Clerky, Carta and Pulley only count once connected to Finta. |
| `company` | Legal name, incorporation date, phone, EIN, legal and business addresses, and who filed last year's return. |
| `cap_table` | Shares and shareholders owning 20% or more. Answered in the Finta app for now. |
| `subsidiaries` | The company outside the US the company owns, if any. |
| `payroll` | Payroll software, who enters the year's employees, and states with salaried employees. |
| `review` | Audit protection, the R\&D credit, and a coupon code. Shows the price. |

`groups` lists each with its `status`:

| Status | Meaning |
| - | - |
| `done` | Saved. It can still change with `PATCH /tax_onboarding` until the year is paid. |
| `current` | The one group that takes new answers now. |
| `blocked` | The groups in `blocked_by` come first. Groups are answered one at a time, in order. |
| `waiting` | Needs something outside onboarding first, such as an import or uncategorized transactions; `reason` says what. |

A group not done yet that's only answered in the Finta app has `web_only: true`. `groups` is empty once the year is paid, or when its income return was filed outside Finta. Pass `?group=<key>` to add `group_answers`, that group's saved and drafted answers.

## Questions

Don't hardcode the questions. When `next_step.kind` is `answer`, the step says exactly what to send:

* `missing`: questions still unanswered, each with `key`, `description`, and `schema`, the JSON Schema its answer must match.
* `prefilled`: answers Finta already has, keyed by question.
* `optional`: questions that may be left unanswered, such as a coupon code.
* `follow_ups`: questions asked only after another answer, with `asked_when`. Send them in the same request as that answer.
* `locked`: answers that can't change, with the reason.
* `summary`: for `review`, the price. See [Price](#price).

```json theme={null}
{
  "object": "tax_filing_progress",
  "tax_year": 2025,
  "next_step": {
    "kind": "answer",
    "group": "subsidiaries",
    "prefilled": {},
    "missing": [
      {
        "key": "subsidiary",
        "description": "The company outside the US that the company owns, or null for none.",
        "schema": {
          "type": ["object", "null"],
          "properties": {
            "country": { "type": "string", "enum": ["canada", "united_kingdom", "india"] },
            "legal_name": { "type": "string" }
          },
          "required": ["country", "legal_name"],
          "additionalProperties": false
        }
      }
    ]
  },
  "groups": [
    { "key": "data_sources", "status": "done" },
    { "key": "company", "status": "done" },
    { "key": "cap_table", "status": "done" },
    { "key": "subsidiaries", "status": "current" },
    { "key": "payroll", "status": "blocked", "blocked_by": ["subsidiaries"] },
    { "key": "review", "status": "blocked", "blocked_by": ["subsidiaries", "payroll"] }
  ],
  "filings": [
    { "type": "income", "stage": "onboarding" },
    { "type": "delaware", "stage": "onboarding" }
  ]
}
```

### Null is an answer

Where a question's schema allows null, null is an answer, not a missing value, and the description says what it means. `subsidiary: null` means the company owns no company outside the US. `business_address: null` means the company operates at its legal address. Each is one answer, not a yes/no question followed by the details. Null for a question that doesn't allow it is refused with [`answers_invalid`](https://www.finta.com/docs/api-reference/errors#answers_invalid).

## Saving answers

```http theme={null}
PATCH /api/v1/tax_onboarding HTTP/1.1
Host: app.finta.com
Authorization: Bearer finta_your_key_here
Content-Type: application/json

{
  "tax_year": 2025,
  "group": "subsidiaries",
  "answers": {
    "subsidiary": { "country": "canada", "legal_name": "Acme Canada Ltd." }
  }
}
```

The response is the same object as `GET /tax_filing_progress`, with the next step.

* **Only the answers sent change.** Answers left out keep their saved values.
* **Drafts, then the app's checks.** While any question in the group is still missing, the answers are kept as a draft. Once none is, the group is saved through the same checks as the Finta app and becomes `done`. A group whose `missing` is already empty is saved by sending it with `answers: {}`.
* **All or nothing.** An answer that fails a check saves nothing from the request: [`400 answers_invalid`](https://www.finta.com/docs/api-reference/errors#answers_invalid), with a message per answer in `errors`.
* **Some answers act right away**, as the matching click does in the app: payroll choices (choosing `automated` tells Finta's team) and the review group's coupon code (checked and saved even before the other review answers; `""` removes it).
* **One group at a time.** Only the current group, done groups and payroll waiting on Finta's team take answers. Any other group returns [`409 not_current`](https://www.finta.com/docs/api-reference/errors#not_current).
* **Changing a done group** re-checks every later group that depends on it. One that no longer passes goes back to not done, and `current` moves back to it.
* **Starting.** The first save for a year starts that year's tax onboarding, which the Taxes page then shows.
* **Automated payroll entry.** With `payroll_data_entry_method: automated`, the payroll group is `waiting` while Finta's team enters the employees from the payroll software, usually within a few days. Finta emails when it's done. Its answers can still change while it waits, as on the web.
* **After payment**, every request returns [`409 already_paid`](https://www.finta.com/docs/api-reference/errors#already_paid).

## Price

When the current group is `review`, `next_step.summary` has the price in cents:

| Field | Meaning |
| - | - |
| `price_cents` | The price before discounts. |
| `audit_protection_price_cents` | What audit protection adds. |
| `rd_tax_credit_estimate_cents`, `rd_tax_credit_fee_cents` | The R\&D credit estimate and Finta's fee, when the company qualifies. |
| `discounted_price_cents` | With a discount, what checkout charges. |
| `discount` | The discount's `code` and `description`: the YC deal first, then the saved coupon code, as checkout applies it. |
| `discount_error` | Why the saved coupon code doesn't apply. |
| `breakdown` | The Finta app's price rows: `item`, `count`, `price_cents`, `discounted_price_cents`, `amount_cents` (the discount row, negative), `included` (at no extra price, such as the Delaware filing) and `note`. |

The review group's first save works out the R\&D credit estimate the price depends on, as opening the Review page in the app does.

## Checkout

Once every group is done (`stage` is `payment`), make the payment link:

```http theme={null}
POST /api/v1/tax_checkout HTTP/1.1
Host: app.finta.com
Authorization: Bearer finta_your_key_here
Content-Type: application/json

{ "tax_year": 2025 }

HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "tax_checkout",
  "tax_year": 2025,
  "url": "https://checkout.stripe.com/c/pay/cs_live_a1b2c3",
  "paid": false,
  "price_cents": 145000
}
```

This is the same Stripe checkout as **Continue to payment** in the app. `discounted_price_cents` is added when a discount applies. Each call makes a new link and ends the earlier unpaid one. When nothing is owed, or an earlier link turns out to be paid, the year is marked paid: `paid` is `true` and `url` is `null`. The same call starts the filing, as paying does. If that fails, the response is [`502 checkout_failed`](https://www.finta.com/docs/api-reference/errors#checkout_failed); call `POST /tax_checkout` again, which finishes it and then returns `409 already_paid`.

## Which years

Reads of a year already filed return its `filed` stage. Writes refuse a year that can't be onboarded:

| Code | When |
| - | - |
| [`tax_year_not_over`](https://www.finta.com/docs/api-reference/errors#tax_year_not_over) | The year isn't over yet. |
| [`past_tax_year`](https://www.finta.com/docs/api-reference/errors#past_tax_year) | An older year that only supports [uploading a return filed elsewhere](https://www.finta.com/docs/api-reference/tax-uploads.md). |
| [`previous_year_unfiled`](https://www.finta.com/docs/api-reference/errors#previous_year_unfiled) | An earlier year has to be filed or uploaded first; `required_tax_year` names it. |
| [`already_filed`](https://www.finta.com/docs/api-reference/errors#already_filed) | The year is filed. |
| [`already_paid`](https://www.finta.com/docs/api-reference/errors#already_paid) | The year is paid. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.