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

# The Tax Documents object

> Learn more about the reference information for Tax Documents.

# Attributes

The table below has the values for Tax Document fields.

| Attribute         | Type         | Description                                                                                                             |
| :---------------- | :----------- | :---------------------------------------------------------------------------------------------------------------------- |
| id                | string       | Unique identifier                                                                                                       |
| document\_type    | string       | Type of document. One of: W2, F1099, F1040                                                                              |
| document\_subtype | string, null | Subtype of document (nullable). One of: F1099\_DIV, F1099\_G, F1099\_INT, F1099\_MISC, F1099\_NEC, F1099\_R, F\_SSA1099 |
| file              | uri          | Link to tax document file, format is specified in the content-type (up to 2048 characters long)                         |
| md5sum            | string       | MD5 hash value computed based on file content                                                                           |
| year              | integer      | Tax document year                                                                                                       |
| fields            | object       | Additional metadata for a specific document type                                                                        |

# Endpoint

The link below is the reference for the available Tax Document endpoint.

* [List all tax documents](/api-reference/tax/tax-documents)
* [Retrieve a tax document](/api-reference/tax/tax-document)

# Example responses

The sample below is a JSON response for the endpoint. The sections below have different document type examples.

```json theme={null}
[
  {
    "id": "string",
    "document_type": "W2",
    "document_subtype": null,
    "file": "string",
    "md5sum": "string",
    "year": 2024,
    "fields": {...} // see below by form type
  }
]
```

## W2

This payload response is an example of a W-2 form.

```json theme={null}
{
  "federal_tax": "4102.75",
  "medicare_tax": "816.43",
  "medicare_wages": "58805.40",
  "social_security_tax": "3490.93",
  "social_security_wages": "58805.40",
  "wages": "56269.25"
}
```

***

## 1099

For all 1099 forms the year of the document along with user's information is provided.

***

## 1040

The 1040 tax document sample below is the example JSON payload.

```json theme={null}
{
  "total_income": "1000.00"
}
```
