{
  "x402Version": 2,
  "id": 35727,
  "slug": "35727",
  "resource": "https://agentsvc.io/api/v1/proxy/invoice-extract",
  "description": "Invoice data extraction for accounting agents: PDF, photo or XRechnung / ZUGFeRD / Factur-X XML to JSON (number, dates, seller and buyer with VAT ID, line items, tax per rate, totals, IBAN, payment terms). E-invoices are read exactly from the embedded XML, without AI; plain PDFs and photos by Claude Haiku 5.5. Every result is checked: totals add up, seller VAT ID in EU VIES, IBAN and BIC. Says whether the file is a real EN 16931 e-invoice. Up to 15 MB.",
  "type": "http",
  "serviceName": "Invoice Extraction PDF E-Invoice",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
  "resourceType": "Payments",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "buyer": {
                "type": "object"
              },
              "buyer_reference": {
                "type": "string"
              },
              "checks": {
                "type": "object"
              },
              "currency": {
                "type": "string"
              },
              "delivery_date": {
                "type": "string"
              },
              "due_date": {
                "type": "string"
              },
              "e_invoice": {
                "type": "object"
              },
              "extracted_at": {
                "type": "string"
              },
              "invoice_number": {
                "type": "string"
              },
              "issue_date": {
                "type": "string"
              },
              "lines": {
                "type": "array"
              },
              "model": {},
              "notes": {
                "type": "array"
              },
              "order_reference": {},
              "payment": {
                "type": "object"
              },
              "seller": {
                "type": "object"
              },
              "service_period": {},
              "source": {
                "type": "string"
              },
              "tax_breakdown": {
                "type": "array"
              },
              "totals": {
                "type": "object"
              },
              "type": {
                "type": "string"
              },
              "type_code": {
                "type": "string"
              },
              "warnings": {
                "type": "array"
              }
            },
            "required": [
              "source",
              "e_invoice",
              "invoice_number",
              "seller",
              "lines",
              "totals",
              "checks",
              "warnings"
            ],
            "type": "object"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "data",
      "info": {
        "input": {
          "body": {
            "pdf_url": "https://agentsvc.io/samples/zugferd-invoice.pdf"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "buyer": {
                "city": "Bremen",
                "country": "DE",
                "email": "buchhaltung@bautraeger-nord.de",
                "name": "Bauträger Nord GmbH & Co. KG",
                "postal_code": "28195",
                "street": "Am Hafen 5",
                "tax_number": null,
                "vat_id": "DE987654321"
              },
              "buyer_reference": "RE-2026-0001",
              "checks": {
                "arithmetic": {
                  "issues": [],
                  "ok": true
                },
                "iban": {
                  "bank": "Deutsche Kreditbank Berlin",
                  "bic_matches": true,
                  "checked": true,
                  "reason": null,
                  "valid": true
                },
                "seller_vat_id": {
                  "checked": true,
                  "registered_name": null,
                  "source": "EU VIES",
                  "valid": false
                }
              },
              "currency": "EUR",
              "delivery_date": "2026-10-08",
              "due_date": "2026-10-24",
              "e_invoice": {
                "format": "ZUGFeRD / Factur-X EN 16931",
                "is_e_invoice": true,
                "note": "Structured e-invoice (EN 16931). Amounts were read exactly from the XML, no A...",
                "specification": "urn:cen.eu:en16931:2017"
              },
              "extracted_at": "2026-10-10T19:59:48.740Z",
              "invoice_number": "RE-2026-0001",
              "issue_date": "2026-10-10",
              "lines": [
                {
                  "description": "Malerarbeiten Treppenhaus: Wände und Decken, 2x gestrichen",
                  "net_amount": 725,
                  "quantity": 12.5,
                  "tax_category": "S",
                  "tax_rate": 19,
                  "unit": "HUR",
                  "unit_price": 58
                }
              ],
              "model": null,
              "notes": [
                "Vielen Dank für Ihren Auftrag & die gute Zusammenarbeit <3"
              ],
              "order_reference": null,
              "payment": {
                "account_name": "Malerbetrieb Muster GmbH",
                "bic": "BYLADEM1001",
                "iban": "DE02120300000000202051",
                "means": "SEPA credit transfer",
                "reference": "Rechnung RE-2026-0001",
                "terms": "Zahlbar innerhalb von 14 Tagen ohne Abzug."
              },
              "seller": {
                "city": "Hamburg",
                "country": "DE",
                "email": "rechnung@maler-muster.de",
                "name": "Malerbetrieb Muster GmbH",
                "postal_code": "20095",
                "street": "Hauptstraße 12",
                "tax_number": "22/815/08150",
                "vat_id": "DE123456789"
              },
              "service_period": null,
              "source": "pdf_embedded_xml",
              "tax_breakdown": [
                {
                  "amount": 166.24,
                  "base": 874.97,
                  "category": "S",
                  "exemption_reason": null,
                  "rate": 19
                }
              ],
              "totals": {
                "gross": 1067.21,
                "net": 899.27,
                "payable": 1067.21,
                "prepaid": null,
                "tax": 167.94
              },
              "type": "invoice",
              "type_code": "380",
              "warnings": [
                "Seller VAT ID is not valid in VIES"
              ]
            },
            "success": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "image_base64": {
                    "description": "Photo as base64",
                    "type": "string"
                  },
                  "image_url": {
                    "description": "Photo or scan URL",
                    "type": "string"
                  },
                  "pdf_base64": {
                    "description": "PDF as base64",
                    "type": "string"
                  },
                  "pdf_url": {
                    "description": "PDF URL; or send one of the other inputs",
                    "type": "string"
                  },
                  "validate": {
                    "default": true,
                    "description": "Check VAT ID and IBAN",
                    "type": "boolean"
                  },
                  "xml": {
                    "description": "XRechnung/ZUGFeRD XML text",
                    "type": "string"
                  },
                  "xml_url": {
                    "description": "XML URL",
                    "type": "string"
                  }
                },
                "required": []
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "buyer": {
                        "type": "object"
                      },
                      "buyer_reference": {
                        "type": "string"
                      },
                      "checks": {
                        "type": "object"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "delivery_date": {
                        "type": "string"
                      },
                      "due_date": {
                        "type": "string"
                      },
                      "e_invoice": {
                        "type": "object"
                      },
                      "extracted_at": {
                        "type": "string"
                      },
                      "invoice_number": {
                        "type": "string"
                      },
                      "issue_date": {
                        "type": "string"
                      },
                      "lines": {
                        "type": "array"
                      },
                      "model": {},
                      "notes": {
                        "type": "array"
                      },
                      "order_reference": {},
                      "payment": {
                        "type": "object"
                      },
                      "seller": {
                        "type": "object"
                      },
                      "service_period": {},
                      "source": {
                        "type": "string"
                      },
                      "tax_breakdown": {
                        "type": "array"
                      },
                      "totals": {
                        "type": "object"
                      },
                      "type": {
                        "type": "string"
                      },
                      "type_code": {
                        "type": "string"
                      },
                      "warnings": {
                        "type": "array"
                      }
                    },
                    "required": [
                      "source",
                      "e_invoice",
                      "invoice_number",
                      "seller",
                      "lines",
                      "totals",
                      "checks",
                      "warnings"
                    ],
                    "type": "object"
                  },
                  "success": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "success",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "invoice-parsing",
        "e-invoice",
        "xrechnung",
        "zugferd",
        "accounting",
        "invoice-ocr",
        "receipt-parsing",
        "factur-x",
        "accounts-payable",
        "document-extraction"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_q6wi3opd"
      }
    }
  },
  "tags": [
    "invoice-parsing",
    "e-invoice",
    "xrechnung",
    "zugferd",
    "accounting",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "agentsvc.io",
  "lastUpdated": "2026-10-11T11:59:39.75Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-11T11:59:39.389Z"
  },
  "metadata": {
    "serviceName": "Invoice Extraction PDF E-Invoice",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
    "extensions": {
      "bazaar": {
        "category": "data",
        "info": {
          "input": {
            "body": {
              "pdf_url": "https://agentsvc.io/samples/zugferd-invoice.pdf"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "buyer": {
                  "city": "Bremen",
                  "country": "DE",
                  "email": "buchhaltung@bautraeger-nord.de",
                  "name": "Bauträger Nord GmbH & Co. KG",
                  "postal_code": "28195",
                  "street": "Am Hafen 5",
                  "tax_number": null,
                  "vat_id": "DE987654321"
                },
                "buyer_reference": "RE-2026-0001",
                "checks": {
                  "arithmetic": {
                    "issues": [],
                    "ok": true
                  },
                  "iban": {
                    "bank": "Deutsche Kreditbank Berlin",
                    "bic_matches": true,
                    "checked": true,
                    "reason": null,
                    "valid": true
                  },
                  "seller_vat_id": {
                    "checked": true,
                    "registered_name": null,
                    "source": "EU VIES",
                    "valid": false
                  }
                },
                "currency": "EUR",
                "delivery_date": "2026-10-08",
                "due_date": "2026-10-24",
                "e_invoice": {
                  "format": "ZUGFeRD / Factur-X EN 16931",
                  "is_e_invoice": true,
                  "note": "Structured e-invoice (EN 16931). Amounts were read exactly from the XML, no A...",
                  "specification": "urn:cen.eu:en16931:2017"
                },
                "extracted_at": "2026-10-10T19:59:48.740Z",
                "invoice_number": "RE-2026-0001",
                "issue_date": "2026-10-10",
                "lines": [
                  {
                    "description": "Malerarbeiten Treppenhaus: Wände und Decken, 2x gestrichen",
                    "net_amount": 725,
                    "quantity": 12.5,
                    "tax_category": "S",
                    "tax_rate": 19,
                    "unit": "HUR",
                    "unit_price": 58
                  }
                ],
                "model": null,
                "notes": [
                  "Vielen Dank für Ihren Auftrag & die gute Zusammenarbeit <3"
                ],
                "order_reference": null,
                "payment": {
                  "account_name": "Malerbetrieb Muster GmbH",
                  "bic": "BYLADEM1001",
                  "iban": "DE02120300000000202051",
                  "means": "SEPA credit transfer",
                  "reference": "Rechnung RE-2026-0001",
                  "terms": "Zahlbar innerhalb von 14 Tagen ohne Abzug."
                },
                "seller": {
                  "city": "Hamburg",
                  "country": "DE",
                  "email": "rechnung@maler-muster.de",
                  "name": "Malerbetrieb Muster GmbH",
                  "postal_code": "20095",
                  "street": "Hauptstraße 12",
                  "tax_number": "22/815/08150",
                  "vat_id": "DE123456789"
                },
                "service_period": null,
                "source": "pdf_embedded_xml",
                "tax_breakdown": [
                  {
                    "amount": 166.24,
                    "base": 874.97,
                    "category": "S",
                    "exemption_reason": null,
                    "rate": 19
                  }
                ],
                "totals": {
                  "gross": 1067.21,
                  "net": 899.27,
                  "payable": 1067.21,
                  "prepaid": null,
                  "tax": 167.94
                },
                "type": "invoice",
                "type_code": "380",
                "warnings": [
                  "Seller VAT ID is not valid in VIES"
                ]
              },
              "success": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "image_base64": {
                      "description": "Photo as base64",
                      "type": "string"
                    },
                    "image_url": {
                      "description": "Photo or scan URL",
                      "type": "string"
                    },
                    "pdf_base64": {
                      "description": "PDF as base64",
                      "type": "string"
                    },
                    "pdf_url": {
                      "description": "PDF URL; or send one of the other inputs",
                      "type": "string"
                    },
                    "validate": {
                      "default": true,
                      "description": "Check VAT ID and IBAN",
                      "type": "boolean"
                    },
                    "xml": {
                      "description": "XRechnung/ZUGFeRD XML text",
                      "type": "string"
                    },
                    "xml_url": {
                      "description": "XML URL",
                      "type": "string"
                    }
                  },
                  "required": []
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "buyer": {
                          "type": "object"
                        },
                        "buyer_reference": {
                          "type": "string"
                        },
                        "checks": {
                          "type": "object"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "delivery_date": {
                          "type": "string"
                        },
                        "due_date": {
                          "type": "string"
                        },
                        "e_invoice": {
                          "type": "object"
                        },
                        "extracted_at": {
                          "type": "string"
                        },
                        "invoice_number": {
                          "type": "string"
                        },
                        "issue_date": {
                          "type": "string"
                        },
                        "lines": {
                          "type": "array"
                        },
                        "model": {},
                        "notes": {
                          "type": "array"
                        },
                        "order_reference": {},
                        "payment": {
                          "type": "object"
                        },
                        "seller": {
                          "type": "object"
                        },
                        "service_period": {},
                        "source": {
                          "type": "string"
                        },
                        "tax_breakdown": {
                          "type": "array"
                        },
                        "totals": {
                          "type": "object"
                        },
                        "type": {
                          "type": "string"
                        },
                        "type_code": {
                          "type": "string"
                        },
                        "warnings": {
                          "type": "array"
                        }
                      },
                      "required": [
                        "source",
                        "e_invoice",
                        "invoice_number",
                        "seller",
                        "lines",
                        "totals",
                        "checks",
                        "warnings"
                      ],
                      "type": "object"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "invoice-parsing",
          "e-invoice",
          "xrechnung",
          "zugferd",
          "accounting",
          "invoice-ocr",
          "receipt-parsing",
          "factur-x",
          "accounts-payable",
          "document-extraction"
        ]
      },
      "builder-code": {
        "info": {
          "a": "bc_q6wi3opd"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentsvc.io",
    "manifest_name": "agentsvc.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "buyer": {},
        "buyer_reference": "string",
        "checks": {},
        "currency": "string",
        "delivery_date": "string",
        "due_date": "string",
        "e_invoice": {},
        "extracted_at": "string",
        "invoice_number": "string",
        "issue_date": "string",
        "lines": [
          "value"
        ],
        "model": null,
        "notes": [
          "value"
        ],
        "order_reference": null,
        "payment": {},
        "seller": {},
        "service_period": null,
        "source": "string",
        "tax_breakdown": [
          "value"
        ],
        "totals": {},
        "type": "string",
        "type_code": "string",
        "warnings": [
          "value"
        ]
      },
      "success": true
    },
    "type": "string"
  }
}