naftiko: 1.0.0-alpha2 info: label: Avalara AvaTax APIs — AdvancedRules description: 'Avalara AvaTax APIs — AdvancedRules. 5 operations. Lead operation: Avalara CreateCompanyLookupFile. Self-contained Naftiko capability covering one Avalara business surface.' tags: - Avalara - AdvancedRules 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-advancedrules baseUri: http://{{baseurl}} description: Avalara AvaTax APIs — AdvancedRules business capability. Self-contained, no shared references. resources: - name: api-v2-advancedrules-accounts-accountId-companies-companyId-lookupFiles path: /api/v2/advancedrules/accounts/{accountId}/companies/{companyId}/lookupFiles operations: - name: post method: POST description: Avalara CreateCompanyLookupFile 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: accountId in: path type: string required: true - 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 GetCompanyLookupFiles 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: accountId in: path type: string required: true - name: companyId in: path type: string required: true - name: api-v2-advancedrules-accounts-accountId-lookupFiles-id path: /api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id} operations: - name: delete method: DELETE description: Avalara DeleteLookupFile 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: accountId in: path type: string required: true - name: id in: path type: string required: true - name: get method: GET description: Avalara GetLookupFile 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: accountId in: path type: string required: true - name: id in: path type: string required: true - name: put method: PUT description: Avalara UpdateLookupFile 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: accountId 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 authentication: type: basic username: '{{env.AVALARA_USER}}' password: '{{env.AVALARA_PASS}}' exposes: - type: rest namespace: avatax-apis-advancedrules-rest port: 8080 description: REST adapter for Avalara AvaTax APIs — AdvancedRules. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/advancedrules/accounts/{accountid}/companies/{companyid}/lookupfiles name: api-v2-advancedrules-accounts-accountid-companies-companyid-lookupfiles description: REST surface for api-v2-advancedrules-accounts-accountId-companies-companyId-lookupFiles. operations: - method: POST name: post description: Avalara CreateCompanyLookupFile call: avatax-apis-advancedrules.post with: Content-Type: rest.Content-Type X-Avalara-Client: rest.X-Avalara-Client accountId: rest.accountId companyId: rest.companyId body: rest.body outputParameters: - type: object mapping: $. - method: GET name: get description: Avalara GetCompanyLookupFiles call: avatax-apis-advancedrules.get with: X-Avalara-Client: rest.X-Avalara-Client accountId: rest.accountId companyId: rest.companyId outputParameters: - type: object mapping: $. - path: /v1/api/v2/advancedrules/accounts/{accountid}/lookupfiles/{id} name: api-v2-advancedrules-accounts-accountid-lookupfiles-id description: REST surface for api-v2-advancedrules-accounts-accountId-lookupFiles-id. operations: - method: DELETE name: delete description: Avalara DeleteLookupFile call: avatax-apis-advancedrules.delete with: X-Avalara-Client: rest.X-Avalara-Client accountId: rest.accountId id: rest.id outputParameters: - type: object mapping: $. - method: GET name: get description: Avalara GetLookupFile call: avatax-apis-advancedrules.get with: X-Avalara-Client: rest.X-Avalara-Client accountId: rest.accountId id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: put description: Avalara UpdateLookupFile call: avatax-apis-advancedrules.put with: Content-Type: rest.Content-Type X-Avalara-Client: rest.X-Avalara-Client accountId: rest.accountId id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: avatax-apis-advancedrules-mcp port: 9090 transport: http description: MCP adapter for Avalara AvaTax APIs — AdvancedRules. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: avalara-createcompanylookupfile description: Avalara CreateCompanyLookupFile hints: readOnly: true destructive: false idempotent: false call: avatax-apis-advancedrules.post with: Content-Type: tools.Content-Type X-Avalara-Client: tools.X-Avalara-Client accountId: tools.accountId companyId: tools.companyId body: tools.body outputParameters: - type: object mapping: $. - name: avalara-getcompanylookupfiles description: Avalara GetCompanyLookupFiles hints: readOnly: true destructive: false idempotent: true call: avatax-apis-advancedrules.get with: X-Avalara-Client: tools.X-Avalara-Client accountId: tools.accountId companyId: tools.companyId outputParameters: - type: object mapping: $. - name: avalara-deletelookupfile description: Avalara DeleteLookupFile hints: readOnly: false destructive: true idempotent: true call: avatax-apis-advancedrules.delete with: X-Avalara-Client: tools.X-Avalara-Client accountId: tools.accountId id: tools.id outputParameters: - type: object mapping: $. - name: avalara-getlookupfile description: Avalara GetLookupFile hints: readOnly: true destructive: false idempotent: true call: avatax-apis-advancedrules.get with: X-Avalara-Client: tools.X-Avalara-Client accountId: tools.accountId id: tools.id outputParameters: - type: object mapping: $. - name: avalara-updatelookupfile description: Avalara UpdateLookupFile hints: readOnly: false destructive: false idempotent: true call: avatax-apis-advancedrules.put with: Content-Type: tools.Content-Type X-Avalara-Client: tools.X-Avalara-Client accountId: tools.accountId id: tools.id body: tools.body outputParameters: - type: object mapping: $.