einvoicewiz Generate API

The Generate API from einvoicewiz — 1 operation(s) for generate.

GitHub OpenAPI

Operations 1

POST /v1/generate Invoice JSON → validated EN 16931 CII XML (1 credit) #

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/einvoicewiz-com:einvoicewiz-com-generate-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

einvoicewiz-com-generate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: einvoicewiz e-invoice Generate API
  version: 1.0.0
  description: Generate and validate EN 16931 e-invoices (Factur-X / ZUGFeRD 2.x PDF/A-3, XRechnung 3.0) for the German and French mandates. Deterministic pipeline (no AI), Mustang rule engine, failed validations are never charged. Every passing file gets a permanent verification certificate. 20 free credits on signup, then €9 / 500 credits.
  contact:
    email: support@einvoicewiz.com
  termsOfService: https://einvoicewiz.com/terms
servers:
- url: https://einvoicewiz.com
tags:
- name: Generate
paths:
  /v1/generate:
    post:
      summary: Invoice JSON → validated EN 16931 CII XML (1 credit)
      security:
      - ApiKey: []
      parameters:
      - name: profile
        in: query
        schema:
          type: string
          enum:
          - en16931
          - xrechnung
          default: en16931
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Invoice'
      responses:
        '200':
          description: Validated XML + certificate
          content:
            application/json:
              schema:
                type: object
                properties:
                  xml:
                    type: string
                  profile:
                    type: string
                  validation:
                    type: object
                  verify:
                    $ref: '#/components/schemas/Verify'
                  credits_left:
                    type: integer
        '422':
          description: Generated XML failed validation — not charged; body lists violated rules
        '402':
          description: Out of credits
      tags:
      - Generate
      operationId: postV1Generate
      x-operation-id-source: derived
components:
  schemas:
    Verify:
      type: object
      properties:
        id:
          type: string
          example: EIW-3F9A1C2B7D0E
        url:
          type: string
          format: uri
    Invoice:
      type: object
      required:
      - invoice_number
      - issue_date
      - currency
      - seller
      - buyer
      - lines
      properties:
        doc_type:
          type: integer
          enum:
          - 380
          - 381
          - 384
          default: 380
          description: 380 invoice, 381 credit note, 384 correction
        invoice_number:
          type: string
        issue_date:
          type: string
          format: date
        due_date:
          type:
          - string
          - 'null'
          format: date
        delivery_date:
          type:
          - string
          - 'null'
          format: date
        currency:
          type: string
          example: EUR
        buyer_reference:
          type:
          - string
          - 'null'
          description: Leitweg-ID (BT-10). Required for XRechnung.
        order_reference:
          type:
          - string
          - 'null'
        seller:
          type: object
          required:
          - name
          - country
          properties:
            name:
              type: string
            line_one:
              type: string
            postcode:
              type: string
            city:
              type: string
            country:
              type: string
            vat_id:
              type: string
            tax_number:
              type: string
            contact_email:
              type: string
            contact_phone:
              type: string
            email:
              type: string
        buyer:
          type: object
          required:
          - name
          - country
          properties:
            name:
              type: string
            line_one:
              type: string
            postcode:
              type: string
            city:
              type: string
            country:
              type: string
            vat_id:
              type: string
            email:
              type: string
        payment:
          type: object
          properties:
            iban:
              type: string
            bic:
              type: string
            terms:
              type: string
        notes:
          type: array
          items:
            type: string
        prepaid:
          type: number
          default: 0
        exemption_reason:
          type:
          - string
          - 'null'
        lines:
          type: array
          minItems: 1
          items:
            type: object
            required:
            - name
            - qty
            - unit_price
            - vat_rate
            properties:
              name:
                type: string
              description:
                type: string
              qty:
                type: number
              unit:
                type: string
                enum:
                - piece
                - hour
                - day
                - kg
                - litre
                - month
                - km
                - lump
                - m2
                - m
                default: piece
              unit_price:
                type: number
              vat_rate:
                type: number
              vat_category:
                type: string
                enum:
                - S
                - Z
                - E
                - AE
                - K
                - G
                - O
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key