Schema Tax

K-1 JSON Schema for Boxes, Codes and Part III

By Schema TaxPublished Updated

A K-1 JSON schema models a Schedule K-1 as three parts: header fields for the entity and the owner, an ownership block with percentages, and a Part III array where each entry holds a box, an optional code and an amount. Coded boxes repeat, and some amounts live on an attached statement, so fixed fields alone cannot hold the form.

What makes a K-1 JSON schema harder than a W-2 schema?

A K-1 JSON schema is harder than a W-2 schema because a Schedule K-1 has boxes that take letter codes, boxes that hold several entries at once, and amounts that only appear on attached pages. A W-2 is mostly one value per box. A K-1 is closer to a list of tagged line items printed inside a grid.

The 2025 Partner's Instructions for Schedule K-1 (Form 1065) say that in box 11, boxes 13 through 15, and boxes 17 through 20, "the partnership will identify each item by entering a code in the column to the left of the dollar amount entry space." Box 11 alone runs from code A to code ZZ. A partner with two kinds of other income gets two rows in box 11, each with its own code, and nothing stops a third.

The second difficulty is that there are two K-1s that share a name. The 2025 Schedule K-1 (Form 1065) has Part III boxes 1 through 23. The 2025 Schedule K-1 (Form 1120-S) has boxes 1 through 19. The numbers do not line up. Box 13 is "Other deductions" on the partnership form and "Credits" on the S corporation form. A schema that keys on box number alone will put a credit into a deduction field.

The third difficulty is volume. A W-2 fits in one object with a short array for Box 12. A K-1 from a large partnership can carry a dozen coded rows plus pages of statements, and a consumer of the JSON needs to know which rows are complete and which point elsewhere.

None of this means a K-1 JSON schema has to be exotic. It means the schema should treat Part III as data rows, not as a fixed list of named properties. The envelope and naming rules shared by every form type are covered in the post on designing a tax form JSON schema, so this post stays on what is specific to the K-1.

Partner and shareholder shares in a K-1 JSON schema

The ownership block of a K-1 JSON schema records how much of the entity the recipient owns, and the two K-1 variants record it differently. A partnership K-1 reports profit, loss and capital percentages at the start and end of the year. An S corporation K-1 reports a single allocation percentage and a share count.

On the 2025 partnership form, item J is labelled "Partner's share of profit, loss, and capital" and has a Beginning and an Ending column for each of the three rows. The partner instructions say the item J amounts "are based on the partnership agreement," and that the ending percentage on the Capital line "is the portion of the capital you would receive if the partnership was liquidated." Three rows times two columns gives six numbers, and they do not have to match each other.

On the 2025 S corporation form, item G is "Current year allocation percentage" and item H is "Shareholder's number of shares" with beginning and ending values. Item D on the same form gives the corporation's total number of shares at the start and end of the year.

K-1 ownership fields by form variant

ConceptForm 1065 K-1Form 1120-S K-1Example field name
Entity EINItem AItem Aentity.ein
Owner identifying numberItem EItem Eowner.tin_last4
Owner typeItems G, I1, I2Item F3owner.entity_type
Profit shareItem J, Profit rowNot on formownership.profit_pct_begin, ownership.profit_pct_end
Loss shareItem J, Loss rowNot on formownership.loss_pct_begin, ownership.loss_pct_end
Capital shareItem J, Capital rowNot on formownership.capital_pct_begin, ownership.capital_pct_end
Allocation percentageNot on formItem Gownership.allocation_pct
Share countNot on formItem Hownership.shares_begin, ownership.shares_end

The field names in that table are examples, not a published standard. What matters is that the schema carries a form_variant value such as "1065" or "1120-S" and lets that value decide which ownership fields are required. Store percentages as decimal strings like "12.500000" so every printed digit survives a round trip. The trade-offs of decimal strings against floats are covered in the post on decimal vs float for money in JSON.

Modeling Part III line items and codes in a K-1 JSON schema

Part III in a K-1 JSON schema works best as an array of line items, where each item holds a box, an optional code, an amount and a flag for an attached statement. Uncoded boxes such as box 1 use a null code. Coded boxes repeat freely, so a partner with three box 20 codes gets three rows.

The example below is fictional. The partnership, partner and amounts are made up, and the masked identifier XXX-XX-1234 stands in for a real one. It shows a 2025 partnership K-1 with three coded entries: a cash contribution in box 13, self-employment earnings in box 14, and section 199A information in box 20 that lives on a statement. It is an example payload for your own design, not a documented Schema Tax API response; Schema Tax publishes no public API documentation. The code names come from the List of Codes in the 2025 partner instructions: box 13 code A is "Cash contributions (60%)," box 14 code A is "Net earnings (loss) from self-employment," and box 20 code Z is "Section 199A information."

{
  "form_type": "K-1",
  "form_variant": "1065",
  "tax_year": 2025,
  "entity": { "ein": "12-3456789", "name": "Example Harbor Partners LP" },
  "owner": { "tin_last4": "1234", "name": "Riley Example", "entity_type": "Individual" },
  "ownership": {
    "profit_pct_begin": "10.000000", "profit_pct_end": "12.500000",
    "loss_pct_begin": "10.000000", "loss_pct_end": "12.500000",
    "capital_pct_begin": "10.000000", "capital_pct_end": "12.500000"
  },
  "part_iii": [
    { "box": "1", "code": null, "amount": "48210.00", "statement": false },
    { "box": "13", "code": "A", "amount": "1200.00", "statement": false },
    { "box": "14", "code": "A", "amount": "48210.00", "statement": false },
    { "box": "20", "code": "Z", "amount": null, "statement": true, "statement_ref": "stmt-1" }
  ],
  "statements": [
    { "id": "stmt-1", "box": "20", "code": "Z", "pages": [3, 4] }
  ]
}

The matching JSON Schema fragment for one Part III line item is below. It is a sketch for your own schema, not a published Schema Tax definition.

{
  "$id": "k1-part-iii-item",
  "type": "object",
  "required": ["box", "code", "amount", "statement"],
  "properties": {
    "box": { "type": "string", "pattern": "^[0-9]{1,2}[a-c]?$" },
    "code": { "type": ["string", "null"], "pattern": "^[A-Z]{1,2}$" },
    "amount": { "type": ["string", "null"], "pattern": "^-?[0-9]+\\.[0-9]{2}$" },
    "statement": { "type": "boolean" },
    "statement_ref": { "type": "string" }
  },
  "additionalProperties": false
}

Box is a string, not a number, because the 1065 form has boxes such as 4a, 6b and 9c. Amount is a signed decimal string because several boxes are labelled "(loss)". Preparers do not all print a loss the same way, so normalise whatever convention appears to a leading minus sign at extraction time and downstream code sees one form.

Keeping the code as its own property, rather than building names like box20_code_z, means a new code added in a later year does not change the shape of the object. It only changes the list of allowed values, which the validation step checks. What each box and code means for the partner's return is a separate subject, covered in the Form 1040 and K-1 category.

How should a K-1 JSON schema store "see attached statement" entries?

A K-1 JSON schema should store a "see attached statement" entry as a normal line item with a null or partial amount, a true statement flag, and a reference to a statement record that points at the pages. That keeps the row visible to downstream code while saying plainly that the full value is elsewhere.

Both K-1 variants print the same footnote under Part III: "See attached statement for additional information." The 2025 partner instructions describe two markers. The partnership "will enter an asterisk (*) after the code, if any," when it attaches a statement with more detail. For items that "can't be reported as a single dollar amount," it enters an asterisk and "STMT" in the dollar amount space. The 2025 Shareholder's Instructions for Schedule K-1 (Form 1120-S) use the same "STMT" wording for S corporations.

That gives three cases the schema has to tell apart:

  1. Amount only. A code and a dollar figure, with no asterisk. Store the amount and set statement to false.
  2. Amount plus statement. A code, an asterisk and a dollar figure. Store the amount and set statement to true, because the statement may split it into parts.
  3. Statement only. A code, an asterisk and "STMT" instead of a figure. Set amount to null and statement to true.

The third case is where import code breaks most often. A null amount that a consumer reads as zero turns a reported item into a missing one. Make the null explicit in the schema, and make any summing code skip statement-only rows instead of treating them as zero.

Statement pages vary by preparer. Some list one table per code; others run several pages of narrative. Storing page numbers and a reference lets a reviewer open the right page, and lets a later version of the extractor fill in structured statement data without changing the Part III row. If the statement for box 20 code Z in the example lists several figures per activity, each figure can become a child record of stmt-1 while the Part III row stays as it is.

Validating K-1 JSON schema payloads before import

Validating a K-1 JSON schema payload means two passes before import: a structural check that every field has the right type and pattern, and a domain check that every box and code pair is allowed for that form variant and tax year. The structural pass is generic JSON Schema work. The domain pass needs a code list.

The structural pass catches shape problems: a box written as a number, an amount with three decimals, a missing statement flag. The type, pattern and required lists in the fragment above are written to reject each of those. It cannot tell you that box 13 code A is valid on a partnership K-1 and meaningless on an S corporation K-1, because box 13 is Credits on the 1120-S form.

The domain pass uses a table keyed by form variant, tax year and box, listing the allowed codes. Build it from the List of Codes at the end of each year's instructions. Then run checks like these:

  • Code allowed. The code exists for this box, variant and year. Box 20 code Z on a 2025 partnership K-1 passes.
  • Code required. A row in a coded box has a code. A box 20 row with a null code fails.
  • Code forbidden. A row in an uncoded box such as box 1 has no code.
  • Statement consistency. A row with a null amount has statement set to true, and its statement_ref matches a record in statements.
  • Variant fields. A 1065 payload carries item J percentages; a 1120-S payload carries item G and item H.
  • Percent range. Every ownership percentage sits between 0 and 100.

The tax year matters because code lists change. The 2025 partner instructions note in What's New that the partnership now separately codes different categories of distributions in box 19. A code table pinned to an earlier year would reject a valid 2025 row. Version the code table by year, and pick the table from the payload's tax_year. The post on versioning a tax form JSON schema when the IRS revises a form covers how to keep old and new shapes side by side.

Failing validation should route a payload to review, not drop it. A code the table does not know may be a new code from the IRS, a preparer's typo, or a misread character. Schema Tax reads K-1 partner and shareholder shares and Part III line items with their codes, and marks any value it is unsure of for a person to confirm on an editable view of the form before it reaches JSON.

A validated K-1 rarely travels alone. The same pipeline usually handles 1099s and the filed return, so keep the envelope fields identical across form types and let one consumer route a K-1, a 1099-B and a 1040 with the same code. For the return side, the post on what a tax return parsing API reads from Form 1040 lines shows how line numbers move between years, which is the same versioning problem the K-1 code table has. If you are deciding whether your project needs to read K-1s or to file returns that use them, the comparison of a tax filing API vs an extraction API sets out what each kind of service does.

All posts in Tax Form APIs for Developers