Avalara · Capability
Avalara AvaTax APIs — Reports
Avalara AvaTax APIs — Reports. 4 operations. Lead operation: Avalara InitiateExportDocumentLineReport. Self-contained Naftiko capability covering one Avalara business surface.
What You Can Do
POST
Post
— Avalara InitiateExportDocumentLineReport
/v1/api/v2/companies/{companyid}/reports/exportdocumentline/initiate
GET
Get
— Avalara ListReports
/v1/api/v2/reports
GET
Get
— Avalara GetReport
/v1/api/v2/reports/{id}
GET
Get
— Avalara DownloadReport
/v1/api/v2/reports/{id}/attachment
MCP Tools
avalara-initiateexportdocumentlinereport
Avalara InitiateExportDocumentLineReport
avalara-listreports
Avalara ListReports
read-only
idempotent
avalara-getreport
Avalara GetReport
read-only
idempotent
avalara-downloadreport
Avalara DownloadReport
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Avalara AvaTax APIs — Reports
description: 'Avalara AvaTax APIs — Reports. 4 operations. Lead operation: Avalara InitiateExportDocumentLineReport. Self-contained
Naftiko capability covering one Avalara business surface.'
tags:
- Avalara
- Reports
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
AVALARA_API_KEY: AVALARA_API_KEY
capability:
consumes:
- type: http
namespace: avatax-apis-reports
baseUri: http://{{baseurl}}
description: Avalara AvaTax APIs — Reports business capability. Self-contained, no shared references.
resources:
- name: api-v2-companies-companyId-reports-exportdocumentline-initiate
path: /api/v2/companies/{companyId}/reports/exportdocumentline/initiate
operations:
- name: post
method: POST
description: Avalara InitiateExportDocumentLineReport
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Content-Type
in: header
type: string
- name: X-Avalara-Client
in: header
type: string
description: Identifies the software you are using to call this API. For more information on the client header,
see [Client Headers](https://developer.avalara.com/avatax/cli
- name: companyId
in: path
type: string
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: api-v2-reports
path: /api/v2/reports
operations:
- name: get
method: GET
description: Avalara ListReports
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: X-Avalara-Client
in: header
type: string
description: Identifies the software you are using to call this API. For more information on the client header,
see [Client Headers](https://developer.avalara.com/avatax/cli
- name: api-v2-reports-id
path: /api/v2/reports/{id}
operations:
- name: get
method: GET
description: Avalara GetReport
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: X-Avalara-Client
in: header
type: string
description: Identifies the software you are using to call this API. For more information on the client header,
see [Client Headers](https://developer.avalara.com/avatax/cli
- name: id
in: path
type: string
required: true
- name: api-v2-reports-id-attachment
path: /api/v2/reports/{id}/attachment
operations:
- name: get
method: GET
description: Avalara DownloadReport
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: X-Avalara-Client
in: header
type: string
description: Identifies the software you are using to call this API. For more information on the client header,
see [Client Headers](https://developer.avalara.com/avatax/cli
- name: id
in: path
type: string
required: true
authentication:
type: basic
username: '{{env.AVALARA_USER}}'
password: '{{env.AVALARA_PASS}}'
exposes:
- type: rest
namespace: avatax-apis-reports-rest
port: 8080
description: REST adapter for Avalara AvaTax APIs — Reports. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/api/v2/companies/{companyid}/reports/exportdocumentline/initiate
name: api-v2-companies-companyid-reports-exportdocumentline-initiate
description: REST surface for api-v2-companies-companyId-reports-exportdocumentline-initiate.
operations:
- method: POST
name: post
description: Avalara InitiateExportDocumentLineReport
call: avatax-apis-reports.post
with:
Content-Type: rest.Content-Type
X-Avalara-Client: rest.X-Avalara-Client
companyId: rest.companyId
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/reports
name: api-v2-reports
description: REST surface for api-v2-reports.
operations:
- method: GET
name: get
description: Avalara ListReports
call: avatax-apis-reports.get
with:
X-Avalara-Client: rest.X-Avalara-Client
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/reports/{id}
name: api-v2-reports-id
description: REST surface for api-v2-reports-id.
operations:
- method: GET
name: get
description: Avalara GetReport
call: avatax-apis-reports.get
with:
X-Avalara-Client: rest.X-Avalara-Client
id: rest.id
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/reports/{id}/attachment
name: api-v2-reports-id-attachment
description: REST surface for api-v2-reports-id-attachment.
operations:
- method: GET
name: get
description: Avalara DownloadReport
call: avatax-apis-reports.get
with:
X-Avalara-Client: rest.X-Avalara-Client
id: rest.id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: avatax-apis-reports-mcp
port: 9090
transport: http
description: MCP adapter for Avalara AvaTax APIs — Reports. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: avalara-initiateexportdocumentlinereport
description: Avalara InitiateExportDocumentLineReport
hints:
readOnly: false
destructive: false
idempotent: false
call: avatax-apis-reports.post
with:
Content-Type: tools.Content-Type
X-Avalara-Client: tools.X-Avalara-Client
companyId: tools.companyId
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: avalara-listreports
description: Avalara ListReports
hints:
readOnly: true
destructive: false
idempotent: true
call: avatax-apis-reports.get
with:
X-Avalara-Client: tools.X-Avalara-Client
outputParameters:
- type: object
mapping: $.
- name: avalara-getreport
description: Avalara GetReport
hints:
readOnly: true
destructive: false
idempotent: true
call: avatax-apis-reports.get
with:
X-Avalara-Client: tools.X-Avalara-Client
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: avalara-downloadreport
description: Avalara DownloadReport
hints:
readOnly: true
destructive: false
idempotent: true
call: avatax-apis-reports.get
with:
X-Avalara-Client: tools.X-Avalara-Client
id: tools.id
outputParameters:
- type: object
mapping: $.