naftiko: 1.0.0-alpha2 info: label: Avalara AvaTax REST API — Batches description: 'Avalara AvaTax REST API — Batches. 2 operations. Lead operation: Avalara List Batches for a Company. Self-contained Naftiko capability covering one Avalara business surface.' tags: - Avalara - Batches 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-batches baseUri: https://rest.avatax.com description: Avalara AvaTax REST API — Batches business capability. Self-contained, no shared references. resources: - name: api-v2-companies-companyId-batches path: /api/v2/companies/{companyId}/batches operations: - name: listbatches method: GET description: Avalara List Batches for a Company outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createbatch method: POST description: Avalara Create a New Batch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.AVALARA_API_KEY}}' exposes: - type: rest namespace: avatax-rest-batches-rest port: 8080 description: REST adapter for Avalara AvaTax REST API — Batches. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/companies/{companyid}/batches name: api-v2-companies-companyid-batches description: REST surface for api-v2-companies-companyId-batches. operations: - method: GET name: listbatches description: Avalara List Batches for a Company call: avatax-rest-batches.listbatches outputParameters: - type: object mapping: $. - method: POST name: createbatch description: Avalara Create a New Batch call: avatax-rest-batches.createbatch with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: avatax-rest-batches-mcp port: 9090 transport: http description: MCP adapter for Avalara AvaTax REST API — Batches. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: avalara-list-batches-company description: Avalara List Batches for a Company hints: readOnly: true destructive: false idempotent: true call: avatax-rest-batches.listbatches outputParameters: - type: object mapping: $. - name: avalara-create-new-batch description: Avalara Create a New Batch hints: readOnly: false destructive: false idempotent: false call: avatax-rest-batches.createbatch with: body: tools.body outputParameters: - type: object mapping: $.