# Test the Tax Form Corrections API in a sandbox

Create and retrieve corrections for filed 1099 tax forms in a sandbox.

Use the Tax Form Corrections API to create and retrieve corrections for your connected accounts’ 1099-K, 1099-MISC, and 1099-NEC forms that you’ve filed in a sandbox. To file a correction, review, attest to, and submit the correction form in the Stripe Dashboard.

> To request access to the Tax Form Corrections API, [contact Stripe support](https://support.stripe.com/).

## What you can test 

In a sandbox, you can:

- Check authentication, API versioning, and request validation.
- Retrieve eligible tax forms.
- Create numerical and payee corrections.
- Test how your integration handles errors for ineligible, invalid, and already-corrected forms.
- Retrieve correction forms and review them in the Dashboard.

## Before you begin

Before testing, set up the following:

- A [sandbox](https://docs.stripe.com/sandboxes.md) for your Connect platform, with at least one connected account for which you’re responsible for tax reporting.
- Tax Forms API read access and Tax Form Corrections API access. Contact Stripe to enable these for your sandbox.
- Access to **Tax reporting** in the sandbox Dashboard. If you can’t access it, contact your Stripe account team.
- A sandbox API key, stored in the `STRIPE_TEST_KEY` environment variable. Use a restricted API key with tax form read and write access where available. Follow the [best practices for managing secret keys](https://docs.stripe.com/keys-best-practices.md). Don’t embed keys in scripts or share them in messages.

Use this `Stripe-Version` header for every request in this guide:

```text
Stripe-Version: 2026-10-28.preview; retrieve_tax_forms_beta=v1
```

## Get an eligible accepted form 

If you don’t have a filed form in your sandbox:

1. Use a [CSV import](https://docs.stripe.com/connect/modify-tax-forms.md?method=csv) to create a draft form for a connected account in your sandbox.
2. [File the form in the sandbox](https://docs.stripe.com/connect/test-tax-reporting.md#file-tax-forms-in-a-sandbox) from the Dashboard.
3. Wait for the **Federal filing status** to become `Accepted`. If the filing times out and the form shows `Rejected` with no rejection reason, refile the form.

Choose a form with all of these properties:

- It belongs to your sandbox (`livemode=false`).
- Its type is `us_1099_k`, `us_1099_misc`, or `us_1099_nec`.
- It’s finalized and filed, with a federal filing status of `Accepted` or `Accepted with errors`.
- It has no pending state filing. A state rejection doesn’t prevent a correction when the IRS accepts the federal filing.
- It has no existing correction referenced by `corrected_by`.

Sandbox forms use the same filing-eligibility checks as live-mode forms. You can’t use a sandbox key to correct a live-mode form.

## List and retrieve the original form 

Set `CONNECTED_ACCOUNT_ID` to your sandbox connected account’s ID, then [list its tax forms](https://docs.stripe.com/api/tax_reporting/forms/list.md?api-version=2026-10-28.preview).

```sh
curl -G "https://api.stripe.com/v1/tax/forms" \
  -u "${STRIPE_TEST_KEY}:" \
  -H "Stripe-Version: 2026-10-28.preview; retrieve_tax_forms_beta=v1" \
  --data-urlencode "payee[type]=account" \
  --data-urlencode "payee[account]=${CONNECTED_ACCOUNT_ID}"
```

Choose an eligible form. Set `TAX_FORM_ID` to its public ID from `data[].id`, then retrieve it before correcting it.

```sh
curl "https://api.stripe.com/v1/tax/forms/${TAX_FORM_ID}" \
  -u "${STRIPE_TEST_KEY}:" \
  -H "Stripe-Version: 2026-10-28.preview; retrieve_tax_forms_beta=v1"
```

Record the original values. Correction requests use replacement values. If you omit a parameter, the correction keeps the original value for that field.

## Test a numerical correction 

For a 1099-K, [create a correction](https://docs.stripe.com/api/tax_reporting/forms/create_correction.md?api-version=2026-10-28.preview) that replaces the payment transaction count. Choose a value that differs from the original count.

```sh
curl --request POST \
  "https://api.stripe.com/v1/tax/forms/${TAX_FORM_ID}/corrections" \
  -u "${STRIPE_TEST_KEY}:" \
  -H "Stripe-Version: 2026-10-28.preview; retrieve_tax_forms_beta=v1" \
  --data-urlencode "us_1099_k[payment_transactions_count][count]=250"
```

For other form types, supply only the matching numerical parameter group: `us_1099_misc` or `us_1099_nec`. For example, replace `us_1099_misc[rents][volume_decimal]` or `us_1099_nec[nonemployee_compensation][volume_decimal]`.

A numerical correction creates one `totals_changed` form. The response identifies the original and correction forms by their public IDs. In this example, `$TAX_FORM_ID` and `$CORRECTION_FORM_ID` are placeholders for the IDs the API returns:

```json
{
  "object": "tax.form_correction",
  "original_form": "$TAX_FORM_ID",
  "correction_forms": [
    {
      "form": "$CORRECTION_FORM_ID",
      "correction_type": "totals_changed"
    }
  ]
}
```

### Monetary values 

Send amounts as non-negative decimal strings in US dollars. For example, send `"11.20"` for 11.20 USD. Use at most two decimal places. Don’t include signs, commas, currency symbols, or exponent notation. Stripe rejects malformed amounts and values that require rounding to cents.

Transaction counts use non-negative integers in `count`. Explicit zeros replace the original values.

### Monthly 1099-K volumes 

To replace `us_1099_k[monthly_volumes]`, supply exactly 12 amount objects in January-to-December order. Each object must contain `volume_decimal`. Use consecutive array indexes from `0` through `11`, not sparse indexes.

To replace `us_1099_k[monthly_volumes]`, provide all 12 months in order from January to December. Use indexes `0` through `11` and include `volume_decimal` for each month. To keep all existing monthly values, omit `monthly_volumes` entirely. The card-not-present transaction amount must not exceed the sum of the monthly volumes.

## Test a payee correction 

Use a different eligible original form from the numerical test. Set `TAX_FORM_ID` to that form’s public ID. Replace the first payee name line with a value that differs from the original.

```sh
curl --request POST \
  "https://api.stripe.com/v1/tax/forms/${TAX_FORM_ID}/corrections" \
  -u "${STRIPE_TEST_KEY}:" \
  -H "Stripe-Version: 2026-10-28.preview; retrieve_tax_forms_beta=v1" \
  --data-urlencode "payee_details[name_line_1]=Kavholm"
```

Don’t combine `payee_details` with a numerical parameter group in the same request.

For a name, address, or taxpayer identification number (TIN) change, the response contains two entries in `correction_forms`:

- `totals_changed`: A form with the original payee details and zero totals.
- `payee_changed`: A form with the corrected payee details and the original totals.

The API doesn’t guarantee the order of `correction_forms`. Use `correction_type` to identify each form.

Changing only `treasury_tipped_occupation_code` creates one form with `correction_type` set to `payee_changed`.

## Retrieve and review the correction forms 

For each entry in `correction_forms`, set `CORRECTION_FORM_ID` to its `form` value and retrieve it.

```sh
curl "https://api.stripe.com/v1/tax/forms/${CORRECTION_FORM_ID}" \
  -u "${STRIPE_TEST_KEY}:" \
  -H "Stripe-Version: 2026-10-28.preview; retrieve_tax_forms_beta=v1"
```

Verify that:

- Each returned ID starts with `taxform_` and you can retrieve it with the same sandbox key.
- The numerical correction contains your replacement values and preserves omitted values.
- The payee correction forms contain the payee details and totals described in [Test a payee correction](https://docs.stripe.com/connect/test-tax-form-corrections.md#test-a-payee-correction).
- The correction forms appear in **Tax reporting** in the sandbox Dashboard and are still unfiled.
- Retrieve each original form you corrected and check `corrected_by`. For a two-form payee correction, `corrected_by` points only to the first form in the correction chain.

After reviewing the results, you can [file the correction in the Dashboard](https://docs.stripe.com/connect/correct-tax-forms.md#file-a-correction). For sandbox filing behavior and limitations, see [File tax forms in a sandbox](https://docs.stripe.com/connect/test-tax-reporting.md#file-tax-forms-in-a-sandbox).

## Handle errors 

Use separate forms to test eligibility failures, and inspect the response’s `error.code` and `error.param` when present.

| Error code | What to check |
| --- | --- |
| `tax_form_awaiting_acceptance` | Wait for the federal filing or a pending state filing to finish before creating a correction. |
| `tax_form_rejected` | The IRS rejected the original form. Don’t correct it through this API. For a sandbox timeout without a rejection reason, follow the [setup instructions](https://docs.stripe.com/connect/test-tax-form-corrections.md#get-an-eligible-accepted-form). |
| `tax_form_correction_unsupported` | The target isn’t filed, or the requested change isn’t supported. Corrections must change payee details or numerical values. |
| `tax_form_already_corrected` | The target already has a correction. Use a different eligible original form for an independent test. |
| `tax_form_mixed_correction_unsupported` | Don’t combine payee and numerical changes in one request. |
| `tax_form_correction_not_needed` | An empty correction group or unchanged values don’t create a correction. Supply a change to payee details or numerical values. |
| `parameter_missing` | Supply a correction group with a substantive change. A missing group or an auxiliary-only change, such as `second_tin_notice` alone, isn’t enough. |
| `parameter_invalid` | Check `error.param` for an invalid value, a parameter unsupported for the form type or tax year, or multiple numerical groups. Check decimal formatting and the length of `monthly_volumes`. |

A nonexistent, inaccessible, wrong-mode, draft, or unsupported form can return HTTP `404` instead of a correction-specific error. Confirm the form ID, sandbox key, preview access, and API version before retrying.
