# Facture Factur-X vers JSON

**Use case:** 

Transformez une facture PDF Factur-X ou ZUGFeRD en JSON structuré : vendeur, acheteur, numéros, dates, lignes, totaux HT, TVA et TTC. Lecture exacte des données embarquées, sans modèle de langage. Remplacez l'URL d'exemple par vos factures.

## Input

```json
{
  "pdfUrls": [
    "https://raw.githubusercontent.com/akretion/factur-x/master/tests/fixtures/pdf/invoice_EN16931.pdf"
  ],
  "checkSupplier": false,
  "maxPdfMb": 10,
  "maxPages": 20,
  "maxItems": 100,
  "maxConcurrency": 2
}
```

## Output

```json
{
  "index": {
    "label": "N°",
    "format": "integer"
  },
  "statut": {
    "label": "Statut",
    "format": "string"
  },
  "methode": {
    "label": "Lecture",
    "format": "string"
  },
  "profil_facturx": {
    "label": "Profil Factur-X",
    "format": "string"
  },
  "facture.numero": {
    "label": "Numéro",
    "format": "text"
  },
  "facture.date_emission": {
    "label": "Date",
    "format": "text"
  },
  "facture.vendeur": {
    "label": "Vendeur",
    "format": "object"
  },
  "facture.total_ht": {
    "label": "HT",
    "format": "number"
  },
  "facture.total_tva": {
    "label": "TVA",
    "format": "number"
  },
  "facture.total_ttc": {
    "label": "TTC",
    "format": "number"
  },
  "champs_non_trouves": {
    "label": "Champs non trouvés",
    "format": "array"
  },
  "controles": {
    "label": "Contrôles",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Factures France : PDF et Factur-X vers JSON, avec contrôles Actor is ready to run with the inputs already set for "Facture Factur-X vers JSON". [Sign up or log in](https://console.apify.com/create-task-from-example/Db02dfQT8HDJFjWlv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Facture Factur-X vers JSON" task

The Factures France : PDF et Factur-X vers JSON, avec contrôles Actor will start running based on the input automatically. You can also change all the input fields, like liens vers des factures pdf, contrôler aussi le vendeur (siren, tva, bodacc), and more, to match your specific use case.

### 3. Receive the "Facture Factur-X vers JSON" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as n°, statut, lecture, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Facture Factur-X vers JSON" task via API](https://apify.com/geckostar/factures-france-pdf-json.md).

## About this Actor

This example demonstrates how to use [Factures France : PDF et Factur-X vers JSON, avec contrôles](https://apify.com/geckostar/factures-france-pdf-json.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/geckostar/factures-france-pdf-json.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/geckostar/factures-france-pdf-json.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
