naftiko: 1.0.0-alpha2 info: label: Avalara AvaTax APIs — TaxCodes description: 'Avalara AvaTax APIs — TaxCodes. 6 operations. Lead operation: Avalara CreateTaxCodes. Self-contained Naftiko capability covering one Avalara business surface.' tags: - Avalara - TaxCodes 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-taxcodes baseUri: http://{{baseurl}} description: Avalara AvaTax APIs — TaxCodes business capability. Self-contained, no shared references. resources: - name: api-v2-companies-companyId-taxcodes path: /api/v2/companies/{companyId}/taxcodes operations: - name: post method: POST description: Avalara CreateTaxCodes 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: get method: GET description: Avalara ListTaxCodesByCompany 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: companyId in: path type: string required: true - name: api-v2-companies-companyId-taxcodes-id path: /api/v2/companies/{companyId}/taxcodes/{id} operations: - name: delete method: DELETE description: Avalara DeleteTaxCode 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: companyId in: path type: string required: true - name: id in: path type: string required: true - name: get method: GET description: Avalara GetTaxCode 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: companyId in: path type: string required: true - name: id in: path type: string required: true - name: put method: PUT description: Avalara UpdateTaxCode 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: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: api-v2-taxcodes path: /api/v2/taxcodes operations: - name: get method: GET description: Avalara QueryTaxCodes 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 authentication: type: basic username: '{{env.AVALARA_USER}}' password: '{{env.AVALARA_PASS}}' exposes: - type: rest namespace: avatax-apis-taxcodes-rest port: 8080 description: REST adapter for Avalara AvaTax APIs — TaxCodes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/companies/{companyid}/taxcodes name: api-v2-companies-companyid-taxcodes description: REST surface for api-v2-companies-companyId-taxcodes. operations: - method: POST name: post description: Avalara CreateTaxCodes call: avatax-apis-taxcodes.post with: Content-Type: rest.Content-Type X-Avalara-Client: rest.X-Avalara-Client companyId: rest.companyId body: rest.body outputParameters: - type: object mapping: $. - method: GET name: get description: Avalara ListTaxCodesByCompany call: avatax-apis-taxcodes.get with: X-Avalara-Client: rest.X-Avalara-Client companyId: rest.companyId outputParameters: - type: object mapping: $. - path: /v1/api/v2/companies/{companyid}/taxcodes/{id} name: api-v2-companies-companyid-taxcodes-id description: REST surface for api-v2-companies-companyId-taxcodes-id. operations: - method: DELETE name: delete description: Avalara DeleteTaxCode call: avatax-apis-taxcodes.delete with: X-Avalara-Client: rest.X-Avalara-Client companyId: rest.companyId id: rest.id outputParameters: - type: object mapping: $. - method: GET name: get description: Avalara GetTaxCode call: avatax-apis-taxcodes.get with: X-Avalara-Client: rest.X-Avalara-Client companyId: rest.companyId id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: put description: Avalara UpdateTaxCode call: avatax-apis-taxcodes.put with: Content-Type: rest.Content-Type X-Avalara-Client: rest.X-Avalara-Client companyId: rest.companyId id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/taxcodes name: api-v2-taxcodes description: REST surface for api-v2-taxcodes. operations: - method: GET name: get description: Avalara QueryTaxCodes call: avatax-apis-taxcodes.get with: X-Avalara-Client: rest.X-Avalara-Client outputParameters: - type: object mapping: $. - type: mcp namespace: avatax-apis-taxcodes-mcp port: 9090 transport: http description: MCP adapter for Avalara AvaTax APIs — TaxCodes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: avalara-createtaxcodes description: Avalara CreateTaxCodes hints: readOnly: false destructive: false idempotent: false call: avatax-apis-taxcodes.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-listtaxcodesbycompany description: Avalara ListTaxCodesByCompany hints: readOnly: true destructive: false idempotent: true call: avatax-apis-taxcodes.get with: X-Avalara-Client: tools.X-Avalara-Client companyId: tools.companyId outputParameters: - type: object mapping: $. - name: avalara-deletetaxcode description: Avalara DeleteTaxCode hints: readOnly: false destructive: true idempotent: true call: avatax-apis-taxcodes.delete with: X-Avalara-Client: tools.X-Avalara-Client companyId: tools.companyId id: tools.id outputParameters: - type: object mapping: $. - name: avalara-gettaxcode description: Avalara GetTaxCode hints: readOnly: true destructive: false idempotent: true call: avatax-apis-taxcodes.get with: X-Avalara-Client: tools.X-Avalara-Client companyId: tools.companyId id: tools.id outputParameters: - type: object mapping: $. - name: avalara-updatetaxcode description: Avalara UpdateTaxCode hints: readOnly: false destructive: false idempotent: true call: avatax-apis-taxcodes.put with: Content-Type: tools.Content-Type X-Avalara-Client: tools.X-Avalara-Client companyId: tools.companyId id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: avalara-querytaxcodes description: Avalara QueryTaxCodes hints: readOnly: true destructive: false idempotent: true call: avatax-apis-taxcodes.get with: X-Avalara-Client: tools.X-Avalara-Client outputParameters: - type: object mapping: $.