Avalara · Capability

Avalara AvaTax APIs — DistanceThresholds

Avalara AvaTax APIs — DistanceThresholds. 6 operations. Lead operation: Avalara CreateDistanceThreshold. Self-contained Naftiko capability covering one Avalara business surface.

Run with Naftiko AvalaraDistanceThresholds

What You Can Do

POST
Post — Avalara CreateDistanceThreshold
/v1/api/v2/companies/{companyid}/distancethresholds
GET
Get — Avalara ListDistanceThresholds
/v1/api/v2/companies/{companyid}/distancethresholds
DELETE
Delete — Avalara DeleteDistanceThreshold
/v1/api/v2/companies/{companyid}/distancethresholds/{id}
GET
Get — Avalara GetDistanceThreshold
/v1/api/v2/companies/{companyid}/distancethresholds/{id}
PUT
Put — Avalara UpdateDistanceThreshold
/v1/api/v2/companies/{companyid}/distancethresholds/{id}
GET
Get — Avalara QueryDistanceThresholds
/v1/api/v2/distancethresholds

MCP Tools

avalara-createdistancethreshold

Avalara CreateDistanceThreshold

avalara-listdistancethresholds

Avalara ListDistanceThresholds

read-only idempotent
avalara-deletedistancethreshold

Avalara DeleteDistanceThreshold

idempotent
avalara-getdistancethreshold

Avalara GetDistanceThreshold

read-only idempotent
avalara-updatedistancethreshold

Avalara UpdateDistanceThreshold

idempotent
avalara-querydistancethresholds

Avalara QueryDistanceThresholds

read-only idempotent

Capability Spec

avatax-apis-distancethresholds.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Avalara AvaTax APIs — DistanceThresholds
  description: 'Avalara AvaTax APIs — DistanceThresholds. 6 operations. Lead operation: Avalara CreateDistanceThreshold. Self-contained
    Naftiko capability covering one Avalara business surface.'
  tags:
  - Avalara
  - DistanceThresholds
  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-distancethresholds
    baseUri: http://{{baseurl}}
    description: Avalara AvaTax APIs — DistanceThresholds business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-companies-companyId-distancethresholds
      path: /api/v2/companies/{companyId}/distancethresholds
      operations:
      - name: post
        method: POST
        description: Avalara CreateDistanceThreshold
        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 ListDistanceThresholds
        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-distancethresholds-id
      path: /api/v2/companies/{companyId}/distancethresholds/{id}
      operations:
      - name: delete
        method: DELETE
        description: Avalara DeleteDistanceThreshold
        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 GetDistanceThreshold
        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 UpdateDistanceThreshold
        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-distancethresholds
      path: /api/v2/distancethresholds
      operations:
      - name: get
        method: GET
        description: Avalara QueryDistanceThresholds
        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-distancethresholds-rest
    port: 8080
    description: REST adapter for Avalara AvaTax APIs — DistanceThresholds. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/companies/{companyid}/distancethresholds
      name: api-v2-companies-companyid-distancethresholds
      description: REST surface for api-v2-companies-companyId-distancethresholds.
      operations:
      - method: POST
        name: post
        description: Avalara CreateDistanceThreshold
        call: avatax-apis-distancethresholds.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 ListDistanceThresholds
        call: avatax-apis-distancethresholds.get
        with:
          X-Avalara-Client: rest.X-Avalara-Client
          companyId: rest.companyId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/companies/{companyid}/distancethresholds/{id}
      name: api-v2-companies-companyid-distancethresholds-id
      description: REST surface for api-v2-companies-companyId-distancethresholds-id.
      operations:
      - method: DELETE
        name: delete
        description: Avalara DeleteDistanceThreshold
        call: avatax-apis-distancethresholds.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 GetDistanceThreshold
        call: avatax-apis-distancethresholds.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 UpdateDistanceThreshold
        call: avatax-apis-distancethresholds.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/distancethresholds
      name: api-v2-distancethresholds
      description: REST surface for api-v2-distancethresholds.
      operations:
      - method: GET
        name: get
        description: Avalara QueryDistanceThresholds
        call: avatax-apis-distancethresholds.get
        with:
          X-Avalara-Client: rest.X-Avalara-Client
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: avatax-apis-distancethresholds-mcp
    port: 9090
    transport: http
    description: MCP adapter for Avalara AvaTax APIs — DistanceThresholds. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: avalara-createdistancethreshold
      description: Avalara CreateDistanceThreshold
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: avatax-apis-distancethresholds.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-listdistancethresholds
      description: Avalara ListDistanceThresholds
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-apis-distancethresholds.get
      with:
        X-Avalara-Client: tools.X-Avalara-Client
        companyId: tools.companyId
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-deletedistancethreshold
      description: Avalara DeleteDistanceThreshold
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: avatax-apis-distancethresholds.delete
      with:
        X-Avalara-Client: tools.X-Avalara-Client
        companyId: tools.companyId
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-getdistancethreshold
      description: Avalara GetDistanceThreshold
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-apis-distancethresholds.get
      with:
        X-Avalara-Client: tools.X-Avalara-Client
        companyId: tools.companyId
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-updatedistancethreshold
      description: Avalara UpdateDistanceThreshold
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: avatax-apis-distancethresholds.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-querydistancethresholds
      description: Avalara QueryDistanceThresholds
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-apis-distancethresholds.get
      with:
        X-Avalara-Client: tools.X-Avalara-Client
      outputParameters:
      - type: object
        mapping: $.