Avalara · Capability

Avalara AvaTax REST API — Nexus

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

Run with Naftiko AvalaraNexus

What You Can Do

GET
Listnexusbycompany — Avalara List Nexus for a Company
/v1/api/v2/companies/{companyid}/nexus
POST
Createnexus — Avalara Create Nexus for a Company
/v1/api/v2/companies/{companyid}/nexus

MCP Tools

avalara-list-nexus-company

Avalara List Nexus for a Company

read-only idempotent
avalara-create-nexus-company

Avalara Create Nexus for a Company

Capability Spec

avatax-rest-nexus.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Avalara AvaTax REST API — Nexus
  description: 'Avalara AvaTax REST API — Nexus. 2 operations. Lead operation: Avalara List Nexus for a Company. Self-contained
    Naftiko capability covering one Avalara business surface.'
  tags:
  - Avalara
  - Nexus
  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-nexus
    baseUri: https://rest.avatax.com
    description: Avalara AvaTax REST API — Nexus business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-companies-companyId-nexus
      path: /api/v2/companies/{companyId}/nexus
      operations:
      - name: listnexusbycompany
        method: GET
        description: Avalara List Nexus for a Company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createnexus
        method: POST
        description: Avalara Create Nexus for a Company
        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-nexus-rest
    port: 8080
    description: REST adapter for Avalara AvaTax REST API — Nexus. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/companies/{companyid}/nexus
      name: api-v2-companies-companyid-nexus
      description: REST surface for api-v2-companies-companyId-nexus.
      operations:
      - method: GET
        name: listnexusbycompany
        description: Avalara List Nexus for a Company
        call: avatax-rest-nexus.listnexusbycompany
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createnexus
        description: Avalara Create Nexus for a Company
        call: avatax-rest-nexus.createnexus
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: avatax-rest-nexus-mcp
    port: 9090
    transport: http
    description: MCP adapter for Avalara AvaTax REST API — Nexus. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: avalara-list-nexus-company
      description: Avalara List Nexus for a Company
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-rest-nexus.listnexusbycompany
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-create-nexus-company
      description: Avalara Create Nexus for a Company
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: avatax-rest-nexus.createnexus
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.