# Zapier — Factur-X by InvoiceXML Integrations
> zapier.com/apps/factur-x-by-invoicexml/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Factur-X by InvoiceXML is an e-invoice automation: create, transform, validate, and extract Factur-X PDFs (PDF/A-3b + EN 16931 CII).

- App slug: factur-x-by-invoicexml
- Operations published here: 10 (10 functions)

## Authentication
Zapier connects to Factur-X by InvoiceXML via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection factur-x-by-invoicexml
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/factur-x-by-invoicexml/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Factur-X by InvoiceXML through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · convertCiiToFacturx`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "factur-x-by-invoicexml", owner: "me" });

const { data } = await zapier.runAction({
  app: "factur-x-by-invoicexml",
  actionType: "write",
  action: "convertCiiToFacturx",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action factur-x-by-invoicexml write convertCiiToFacturx \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Factur-X by InvoiceXML's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "factur-x-by-invoicexml" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions factur-x-by-invoicexml --page-size 50 --max-items 200 --json
```

### Functions (10)

Functions change something in Factur-X by InvoiceXML.

#### Convert CII XML to Factur-X
Converts a CII XML invoice into a Factur-X compliant PDF/A-3 with the XML embedded. The API generates a visual PDF rendering of the invoice and packages it with the source CII XML.

- Type: write · Key: `convertCiiToFacturx`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "convertCiiToFacturx" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write convertCiiToFacturx`

#### Convert Factur-X PDF to CII
Extracts the embedded CII (UN/CEFACT Cross Industry Invoice) XML from a Factur-X PDF and returns it as a standalone XML file.

- Type: write · Key: `convertFacturxToCii`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "convertFacturxToCii" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write convertFacturxToCii`

#### Convert Factur-X PDF to UBL
Extracts the embedded CII XML from a Factur-X PDF and converts it to UBL (Universal Business Language) XML.

- Type: write · Key: `convertFacturxToUbl`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "convertFacturxToUbl" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write convertFacturxToUbl`

#### Convert UBL XML to Factur-X
Converts a UBL XML invoice into a Factur-X compliant PDF/A-3. The API maps UBL to CII, generates a visual PDF rendering, and embeds the CII XML in the PDF/A-3 container.

- Type: write · Key: `convertUblToFacturx`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "convertUblToFacturx" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write convertUblToFacturx`

#### Create Factur-X Invoice
Builds a Factur-X invoice from structured header, party, payment, and line-item data, then returns a ready-to-deliver PDF/A-3b file.

- Type: write · Key: `createFacturx`
- Requires: invoiceNumber, issueDate, currency, sellerName, sellerStreet, sellerPostcode, sellerCity, sellerCountry, buyerName, buyerStreet, buyerPostcode, buyerCity, buyerCountry, iban, paymentMeansCode
- Optional: showAdvanced, sellerTaxId, sellerLegalId, buyerTaxId, buyerLegalId
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "createFacturx" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write createFacturx`

#### Embed XML Into PDF (Factur-X)
Takes a PDF and a CII XML and produces a Factur-X compliant PDF/A-3 with the XML attached as factur-x.xml. Use this when you already have both the visual PDF and the structured XML of an invoice and just need the hybrid wrapper.

- Type: write · Key: `embedFacturx`
- Requires: pdf, xml
- Optional: pdfFilename, xmlFilename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "embedFacturx" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write embedFacturx`

#### Extract Invoice JSON
Pulls invoice fields from a PDF into structured JSON, preferring embedded Factur-X XML when present and falling back to intelligent extraction when not.

- Type: write · Key: `extractJson`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "extractJson" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write extractJson`

#### Extract Invoice XML
Retrieves machine-readable invoice XML from a PDF, returning embedded Factur-X XML directly or generating compliant XML when none is embedded.

- Type: write · Key: `extractXml`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "extractXml" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write extractXml`

#### Render CII as PDF
Renders a CII (UN/CEFACT Cross Industry Invoice) XML document into a human-readable PDF. The output is a visual PDF, not a Factur-X hybrid file.

- Type: write · Key: `renderCiiToPdf`
- Requires: file
- Optional: filename, language
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "renderCiiToPdf" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write renderCiiToPdf`

#### Validate Factur-X Invoice
Checks whether a Factur-X invoice is structurally and semantically valid, including schema status, conformance level, and rule-level issues.

- Type: write · Key: `validateFacturx`
- Requires: file
- Optional: filename
- SDK: `runAction({ app: "factur-x-by-invoicexml", actionType: "write", action: "validateFacturx" })`
- CLI: `npx zapier-sdk run-action factur-x-by-invoicexml write validateFacturx`

## Popular integrations
- [Factur-X by InvoiceXML + monday.com](zapier.com/apps/factur-x-by-invoicexml/integrations/monday.md)
- [Factur-X by InvoiceXML + Airtable](zapier.com/apps/factur-x-by-invoicexml/integrations/airtable.md)
- [Factur-X by InvoiceXML + ActiveCampaign](zapier.com/apps/factur-x-by-invoicexml/integrations/activecampaign.md)
- [Factur-X by InvoiceXML + YouTube](zapier.com/apps/factur-x-by-invoicexml/integrations/youtube.md)

## Links
- Full app page: zapier.com/apps/factur-x-by-invoicexml/integrations
- MCP: zapier.com/mcp/factur-x-by-invoicexml
- SDK: npmjs.com/package/@zapier/zapier-sdk