# Tax Documents

Endpoints for creating, completing, and retrieving partner tax documents.

## Retrieve the latest tax document

> Returns the most recently saved tax document for the partner account.

```json
{"openapi":"3.1.0","info":{"title":"Partner Tax Documents API","version":"15"},"tags":[{"name":"Tax Documents","description":"Endpoints for creating, completing, and retrieving partner tax documents."}],"servers":[{"url":"https://api.impact.com","description":"Production server"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}},"schemas":{"TaxDocument":{"type":"object","properties":{"Id":{"type":"string","description":"Unique identifier of the tax document."},"UserId":{"type":"string","description":"ID of the account user the document belongs to."},"Email":{"type":"string","description":"Email address of the user the document belongs to."},"Status":{"type":"string","enum":["NEW","NOT_VERIFIED","ACTIVE","INACTIVE"],"description":"Current status of the tax document."},"EnvelopeId":{"type":"string","description":"Unique identifier of the DocuSign envelope (DocuSign provider only)."},"Type":{"type":"string","nullable":true,"enum":["W9","W8BEN","W8BENE"],"description":"The IRS tax form type. Empty until the user selects a form in the iframe."},"SubmitDate":{"type":"string","format":"date-time","description":"Date and time the tax document was submitted (ISO 8601)."},"UpdateDate":{"type":"string","format":"date-time","description":"Date and time the tax document was last updated (ISO 8601)."},"Provider":{"type":"string","enum":["DOCUSIGN","COMPLY_EXCHANGE"],"description":"The provider that collected the tax document."},"Uri":{"type":"string","description":"API resource path for this tax document."}}}}},"paths":{"/Mediapartners/{AccountSID}/TaxDocument":{"get":{"summary":"Retrieve the latest tax document","description":"Returns the most recently saved tax document for the partner account.","operationId":"retrieveLatestTaxDocument","tags":["Tax Documents"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxDocument"}}}}}}}}}
```

## Create a tax document

> Initiates a new tax document submission. Returns an iframe URL the partner opens to fill in and sign the form. All parameters except \`Provider\` apply to DocuSign only.<br>

```json
{"openapi":"3.1.0","info":{"title":"Partner Tax Documents API","version":"15"},"tags":[{"name":"Tax Documents","description":"Endpoints for creating, completing, and retrieving partner tax documents."}],"servers":[{"url":"https://api.impact.com","description":"Production server"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}}},"paths":{"/Mediapartners/{AccountSID}/TaxDocument":{"post":{"summary":"Create a tax document","description":"Initiates a new tax document submission. Returns an iframe URL the partner opens to fill in and sign the form. All parameters except `Provider` apply to DocuSign only.\n","operationId":"createTaxDocument","tags":["Tax Documents"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"DocType":{"type":"string","enum":["W9","W8BEN","W8BENE"],"description":"The IRS tax form type to collect."},"Id":{"type":"string","description":"The ID of the account user. Defaults to the first user on the account when omitted."},"ReturnUrl":{"type":"string","description":"Absolute URL DocuSign uses as the callback after signing."},"Provider":{"type":"string","enum":["COMPLY_EXCHANGE","DOCUSIGN"],"description":"Required when collecting via Comply Exchange. Defaults to DOCUSIGN."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"string","description":"Outcome status returned by the provider."},"Uri":{"type":"string","description":"API resource path for this tax document."},"Email":{"type":"string","description":"Email address of the user the document was created for."},"Id":{"type":"string","description":"Unique identifier for the newly created tax document."},"UserId":{"type":"string","description":"ID of the account user the document was created for."},"Url":{"type":"string","description":"Iframe URL the partner opens to sign the tax document."}}}}}}}}}}}
```

## Retrieve a specific tax document

> Returns a specific tax document by its unique Id.

```json
{"openapi":"3.1.0","info":{"title":"Partner Tax Documents API","version":"15"},"tags":[{"name":"Tax Documents","description":"Endpoints for creating, completing, and retrieving partner tax documents."}],"servers":[{"url":"https://api.impact.com","description":"Production server"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}},"schemas":{"TaxDocument":{"type":"object","properties":{"Id":{"type":"string","description":"Unique identifier of the tax document."},"UserId":{"type":"string","description":"ID of the account user the document belongs to."},"Email":{"type":"string","description":"Email address of the user the document belongs to."},"Status":{"type":"string","enum":["NEW","NOT_VERIFIED","ACTIVE","INACTIVE"],"description":"Current status of the tax document."},"EnvelopeId":{"type":"string","description":"Unique identifier of the DocuSign envelope (DocuSign provider only)."},"Type":{"type":"string","nullable":true,"enum":["W9","W8BEN","W8BENE"],"description":"The IRS tax form type. Empty until the user selects a form in the iframe."},"SubmitDate":{"type":"string","format":"date-time","description":"Date and time the tax document was submitted (ISO 8601)."},"UpdateDate":{"type":"string","format":"date-time","description":"Date and time the tax document was last updated (ISO 8601)."},"Provider":{"type":"string","enum":["DOCUSIGN","COMPLY_EXCHANGE"],"description":"The provider that collected the tax document."},"Uri":{"type":"string","description":"API resource path for this tax document."}}}}},"paths":{"/Mediapartners/{AccountSID}/TaxDocument/{Id}":{"get":{"summary":"Retrieve a specific tax document","description":"Returns a specific tax document by its unique Id.","operationId":"retrieveTaxDocumentById","tags":["Tax Documents"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."},{"name":"Id","in":"path","required":true,"description":"Unique identifier of the tax document.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxDocument"}}}},"404":{"description":"No tax document exists with the supplied Id."}}}}}}
```

## List all tax documents

> Returns every tax document submitted for the partner account.

```json
{"openapi":"3.1.0","info":{"title":"Partner Tax Documents API","version":"15"},"tags":[{"name":"Tax Documents","description":"Endpoints for creating, completing, and retrieving partner tax documents."}],"servers":[{"url":"https://api.impact.com","description":"Production server"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}},"schemas":{"TaxDocument":{"type":"object","properties":{"Id":{"type":"string","description":"Unique identifier of the tax document."},"UserId":{"type":"string","description":"ID of the account user the document belongs to."},"Email":{"type":"string","description":"Email address of the user the document belongs to."},"Status":{"type":"string","enum":["NEW","NOT_VERIFIED","ACTIVE","INACTIVE"],"description":"Current status of the tax document."},"EnvelopeId":{"type":"string","description":"Unique identifier of the DocuSign envelope (DocuSign provider only)."},"Type":{"type":"string","nullable":true,"enum":["W9","W8BEN","W8BENE"],"description":"The IRS tax form type. Empty until the user selects a form in the iframe."},"SubmitDate":{"type":"string","format":"date-time","description":"Date and time the tax document was submitted (ISO 8601)."},"UpdateDate":{"type":"string","format":"date-time","description":"Date and time the tax document was last updated (ISO 8601)."},"Provider":{"type":"string","enum":["DOCUSIGN","COMPLY_EXCHANGE"],"description":"The provider that collected the tax document."},"Uri":{"type":"string","description":"API resource path for this tax document."}}}}},"paths":{"/Mediapartners/{AccountSID}/TaxDocuments":{"get":{"summary":"List all tax documents","description":"Returns every tax document submitted for the partner account.","operationId":"listAllTaxDocuments","tags":["Tax Documents"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"TaxDocuments":{"type":"array","items":{"$ref":"#/components/schemas/TaxDocument"}}}}}}}}}}}}
```

## Complete tax document submission

> Records the outcome of a tax document submission collected via the Comply Exchange iframe. Call this immediately after the user finalizes submission in the iframe so the document is recorded as submitted in impact.com. DocuSign signals completion via the \`ReturnUrl\` callback supplied at Create time instead.<br>

```json
{"openapi":"3.1.0","info":{"title":"Partner Tax Documents API","version":"15"},"tags":[{"name":"Tax Documents","description":"Endpoints for creating, completing, and retrieving partner tax documents."}],"servers":[{"url":"https://api.impact.com","description":"Production server"}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Use your AccountSID as the username and AuthToken as the password."}}},"paths":{"/Mediapartners/{AccountSID}/TaxDocument/Complete":{"post":{"summary":"Complete tax document submission","description":"Records the outcome of a tax document submission collected via the Comply Exchange iframe. Call this immediately after the user finalizes submission in the iframe so the document is recorded as submitted in impact.com. DocuSign signals completion via the `ReturnUrl` callback supplied at Create time instead.\n","operationId":"completeTaxDocumentSubmission","tags":["Tax Documents"],"parameters":[{"name":"AccountSID","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier for the partner account."}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["id","event"],"properties":{"id":{"type":"string","description":"The Id of the tax document being submitted."},"event":{"type":"string","enum":["Complete"],"description":"The lifecycle event being signalled. Always `Complete`."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"string","description":"Outcome status of the completion call."},"Uri":{"type":"string","description":"API resource path for the completed tax document."}}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integrations.impact.com/partner-api-reference/partner-v15/reference/tax-document/tax-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
