> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cadanapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Tax Ruleset Changelog

> Returns what changed between the version you are on and the current one for a country, including any tax field requirements that changed. Without `fromVersion` it returns the latest release only.



## OpenAPI

````yaml /openapi/global-tax.yaml get /v1/tax/changelog
openapi: 3.0.0
info:
  title: Global Tax Engine
  version: 1.0.0
  description: API module for calculating taxes globally
  termsOfService: https://cadanapay.com/terms-and-conditions
  contact:
    email: api@cadanapay.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.cadanapay.com
    description: Prod Server
  - url: https://dev-api.cadanapay.com
    description: Dev Server
security:
  - Authorization: []
tags:
  - name: Tax Calculator
    description: APIs for tax calculations
paths:
  /v1/tax/changelog:
    get:
      tags:
        - Tax Calculator
      summary: Get Tax Ruleset Changelog
      description: >-
        Returns what changed between the version you are on and the current one
        for a country, including any tax field requirements that changed.
        Without `fromVersion` it returns the latest release only.
      operationId: getTaxChangelog
      parameters:
        - name: country
          in: query
          required: true
          schema:
            type: string
        - name: fromVersion
          in: query
          required: false
          description: The version you are currently on, for example `v2.0.0`.
          schema:
            type: string
        - $ref: '#/components/parameters/XMultiTenantKey'
      responses:
        '200':
          description: Changes between the given version and the current one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaxChangelogResponse'
              example:
                country: mx
                fromVersion: v2.0.0
                latestVersion: v2.1.0
                changeType: minor
                upToDate: false
                actionRequired: false
        '400':
          $ref: '#/components/responses/BadRequestError'
      security:
        - Authorization: []
components:
  parameters:
    XMultiTenantKey:
      name: X-MultiTenantKey
      in: header
      required: false
      schema:
        type: string
      description: >-
        Required when using a Platform API token. The tenant key identifying
        which business to operate on.
  schemas:
    TaxChangelogResponse:
      type: object
      properties:
        country:
          type: string
        fromVersion:
          type: string
        latestVersion:
          type: string
        changeType:
          type: string
          description: Whether the change was major, minor or a patch.
        upToDate:
          type: boolean
          description: True when you are already on the current version.
        actionRequired:
          type: boolean
          description: True when the tax field requirements changed.
    BadRequestError:
      description: Bad input provided by client
      allOf:
        - $ref: '#/components/schemas/Error'
        - type: object
          properties:
            params:
              description: A map for meta data around the error that occurred
              type: object
      example:
        code: invalid_request_body
        message: The request body provided is not valid
        params:
          field: Value is invalid.
    Error:
      type: object
      properties:
        code:
          description: A machine parsable error code
          type: string
          enum:
            - invalid_request_body
            - resource_not_found
            - forbidden
            - internal_error
        message:
          description: A human readable message describing the error
          type: string
  responses:
    BadRequestError:
      description: Bad input provided by client
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BadRequestError'
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      bearerFormat: API_SECRET_KEY

````