Avalara DistanceThresholds API

The DistanceThresholds API from Avalara — 3 operation(s) for distancethresholds.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v2/companies/{companyId}/distancethresholds Create distance thresholds · Avalara CreateDistanceThreshold #
Ask an LLM
“How do I record that my company is distance selling into another country?”
“Can I add thresholds for several countries in one call?”
Tell an agent
Create distance thresholds for company {companyId}.
Add a new country distance-selling threshold to company {companyId}.
GET /api/v2/companies/{companyId}/distancethresholds List a company's distance thresholds · Avalara ListDistanceThresholds #
Ask an LLM
“Which distance thresholds are set up for my company?”
“Can I see the VAT distance-selling thresholds for one company?”
Tell an agent
List distance thresholds for company {companyId}.
Show the distance-selling settings of company {companyId}.
DELETE /api/v2/companies/{companyId}/distancethresholds/{id} Delete a distance threshold · Avalara DeleteDistanceThreshold #
Ask an LLM
“How do I remove a distance threshold that no longer applies?”
“Can I stop tracking distance selling into a country?”
Tell an agent destructive · confirm first
Delete distance threshold {id} from company {companyId}.
Mark threshold {id} of company {companyId} as deleted.
GET /api/v2/companies/{companyId}/distancethresholds/{id} Get one distance threshold · Avalara GetDistanceThreshold #
Ask an LLM
“Can I look up a single distance threshold by ID?”
“What does one country's distance threshold record say?”
Tell an agent
Get distance threshold {id} for company {companyId}.
Show threshold record {id} of company {companyId}.
PUT /api/v2/companies/{companyId}/distancethresholds/{id} Update a distance threshold · Avalara UpdateDistanceThreshold #
Ask an LLM
“How do I change an existing distance threshold?”
“Does updating a threshold replace the whole record?”
Tell an agent
Update distance threshold {id} for company {companyId}.
Replace threshold {id} on company {companyId} with new values.
GET /api/v2/distancethresholds Query distance thresholds across my account · Avalara QueryDistanceThresholds #
Ask an LLM
“Can I search distance thresholds across all my companies?”
“Which of my companies have VAT distance thresholds configured?”
Tell an agent
Query distance thresholds across my whole account.
Search every company's distance thresholds.

Documentation

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/avalara:avalara-distancethresholds-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

avalara-distancethresholds-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Avalara AvaTax Distance Thresholds API
  description: Welcome to the AvaTax API Postman Collection!
  version: 1.0.0
servers:
- url: http://{{baseurl}}
security:
- basicAuth: []
tags:
- name: DistanceThresholds
paths:
  /api/v2/companies/{companyId}/distancethresholds:
    post:
      tags:
      - DistanceThresholds
      summary: Avalara CreateDistanceThreshold
      description: 'Create one or more DistanceThreshold objects for this company.


        A company-distance-threshold model indicates the distance between a company

        and the taxing borders of various countries. Distance thresholds are necessary

        to correctly calculate some value-added taxes.


        ### Security Policies


        * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                id: 0
                companyId: 0
                originCountry: FR
                destinationCountry: BR
                thresholdExceeded: false
                type: Sale
      parameters:
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      - name: X-Avalara-Client
        in: header
        schema:
          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/client-headers/).
        example: AvaTax Postman Collection
      - name: companyId
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: postApiV2CompaniesByCompanyIdDistancethresholds
      x-operation-id-source: derived
    get:
      tags:
      - DistanceThresholds
      summary: Avalara ListDistanceThresholds
      description: 'Lists all DistanceThreshold objects that belong to this company.


        A company-distance-threshold model indicates the distance between a company

        and the taxing borders of various countries. Distance thresholds are necessary

        to correctly calculate some value-added taxes.


        ### Security Policies


        * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.'
      parameters:
      - name: X-Avalara-Client
        in: header
        schema:
          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/client-headers/).
        example: AvaTax Postman Collection
      - name: companyId
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: getApiV2CompaniesByCompanyIdDistancethresholds
      x-operation-id-source: derived
  /api/v2/companies/{companyId}/distancethresholds/{id}:
    delete:
      tags:
      - DistanceThresholds
      summary: Avalara DeleteDistanceThreshold
      description: 'Marks the DistanceThreshold object identified by this URL as deleted.


        A company-distance-threshold model indicates the distance between a company

        and the taxing borders of various countries. Distance thresholds are necessary

        to correctly calculate some value-added taxes.


        ### Security Policies


        * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.'
      parameters:
      - name: X-Avalara-Client
        in: header
        schema:
          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/client-headers/).
        example: AvaTax Postman Collection
      - name: companyId
        in: path
        schema:
          type: string
        required: true
      - name: id
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: deleteApiV2CompaniesByCompanyIdDistancethresholdsById
      x-operation-id-source: derived
    get:
      tags:
      - DistanceThresholds
      summary: Avalara GetDistanceThreshold
      description: 'Retrieves a single DistanceThreshold object defined by this URL.


        A company-distance-threshold model indicates the distance between a company

        and the taxing borders of various countries. Distance thresholds are necessary

        to correctly calculate some value-added taxes.


        ### Security Policies


        * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.'
      parameters:
      - name: X-Avalara-Client
        in: header
        schema:
          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/client-headers/).
        example: AvaTax Postman Collection
      - name: companyId
        in: path
        schema:
          type: string
        required: true
      - name: id
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: getApiV2CompaniesByCompanyIdDistancethresholdsById
      x-operation-id-source: derived
    put:
      tags:
      - DistanceThresholds
      summary: Avalara UpdateDistanceThreshold
      description: 'Replace the existing DistanceThreshold object at this URL with an updated object.


        A company-distance-threshold model indicates the distance between a company

        and the taxing borders of various countries. Distance thresholds are necessary

        to correctly calculate some value-added taxes.


        All data from the existing object will be replaced with data in the object you PUT.

        To set a field''s value to null, you may either set its value to null or omit that field from the object you post.


        ### Security Policies


        * This API requires one of the following user roles: AccountAdmin, BatchServiceAdmin, CompanyAdmin, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                id: 0
                companyId: 0
                originCountry: FR
                destinationCountry: BR
                thresholdExceeded: false
                type: Sale
      parameters:
      - name: Content-Type
        in: header
        schema:
          type: string
        example: application/json
      - name: X-Avalara-Client
        in: header
        schema:
          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/client-headers/).
        example: AvaTax Postman Collection
      - name: companyId
        in: path
        schema:
          type: string
        required: true
      - name: id
        in: path
        schema:
          type: string
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: putApiV2CompaniesByCompanyIdDistancethresholdsById
      x-operation-id-source: derived
  /api/v2/distancethresholds:
    get:
      tags:
      - DistanceThresholds
      summary: Avalara QueryDistanceThresholds
      description: 'Lists all DistanceThreshold objects that belong to this account.


        A company-distance-threshold model indicates the distance between a company

        and the taxing borders of various countries. Distance thresholds are necessary

        to correctly calculate some value-added taxes.


        Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on Filtering in REST .

        Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.


        ### Security Policies


        * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.'
      parameters:
      - name: X-Avalara-Client
        in: header
        schema:
          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/client-headers/).
        example: AvaTax Postman Collection
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      operationId: getApiV2Distancethresholds
      x-operation-id-source: derived
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic