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

# Get Taxes

> Returns a list of all taxes for Mexico, including jurisdiction and agency details. Supports optional locale parameter for translated names and descriptions.



## OpenAPI

````yaml GET /api/mexico-payroll/taxes
openapi: 3.0.3
info:
  title: FluxPayroll API
  description: >-
    API for calculating gross-to-net payroll calculations across different
    countries. Currently supports Mexico with ISR, IMSS, INFONAVIT, and
    state-level payroll tax calculations.
  version: 2.0.0
  contact:
    name: FluxPayroll
    url: https://fluxpayroll.ai
servers:
  - url: https://api.staging.fluxpayroll.ai
    description: Staging
security:
  - apiKey: []
paths:
  /api/mexico-payroll/taxes:
    get:
      tags:
        - Mexico Payroll
      summary: Get all taxes for Mexico
      description: >-
        Returns a list of all taxes for Mexico, including jurisdiction and
        agency details. Supports optional locale parameter for translated names
        and descriptions.
      operationId: getMexicoTaxes
      parameters:
        - name: locale
          in: query
          required: false
          schema:
            type: string
            enum:
              - es-MX
              - en-US
              - en-MX
          description: >-
            Locale for translated names and descriptions. Defaults to Spanish
            (es-MX) if not specified.
      responses:
        '200':
          description: List of taxes retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TaxResponse'
        '400':
          description: Unsupported locale
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TaxResponse:
      type: object
      required:
        - key
        - name
        - description
        - paidBy
        - jurisdiction
        - levyingAgency
        - collectionAgency
        - levyingFrequency
        - depositFrequency
      properties:
        key:
          type: string
          description: Unique tax/contribution key
          example: MX_ISR
        name:
          type: string
          description: Display name of the tax (localized if locale is specified)
          example: Impuesto Sobre la Renta
        description:
          type: string
          description: Detailed description (localized if locale is specified)
          example: Impuesto sobre la renta para empleados
        paidBy:
          type: string
          enum:
            - EMPLOYEE
            - EMPLOYER
          description: Who is responsible for paying this tax/contribution
          example: EMPLOYEE
        jurisdiction:
          $ref: '#/components/schemas/TaxJurisdiction'
        levyingAgency:
          $ref: '#/components/schemas/TaxAgency'
        collectionAgency:
          $ref: '#/components/schemas/TaxAgency'
        levyingFrequency:
          type: string
          enum:
            - DAILY
            - WEEKLY
            - BIWEEKLY
            - SEMI_MONTHLY
            - MONTHLY
            - BIMONTHLY
            - QUARTERLY
            - SEMI_ANNUALLY
            - ANNUALLY
          description: How frequently this tax is levied
          example: MONTHLY
        depositFrequency:
          type: string
          enum:
            - DAILY
            - WEEKLY
            - BIWEEKLY
            - SEMI_MONTHLY
            - MONTHLY
            - BIMONTHLY
            - QUARTERLY
            - SEMI_ANNUALLY
            - ANNUALLY
          description: How frequently this tax must be deposited
          example: MONTHLY
        reportingCode:
          type: string
          description: Reporting code for this tax
          example: '001'
    ErrorResponse:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error code
          example: VALIDATION_ERROR
        message:
          type: string
          description: Human-readable error message
          example: Invalid input data provided
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                description: Field that caused the error
              message:
                type: string
                description: Specific error message for the field
    TaxJurisdiction:
      type: object
      required:
        - key
        - name
      properties:
        key:
          type: string
          description: Unique jurisdiction key
          example: MX
        name:
          type: string
          description: Display name of the jurisdiction
          example: Mexico
    TaxAgency:
      type: object
      required:
        - key
        - name
      properties:
        key:
          type: string
          description: Unique tax agency key
          example: MX_SAT
        name:
          type: string
          description: Display name of the tax agency
          example: Servicio de Administración Tributaria
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````