Tlaloc CFDI API

SAT CFDI status, query, issue and cancel.

GitHub OpenAPI

Operations 3

POST /v1/cfdi/query Consultar CFDIs (emitidas o recibidas) #
GET /v1/cfdi/query/{request_id} Resultado de una consulta #
GET /v1/cfdi/status/{uuid} Consulta sincrónica del estado de un CFDI (servicio público SAT) #

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/tlaloc-sh:tlaloc-sh-cfdi-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

tlaloc-sh-cfdi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mexico CFDI API
  description: 'Mexican data services — ZIP codes, phone numbers, CURP/RFC validation, Banxico CEP payment proofs, CFDI (status/query/issue/cancel), and search over the Diario Oficial de la Federación (DOF).


    Authenticate every `/v1` call with `Authorization: Bearer `. Usage is billed per operation, only on success — see the pricing page for rates.'
  version: 1.0.0
servers:
- url: /mx
tags:
- name: CFDI
  description: SAT CFDI status, query, issue and cancel.
paths:
  /v1/cfdi/query:
    post:
      tags:
      - CFDI
      summary: Consultar CFDIs (emitidas o recibidas)
      operationId: query_v1_cfdi_query_post
      security:
      - HTTPBearer: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CFDIQueryRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CFDIIssueAccepted'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/cfdi/query/{request_id}:
    get:
      tags:
      - CFDI
      summary: Resultado de una consulta
      operationId: query_status_v1_cfdi_query__request_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: integer
          title: Request Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CFDIQueryResultResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/cfdi/status/{uuid}:
    get:
      tags:
      - CFDI
      summary: Consulta sincrónica del estado de un CFDI (servicio público SAT)
      description: 'Direct call to ``ConsultaCFDIService.svc`` — no captcha, no auth.


        Para una respuesta autoritativa el SAT requiere los 4 datos

        (rfc_emisor, rfc_receptor, total, uuid). Sin ellos retorna ''No Encontrado''.'
      operationId: cfdi_status_sync_v1_cfdi_status__uuid__get
      security:
      - HTTPBearer: []
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          minLength: 36
          maxLength: 36
          title: Uuid
      - name: rfc_emisor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Rfc Emisor
      - name: rfc_receptor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Rfc Receptor
      - name: total
        in: query
        required: false
        schema:
          anyOf:
          - type: number
          - type: 'null'
          title: Total
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CFDIStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CFDIInfo:
      properties:
        uuid:
          type: string
          title: Uuid
        flujo:
          type: string
          title: Flujo
        fecha:
          anyOf:
          - type: string
          - type: 'null'
          title: Fecha
        rfc_emisor:
          anyOf:
          - type: string
          - type: 'null'
          title: Rfc Emisor
        nombre_emisor:
          anyOf:
          - type: string
          - type: 'null'
          title: Nombre Emisor
        rfc_receptor:
          anyOf:
          - type: string
          - type: 'null'
          title: Rfc Receptor
        nombre_receptor:
          anyOf:
          - type: string
          - type: 'null'
          title: Nombre Receptor
        tipo:
          anyOf:
          - type: string
          - type: 'null'
          title: Tipo
        estado:
          anyOf:
          - type: string
          - type: 'null'
          title: Estado
        total:
          anyOf:
          - type: number
          - type: 'null'
          title: Total
        moneda:
          anyOf:
          - type: string
          - type: 'null'
          title: Moneda
      type: object
      required:
      - uuid
      - flujo
      title: CFDIInfo
      description: Un CFDI individual del listado.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CFDIStatusResponse:
      properties:
        uuid:
          type: string
          title: Uuid
        estado:
          type: string
          title: Estado
          description: Vigente | Cancelado | No Encontrado
        es_cancelable:
          anyOf:
          - type: string
          - type: 'null'
          title: Es Cancelable
        estatus_cancelacion:
          anyOf:
          - type: string
          - type: 'null'
          title: Estatus Cancelacion
        codigo_estatus:
          anyOf:
          - type: string
          - type: 'null'
          title: Codigo Estatus
        raw:
          anyOf:
          - type: string
          - type: 'null'
          title: Raw
          description: Raw SOAP envelope for debugging
      type: object
      required:
      - uuid
      - estado
      title: CFDIStatusResponse
      description: GET /v1/cfdi/status/{uuid} synchronous response.
    CFDIIssueAccepted:
      properties:
        request_id:
          type: integer
          title: Request Id
        status:
          type: string
          title: Status
        op:
          type: string
          title: Op
      type: object
      required:
      - request_id
      - status
      - op
      title: CFDIIssueAccepted
      description: 202 Accepted response for issue/cancel/query.
    CFDIQueryResultResponse:
      properties:
        id:
          type: integer
          title: Id
        op:
          type: string
          title: Op
          default: query
        status:
          type: string
          title: Status
        processing_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Processing Status
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
        retry_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Retry Reason
        retry_count:
          type: integer
          title: Retry Count
          default: 0
        cfdis:
          anyOf:
          - items:
              $ref: '#/components/schemas/CFDIInfo'
            type: array
          - type: 'null'
          title: Cfdis
        total:
          anyOf:
          - type: integer
          - type: 'null'
          title: Total
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
      type: object
      required:
      - id
      - status
      title: CFDIQueryResultResponse
      description: GET /v1/cfdi/query/{id} response.
    CFDIQueryRequest:
      properties:
        flujo:
          type: string
          pattern: ^(emitidas|recibidas)$
          title: Flujo
        desde:
          anyOf:
          - type: string
          - type: 'null'
          title: Desde
          description: YYYY-MM-DD (sólo emitidas)
        hasta:
          anyOf:
          - type: string
          - type: 'null'
          title: Hasta
          description: YYYY-MM-DD (sólo emitidas)
        anio:
          anyOf:
          - type: integer
            maximum: 2100.0
            minimum: 2000.0
          - type: 'null'
          title: Anio
        mes:
          anyOf:
          - type: integer
            maximum: 12.0
            minimum: 1.0
          - type: 'null'
          title: Mes
        dia:
          anyOf:
          - type: integer
            maximum: 31.0
            minimum: 1.0
          - type: 'null'
          title: Dia
        uuid:
          anyOf:
          - type: string
            maxLength: 36
            minLength: 36
          - type: 'null'
          title: Uuid
        rfc_receptor:
          anyOf:
          - type: string
            maxLength: 13
            minLength: 12
          - type: 'null'
          title: Rfc Receptor
        rfc_tercero:
          anyOf:
          - type: string
            maxLength: 13
            minLength: 12
          - type: 'null'
          title: Rfc Tercero
        estado:
          type: string
          pattern: ^(todos|vigente|cancelado)$
          title: Estado
          default: todos
        complemento:
          anyOf:
          - type: string
          - type: 'null'
          title: Complemento
        descargar_xml:
          type: boolean
          title: Descargar Xml
          description: Si true, descarga XMLs además de metadata
          default: false
      type: object
      required:
      - flujo
      title: CFDIQueryRequest
      description: POST /v1/cfdi/query body.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer