Avalara · Capability

Avalara AvaTax REST API — Reports

Avalara AvaTax REST API — Reports. 2 operations. Lead operation: Avalara List Reports for a Company. Self-contained Naftiko capability covering one Avalara business surface.

Run with Naftiko AvalaraReports

What You Can Do

GET
Listreports — Avalara List Reports for a Company
/v1/api/v2/companies/{companyid}/reports
GET
Getreport — Avalara Retrieve a Single Report
/v1/api/v2/reports/{id}

MCP Tools

avalara-list-reports-company

Avalara List Reports for a Company

read-only idempotent
avalara-retrieve-single-report

Avalara Retrieve a Single Report

read-only idempotent

Capability Spec

avatax-rest-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Avalara AvaTax REST API — Reports
  description: 'Avalara AvaTax REST API — Reports. 2 operations. Lead operation: Avalara List Reports for a Company. 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-rest-reports
    baseUri: https://rest.avatax.com
    description: Avalara AvaTax REST API — Reports business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-companies-companyId-reports
      path: /api/v2/companies/{companyId}/reports
      operations:
      - name: listreports
        method: GET
        description: Avalara List Reports for a Company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v2-reports-id
      path: /api/v2/reports/{id}
      operations:
      - name: getreport
        method: GET
        description: Avalara Retrieve a Single Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
    authentication:
      type: bearer
      token: '{{env.AVALARA_API_KEY}}'
  exposes:
  - type: rest
    namespace: avatax-rest-reports-rest
    port: 8080
    description: REST adapter for Avalara AvaTax REST API — Reports. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/companies/{companyid}/reports
      name: api-v2-companies-companyid-reports
      description: REST surface for api-v2-companies-companyId-reports.
      operations:
      - method: GET
        name: listreports
        description: Avalara List Reports for a Company
        call: avatax-rest-reports.listreports
        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: getreport
        description: Avalara Retrieve a Single Report
        call: avatax-rest-reports.getreport
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: avatax-rest-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Avalara AvaTax REST API — Reports. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: avalara-list-reports-company
      description: Avalara List Reports for a Company
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-rest-reports.listreports
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-retrieve-single-report
      description: Avalara Retrieve a Single Report
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-rest-reports.getreport
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.