eBay · Capability

eBay Account API — Sales_tax

eBay Account API — Sales_tax. 4 operations. Lead operation: Sales_tax. Self-contained Naftiko capability covering one Ebay business surface.

Run with Naftiko EbaySales_tax

What You Can Do

GET
Getsalestaxes — Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria.

/v1/sales-tax
GET
Getsalestax — This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the countryCode and jurisdictionId path parameters. All four response fields will be returned if
/v1/sales-tax/{countrycode}/{jurisdictionid}
PUT
Createorreplacesalestax — This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: countryCode and jurisdictionId.

A tax table entry for a juris
/v1/sales-tax/{countrycode}/{jurisdictionid}
DELETE
Deletesalestax — This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using the countryCode and jurisdictionId path parameters.

Note: Sales-tax tables are only a
/v1/sales-tax/{countrycode}/{jurisdictionid}

MCP Tools

use-this-call-retrieve-all

Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria.

read-only idempotent
this-call-retrieves-current-sales

This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the countryCode and jurisdictionId path parameters. All four response fields will be returned if

read-only idempotent
this-method-creates-updates-sales

This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: countryCode and jurisdictionId.

A tax table entry for a juris

idempotent
this-call-deletes-sales-tax

This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using the countryCode and jurisdictionId path parameters.

Note: Sales-tax tables are only a

idempotent

Capability Spec

account-sales-tax.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: eBay Account API — Sales_tax
  description: 'eBay Account API — Sales_tax. 4 operations. Lead operation: Sales_tax. Self-contained Naftiko capability covering
    one Ebay business surface.'
  tags:
  - Ebay
  - Sales_tax
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    EBAY_API_KEY: EBAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: account-sales-tax
    baseUri: https://api.ebay.com{basePath}
    description: eBay Account API — Sales_tax business capability. Self-contained, no shared references.
    resources:
    - name: sales_tax
      path: /sales_tax
      operations:
      - name: getsalestaxes
        method: GET
        description: Use this call to retrieve all sales tax table entries that the seller has defined for a specific country.
          All four response fields will be returned for each tax jurisdiction that matches the search criteria. <br><br><span
          class="tablenote">
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: country_code
          in: query
          type: string
          description: This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html
            " title="https://www.iso.org " target="_blank">ISO 3166</a
          required: true
    - name: sales_tax-countryCode-jurisdictionId
      path: /sales_tax/{countryCode}/{jurisdictionId}
      operations:
      - name: getsalestax
        method: GET
        description: This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction
          to retrieve using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. All four response fields will
          be returned if
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: countryCode
          in: path
          type: string
          description: This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html
            " title="https://www.iso.org " target="_blank">ISO 3166</a
          required: true
        - name: jurisdictionId
          in: path
          type: string
          description: This path parameter specifies the ID of the sales tax jurisdiction for the tax table entry to be retrieved.<br><br>Valid
            jurisdiction IDs can be retrieved using
          required: true
      - name: createorreplacesalestax
        method: PUT
        description: 'This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry
          you want to configure using the two path parameters: <b>countryCode</b> and <b>jurisdictionId</b>.  <br><br>A tax
          table entry for a juris'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: countryCode
          in: path
          type: string
          description: This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html
            " title="https://www.iso.org " target="_blank">ISO 3166</a
          required: true
        - name: jurisdictionId
          in: path
          type: string
          description: This path parameter specifies the ID of the tax jurisdiction for the table entry to be created.<br><br>Valid
            jurisdiction IDs can be retrieved using the <a href
          required: true
        - name: Content-Type
          in: header
          type: string
          description: This header indicates the format of the request body provided by the client. Its value should be set
            to <b>application/json</b>.<br><br>For more information, re
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesalestax
        method: DELETE
        description: This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using
          the <b>countryCode</b> and <b>jurisdictionId</b> path parameters.<br><br><span class="tablenote"><b>Note:</b> Sales-tax
          tables are only a
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: countryCode
          in: path
          type: string
          description: This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html
            " title="https://www.iso.org " target="_blank">ISO 3166</a
          required: true
        - name: jurisdictionId
          in: path
          type: string
          description: This path parameter specifies the ID of the sales tax jurisdiction whose table entry you want to delete.<br><br>Valid
            jurisdiction IDs can be retrieved using th
          required: true
    authentication:
      type: bearer
      token: '{{env.EBAY_API_KEY}}'
  exposes:
  - type: rest
    namespace: account-sales-tax-rest
    port: 8080
    description: REST adapter for eBay Account API — Sales_tax. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/sales-tax
      name: sales-tax
      description: REST surface for sales_tax.
      operations:
      - method: GET
        name: getsalestaxes
        description: Use this call to retrieve all sales tax table entries that the seller has defined for a specific country.
          All four response fields will be returned for each tax jurisdiction that matches the search criteria. <br><br><span
          class="tablenote">
        call: account-sales-tax.getsalestaxes
        with:
          country_code: rest.country_code
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sales-tax/{countrycode}/{jurisdictionid}
      name: sales-tax-countrycode-jurisdictionid
      description: REST surface for sales_tax-countryCode-jurisdictionId.
      operations:
      - method: GET
        name: getsalestax
        description: This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction
          to retrieve using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. All four response fields will
          be returned if
        call: account-sales-tax.getsalestax
        with:
          countryCode: rest.countryCode
          jurisdictionId: rest.jurisdictionId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorreplacesalestax
        description: 'This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry
          you want to configure using the two path parameters: <b>countryCode</b> and <b>jurisdictionId</b>.  <br><br>A tax
          table entry for a juris'
        call: account-sales-tax.createorreplacesalestax
        with:
          countryCode: rest.countryCode
          jurisdictionId: rest.jurisdictionId
          Content-Type: rest.Content-Type
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesalestax
        description: This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using
          the <b>countryCode</b> and <b>jurisdictionId</b> path parameters.<br><br><span class="tablenote"><b>Note:</b> Sales-tax
          tables are only a
        call: account-sales-tax.deletesalestax
        with:
          countryCode: rest.countryCode
          jurisdictionId: rest.jurisdictionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: account-sales-tax-mcp
    port: 9090
    transport: http
    description: MCP adapter for eBay Account API — Sales_tax. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: use-this-call-retrieve-all
      description: Use this call to retrieve all sales tax table entries that the seller has defined for a specific country.
        All four response fields will be returned for each tax jurisdiction that matches the search criteria. <br><br><span
        class="tablenote">
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: account-sales-tax.getsalestaxes
      with:
        country_code: tools.country_code
      outputParameters:
      - type: object
        mapping: $.
    - name: this-call-retrieves-current-sales
      description: This call retrieves the current sales-tax table entry for a specific tax jurisdiction. Specify the jurisdiction
        to retrieve using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. All four response fields will
        be returned if
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: account-sales-tax.getsalestax
      with:
        countryCode: tools.countryCode
        jurisdictionId: tools.jurisdictionId
      outputParameters:
      - type: object
        mapping: $.
    - name: this-method-creates-updates-sales
      description: 'This method creates or updates a sales-tax table entry for a jurisdiction. Specify the tax table entry
        you want to configure using the two path parameters: <b>countryCode</b> and <b>jurisdictionId</b>.  <br><br>A tax
        table entry for a juris'
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: account-sales-tax.createorreplacesalestax
      with:
        countryCode: tools.countryCode
        jurisdictionId: tools.jurisdictionId
        Content-Type: tools.Content-Type
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: this-call-deletes-sales-tax
      description: This call deletes a sales-tax table entry for a jurisdiction. Specify the jurisdiction to delete using
        the <b>countryCode</b> and <b>jurisdictionId</b> path parameters.<br><br><span class="tablenote"><b>Note:</b> Sales-tax
        tables are only a
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: account-sales-tax.deletesalestax
      with:
        countryCode: tools.countryCode
        jurisdictionId: tools.jurisdictionId
      outputParameters:
      - type: object
        mapping: $.