Export Form 8949
GET
/api/v1/tax-reports/{address}/export/8949
const url = 'https://api.qeychain.xyz/api/v1/tax-reports/example/export/8949?tax_year=1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.qeychain.xyz/api/v1/tax-reports/example/export/8949?tax_year=1'Export IRS Form 8949 data (Sales and Dispositions of Capital Assets).
Returns line-item data for both short-term (Part I) and long-term (Part II) capital gains/losses, ready for tax filing.
Response Format:
{
"success": true,
"data": {
"tax_year": 2024,
"short_term_items": [...],
"long_term_items": [...],
"total_gain_loss": "1500.00",
...
},
"meta": {...}
}
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”address
required
Address
string
Query Parameters
Section titled “Query Parameters”tax_year
required
Tax Year
Tax year (e.g., 2024)
integer
Tax year (e.g., 2024)
owned_wallets
Any of:
Array<string>
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Export Form 8949 Api V1 Tax Reports Address Export 8949 Get
object
key
additional properties
any
Examplegenerated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}