Avalara · Capability

Avalara AvaTax APIs — ECommerceToken

Avalara AvaTax APIs — ECommerceToken. 2 operations. Lead operation: Avalara CreateECommerceToken. Self-contained Naftiko capability covering one Avalara business surface.

Run with Naftiko AvalaraECommerceToken

What You Can Do

POST
Post — Avalara CreateECommerceToken
/v1/api/v2/companies/{companyid}/ecommercetokens
PUT
Put — Avalara RefreshECommerceToken
/v1/api/v2/companies/{companyid}/ecommercetokens

MCP Tools

avalara-createecommercetoken

Avalara CreateECommerceToken

avalara-refreshecommercetoken

Avalara RefreshECommerceToken

idempotent

Capability Spec

avatax-apis-ecommercetoken.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Avalara AvaTax APIs — ECommerceToken
  description: 'Avalara AvaTax APIs — ECommerceToken. 2 operations. Lead operation: Avalara CreateECommerceToken. Self-contained
    Naftiko capability covering one Avalara business surface.'
  tags:
  - Avalara
  - ECommerceToken
  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-ecommercetoken
    baseUri: http://{{baseurl}}
    description: Avalara AvaTax APIs — ECommerceToken business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-companies-companyId-ecommercetokens
      path: /api/v2/companies/{companyId}/ecommercetokens
      operations:
      - name: post
        method: POST
        description: Avalara CreateECommerceToken
        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: put
        method: PUT
        description: Avalara RefreshECommerceToken
        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
    authentication:
      type: basic
      username: '{{env.AVALARA_USER}}'
      password: '{{env.AVALARA_PASS}}'
  exposes:
  - type: rest
    namespace: avatax-apis-ecommercetoken-rest
    port: 8080
    description: REST adapter for Avalara AvaTax APIs — ECommerceToken. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/companies/{companyid}/ecommercetokens
      name: api-v2-companies-companyid-ecommercetokens
      description: REST surface for api-v2-companies-companyId-ecommercetokens.
      operations:
      - method: POST
        name: post
        description: Avalara CreateECommerceToken
        call: avatax-apis-ecommercetoken.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: PUT
        name: put
        description: Avalara RefreshECommerceToken
        call: avatax-apis-ecommercetoken.put
        with:
          Content-Type: rest.Content-Type
          X-Avalara-Client: rest.X-Avalara-Client
          companyId: rest.companyId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: avatax-apis-ecommercetoken-mcp
    port: 9090
    transport: http
    description: MCP adapter for Avalara AvaTax APIs — ECommerceToken. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: avalara-createecommercetoken
      description: Avalara CreateECommerceToken
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: avatax-apis-ecommercetoken.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-refreshecommercetoken
      description: Avalara RefreshECommerceToken
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: avatax-apis-ecommercetoken.put
      with:
        Content-Type: tools.Content-Type
        X-Avalara-Client: tools.X-Avalara-Client
        companyId: tools.companyId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.