---
title: "List CFDIs"
description: "Lists CFDIs using the documented fiscal, lifecycle, date, and pagination filters without mixing other document families."
language: en
canonical_url: "https://exac.mx/docs/en/api/documents/cfdi/list-cfdis"
md_url: "https://exac.mx/docs/en/api/documents/cfdi/list-cfdis.md"
---

# List CFDIs

Lists CFDIs using the documented fiscal, lifecycle, date, and pagination filters without mixing other document families.

## Request

`GET /v1/cfdis`

- **Authorization:** One of these permissions is required: `invoices:read`, `employees:read`.

- **Environments:** Production and sandbox

- **Idempotency:** Not required

## Canonical machine contract

This fragment is generated from the canonical operation and Zod contracts used by the route.

```json
{
  "method": "GET",
  "path": "/v1/cfdis",
  "operation": {
    "operationId": "listCfdis",
    "tags": [
      "CFDI"
    ],
    "summary": "List CFDIs",
    "description": "Lists CFDIs using the documented fiscal, lifecycle, date, and pagination filters without mixing other document families.",
    "security": [
      {
        "bearerAuth": []
      }
    ],
    "parameters": [
      {
        "name": "direction",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "issued",
            "received"
          ],
          "description": "Filter by whether Exac issued or received the CFDI."
        }
      },
      {
        "name": "status",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "draft",
            "valid",
            "canceled"
          ],
          "description": "Filter by the current fiscal-document status."
        }
      },
      {
        "name": "dateFrom",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Include documents issued on or after this date."
        }
      },
      {
        "name": "dateTo",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "Include documents issued on or before this date."
        }
      },
      {
        "name": "query",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 1,
          "description": "Search by counterparty, UUID, or amount. Cannot be combined with dateFrom, dateTo, or outstanding."
        }
      },
      {
        "name": "cursor",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "minLength": 1,
          "description": "Opaque cursor returned by the previous page. Pass it back unchanged."
        }
      },
      {
        "name": "limit",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "description": "Number of CFDI documents to return, from 1 to 50."
        }
      },
      {
        "name": "kind",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "income",
            "credit_note",
            "transfer",
            "payroll",
            "payment_complement"
          ],
          "description": "Filter by the public CFDI kind: income, credit_note, transfer, payroll, or payment_complement."
        }
      },
      {
        "name": "paymentTiming",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "single_payment",
            "deferred_or_installments"
          ],
          "description": "Filter by immediate or deferred payment timing."
        }
      },
      {
        "name": "outstanding",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "const": "true",
          "description": "When true, return only CFDIs with an open balance."
        }
      }
    ],
    "responses": {
      "200": {
        "description": "Operation completed.",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CfdiSummary"
                  }
                },
                "pagination": {
                  "$ref": "#/components/schemas/Pagination"
                }
              },
              "required": [
                "data",
                "pagination"
              ],
              "additionalProperties": false
            },
            "examples": {
              "default": {
                "value": {
                  "data": [
                    {
                      "direction": "issued",
                      "status": "draft",
                      "archived": false,
                      "counterpartyName": "Estudio Jacaranda",
                      "total": {
                        "amount": 11600,
                        "currency": "MXN"
                      },
                      "documentRef": "cfdi:invoice-example",
                      "category": "cfdi",
                      "kind": "income",
                      "cfdiType": "I",
                      "payment": {
                        "timing": "deferred_or_installments",
                        "conditions": "Crédito a 30 días"
                      }
                    }
                  ],
                  "pagination": {
                    "nextCursor": null,
                    "hasMore": false
                  }
                }
              },
              "mayFullMonth": {
                "summary": "Issued income CFDIs, May (complete page)",
                "value": {
                  "data": [
                    {
                      "direction": "issued",
                      "status": "valid",
                      "archived": false,
                      "uuid": "00000000-0000-4000-8000-000000000002",
                      "counterpartyName": "Taller Nopal",
                      "total": {
                        "amount": 58000,
                        "currency": "MXN"
                      },
                      "documentRef": "cfdi:nopal-may",
                      "category": "cfdi",
                      "issuedLocalDateTime": "2026-05-10T10:00:00",
                      "kind": "income",
                      "cfdiType": "I",
                      "payment": {
                        "timing": "single_payment"
                      }
                    },
                    {
                      "direction": "issued",
                      "status": "valid",
                      "archived": false,
                      "uuid": "00000000-0000-4000-8000-000000000003",
                      "counterpartyName": "Estudio Jacaranda",
                      "total": {
                        "amount": 34800,
                        "currency": "MXN"
                      },
                      "documentRef": "cfdi:jacaranda-may",
                      "category": "cfdi",
                      "issuedLocalDateTime": "2026-05-12T10:00:00",
                      "kind": "income",
                      "cfdiType": "I",
                      "payment": {
                        "timing": "single_payment"
                      }
                    }
                  ],
                  "pagination": {
                    "nextCursor": null,
                    "hasMore": false
                  }
                }
              },
              "juneFullMonth": {
                "summary": "Issued income CFDIs, June (complete page)",
                "value": {
                  "data": [
                    {
                      "direction": "issued",
                      "status": "valid",
                      "archived": false,
                      "uuid": "00000000-0000-4000-8000-000000000004",
                      "counterpartyName": "Taller Nopal",
                      "total": {
                        "amount": 9280,
                        "currency": "MXN"
                      },
                      "documentRef": "cfdi:nopal-june",
                      "category": "cfdi",
                      "issuedLocalDateTime": "2026-06-10T10:00:00",
                      "kind": "income",
                      "cfdiType": "I",
                      "payment": {
                        "timing": "single_payment"
                      }
                    }
                  ],
                  "pagination": {
                    "nextCursor": null,
                    "hasMore": false
                  }
                }
              }
            }
          }
        }
      },
      "400": {
        "description": "Invalid request.\n\n`validation_error`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "401": {
        "description": "Missing or invalid credential.\n\n`unauthenticated`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          },
          "WWW-Authenticate": {
            "$ref": "#/components/headers/WWWAuthenticate"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "403": {
        "description": "The credential does not satisfy the required authorization. One of these permissions is required: `invoices:read`, `employees:read`.\n\n`forbidden`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          },
          "WWW-Authenticate": {
            "$ref": "#/components/headers/WWWAuthenticate"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "405": {
        "description": "Method not allowed.\n\n`method_not_allowed`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          },
          "Allow": {
            "$ref": "#/components/headers/Allow"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "429": {
        "description": "Too many requests.\n\n`rate_limited`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          },
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "500": {
        "description": "Internal server error.\n\n`internal`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "503": {
        "description": "Service temporarily unavailable.\n\n`provider_unavailable`",
        "headers": {
          "Request-Id": {
            "$ref": "#/components/headers/RequestId"
          },
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      }
    },
    "x-exac-environments": [
      "production",
      "sandbox"
    ]
  },
  "components": {
    "schemas": {
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ProgrammaticError"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "ProgrammaticError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "validation_error",
              "unauthenticated",
              "forbidden",
              "not_found",
              "method_not_allowed",
              "conflict",
              "idempotency_conflict",
              "operation_in_progress",
              "recovery_required",
              "rate_limited",
              "provider_unavailable",
              "internal"
            ],
            "description": "Recommended action by code:\n\n- `validation_error` — Correct each details.issues entry using its path and stable issue code.\n- `unauthenticated` — Provide a valid API key or OAuth access token.\n- `forbidden` — Use a credential with the required permission.\n- `not_found` — Check the organization-scoped resource identifier.\n- `method_not_allowed` — Use the documented HTTP method.\n- `conflict` — Refresh the resource and resolve its current state.\n- `idempotency_conflict` — Use a new idempotency key for a changed request.\n- `operation_in_progress` — Wait for Retry-After, then repeat the exact request.\n- `recovery_required` — Do not retry automatically; reconcile the provider outcome.\n- `rate_limited` — Wait for Retry-After before retrying.\n- `provider_unavailable` — Retry only when the response marks the failure as retryable.\n- `internal` — Retry later and contact support if the error persists."
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "object",
            "properties": {
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "path": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "path",
                    "message"
                  ],
                  "additionalProperties": false
                }
              },
              "retryable": {
                "type": "boolean"
              },
              "retryAfterSeconds": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "additionalProperties": false
          },
          "status": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "code",
          "message",
          "status"
        ],
        "additionalProperties": false
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "required": [
          "nextCursor",
          "hasMore"
        ],
        "additionalProperties": false
      },
      "CfdiSummary": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string",
                "enum": [
                  "issued",
                  "received"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "valid",
                  "canceled"
                ]
              },
              "archived": {
                "type": "boolean"
              },
              "uuid": {
                "type": "string"
              },
              "counterpartyName": {
                "type": "string"
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "settlementTerms": {
                "type": "object",
                "properties": {
                  "installmentCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  "firstDue": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "transaction_date"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "months_after_transaction"
                          },
                          "months": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          }
                        },
                        "required": [
                          "kind",
                          "months"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "fixed_date"
                          },
                          "date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "date"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "recurrence": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "anchor_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "day_of_month"
                          },
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                          }
                        },
                        "required": [
                          "kind",
                          "day"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "last_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "installmentCount",
                  "firstDue",
                  "recurrence"
                ],
                "additionalProperties": false
              },
              "receivablePlanId": {
                "type": "string"
              },
              "documentRef": {
                "type": "string",
                "pattern": "^cfdi:.+$"
              },
              "category": {
                "type": "string",
                "const": "cfdi"
              },
              "issuedLocalDateTime": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,9}))?$"
              },
              "inventoryImpact": {
                "type": "object",
                "properties": {
                  "locationId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "deducted",
                      "reversed"
                    ]
                  },
                  "appliedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "reversedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              "kind": {
                "type": "string",
                "const": "income"
              },
              "cfdiType": {
                "type": "string",
                "const": "I"
              },
              "payment": {
                "type": "object",
                "properties": {
                  "timing": {
                    "type": "string",
                    "enum": [
                      "single_payment",
                      "deferred_or_installments"
                    ]
                  },
                  "formCode": {
                    "type": "string"
                  },
                  "methodCode": {
                    "type": "string"
                  },
                  "dueDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "remainingBalance": {
                    "type": "number"
                  },
                  "effectiveRemainingBalance": {
                    "type": "number"
                  },
                  "manualAdjustmentNeedsReview": {
                    "type": "boolean"
                  },
                  "conditions": {
                    "type": "string"
                  }
                },
                "required": [
                  "timing"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "direction",
              "status",
              "archived",
              "total",
              "documentRef",
              "category",
              "kind",
              "cfdiType"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string",
                "enum": [
                  "issued",
                  "received"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "valid",
                  "canceled"
                ]
              },
              "archived": {
                "type": "boolean"
              },
              "uuid": {
                "type": "string"
              },
              "counterpartyName": {
                "type": "string"
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "settlementTerms": {
                "type": "object",
                "properties": {
                  "installmentCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  "firstDue": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "transaction_date"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "months_after_transaction"
                          },
                          "months": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          }
                        },
                        "required": [
                          "kind",
                          "months"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "fixed_date"
                          },
                          "date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "date"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "recurrence": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "anchor_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "day_of_month"
                          },
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                          }
                        },
                        "required": [
                          "kind",
                          "day"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "last_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "installmentCount",
                  "firstDue",
                  "recurrence"
                ],
                "additionalProperties": false
              },
              "receivablePlanId": {
                "type": "string"
              },
              "documentRef": {
                "type": "string",
                "pattern": "^cfdi:.+$"
              },
              "category": {
                "type": "string",
                "const": "cfdi"
              },
              "issuedLocalDateTime": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,9}))?$"
              },
              "inventoryImpact": {
                "type": "object",
                "properties": {
                  "locationId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "deducted",
                      "reversed"
                    ]
                  },
                  "appliedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "reversedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              "kind": {
                "type": "string",
                "const": "credit_note"
              },
              "cfdiType": {
                "type": "string",
                "const": "E"
              },
              "payment": {
                "type": "object",
                "properties": {
                  "timing": {
                    "type": "string",
                    "enum": [
                      "single_payment",
                      "deferred_or_installments"
                    ]
                  },
                  "formCode": {
                    "type": "string"
                  },
                  "methodCode": {
                    "type": "string"
                  },
                  "dueDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "remainingBalance": {
                    "type": "number"
                  },
                  "effectiveRemainingBalance": {
                    "type": "number"
                  },
                  "manualAdjustmentNeedsReview": {
                    "type": "boolean"
                  },
                  "conditions": {
                    "type": "string"
                  }
                },
                "required": [
                  "timing"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "direction",
              "status",
              "archived",
              "total",
              "documentRef",
              "category",
              "kind",
              "cfdiType"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string",
                "enum": [
                  "issued",
                  "received"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "valid",
                  "canceled"
                ]
              },
              "archived": {
                "type": "boolean"
              },
              "uuid": {
                "type": "string"
              },
              "counterpartyName": {
                "type": "string"
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "settlementTerms": {
                "type": "object",
                "properties": {
                  "installmentCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  "firstDue": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "transaction_date"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "months_after_transaction"
                          },
                          "months": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          }
                        },
                        "required": [
                          "kind",
                          "months"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "fixed_date"
                          },
                          "date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "date"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "recurrence": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "anchor_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "day_of_month"
                          },
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                          }
                        },
                        "required": [
                          "kind",
                          "day"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "last_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "installmentCount",
                  "firstDue",
                  "recurrence"
                ],
                "additionalProperties": false
              },
              "receivablePlanId": {
                "type": "string"
              },
              "documentRef": {
                "type": "string",
                "pattern": "^cfdi:.+$"
              },
              "category": {
                "type": "string",
                "const": "cfdi"
              },
              "issuedLocalDateTime": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,9}))?$"
              },
              "inventoryImpact": {
                "type": "object",
                "properties": {
                  "locationId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "deducted",
                      "reversed"
                    ]
                  },
                  "appliedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "reversedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              "kind": {
                "type": "string",
                "const": "transfer"
              },
              "cfdiType": {
                "type": "string",
                "const": "T"
              }
            },
            "required": [
              "direction",
              "status",
              "archived",
              "total",
              "documentRef",
              "category",
              "kind",
              "cfdiType"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string",
                "enum": [
                  "issued",
                  "received"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "valid",
                  "canceled"
                ]
              },
              "archived": {
                "type": "boolean"
              },
              "uuid": {
                "type": "string"
              },
              "counterpartyName": {
                "type": "string"
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "settlementTerms": {
                "type": "object",
                "properties": {
                  "installmentCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  "firstDue": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "transaction_date"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "months_after_transaction"
                          },
                          "months": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          }
                        },
                        "required": [
                          "kind",
                          "months"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "fixed_date"
                          },
                          "date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "date"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "recurrence": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "anchor_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "day_of_month"
                          },
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                          }
                        },
                        "required": [
                          "kind",
                          "day"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "last_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "installmentCount",
                  "firstDue",
                  "recurrence"
                ],
                "additionalProperties": false
              },
              "receivablePlanId": {
                "type": "string"
              },
              "documentRef": {
                "type": "string",
                "pattern": "^cfdi:.+$"
              },
              "category": {
                "type": "string",
                "const": "cfdi"
              },
              "issuedLocalDateTime": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,9}))?$"
              },
              "inventoryImpact": {
                "type": "object",
                "properties": {
                  "locationId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "deducted",
                      "reversed"
                    ]
                  },
                  "appliedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "reversedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              "kind": {
                "type": "string",
                "const": "payroll"
              },
              "cfdiType": {
                "type": "string",
                "const": "N"
              },
              "employeeId": {
                "type": "string"
              }
            },
            "required": [
              "direction",
              "status",
              "archived",
              "total",
              "documentRef",
              "category",
              "kind",
              "cfdiType"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string",
                "enum": [
                  "issued",
                  "received"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "valid",
                  "canceled"
                ]
              },
              "archived": {
                "type": "boolean"
              },
              "uuid": {
                "type": "string"
              },
              "counterpartyName": {
                "type": "string"
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "settlementTerms": {
                "type": "object",
                "properties": {
                  "installmentCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  "firstDue": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "transaction_date"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "months_after_transaction"
                          },
                          "months": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 60
                          }
                        },
                        "required": [
                          "kind",
                          "months"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "fixed_date"
                          },
                          "date": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "date"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "recurrence": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "anchor_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "day_of_month"
                          },
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31
                          }
                        },
                        "required": [
                          "kind",
                          "day"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "last_day"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "installmentCount",
                  "firstDue",
                  "recurrence"
                ],
                "additionalProperties": false
              },
              "receivablePlanId": {
                "type": "string"
              },
              "documentRef": {
                "type": "string",
                "pattern": "^cfdi:.+$"
              },
              "category": {
                "type": "string",
                "const": "cfdi"
              },
              "issuedLocalDateTime": {
                "type": "string",
                "pattern": "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,9}))?$"
              },
              "inventoryImpact": {
                "type": "object",
                "properties": {
                  "locationId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "deducted",
                      "reversed"
                    ]
                  },
                  "appliedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "reversedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                },
                "required": [
                  "status"
                ],
                "additionalProperties": false
              },
              "kind": {
                "type": "string",
                "const": "payment_complement"
              },
              "cfdiType": {
                "type": "string",
                "const": "P"
              }
            },
            "required": [
              "direction",
              "status",
              "archived",
              "total",
              "documentRef",
              "category",
              "kind",
              "cfdiType"
            ],
            "additionalProperties": false
          }
        ]
      },
      "Money": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "additionalProperties": false
      }
    }
  }
}
```

[OpenAPI 3.1](/openapi.json)

## Equivalent MCP tools

- [`search_documents`](/docs/en/mcp/tools/search_documents.md)

Complete documentation: https://exac.mx/docs/en.md
Agent documentation index: https://exac.mx/docs/en/llms.txt
