{
  "name": "ai.goroute.einvoice",
  "title": "E-Invoice Extension for agentic commerce",
  "description": "At checkout the agent may state that the buyer is a business (legal name, tax identifier, scheme, Peppol ID, order reference, delivery). The merchant commits to issue the compliant e-invoice or fiscal receipt the buyer's country requires for the order, and exposes it on the order as an `einvoice` object (status, document_type, number, delivered_via, pdf_url, xml_url, network_message_id). Published by GoRoute; anyone may implement it, on any e-invoicing provider.",
  "version": "2026-09-24",
  "document_version": "1.0.0-draft",
  "spec": "https://docs.goroute.ai/docs/connectors/agentic-e-invoice",
  "schema": "https://goroute.ai/ucp/einvoice.schema.json",
  "extends": ["dev.ucp.shopping.checkout", "dev.ucp.shopping.order"],
  "requires": {
    "protocol": { "min": "2026-08-25" },
    "capabilities": {
      "dev.ucp.shopping.checkout": { "min": "2026-08-25" },
      "dev.ucp.shopping.order": { "min": "2026-08-25" }
    }
  },
  "publisher": { "name": "GoRoute", "url": "https://goroute.ai/", "contact": "admin@goroute.ai" },
  "ucp": {
    "declaration": "Copy this entry into the `ucp.capabilities` map of your business profile at /.well-known/ucp. UCP capability versions are dates (YYYY-MM-DD); the specification document itself is labelled 1.0.0-draft.",
    "capabilities": {
      "ai.goroute.einvoice": [
        {
          "version": "2026-09-24",
          "spec": "https://docs.goroute.ai/docs/connectors/agentic-e-invoice",
          "schema": "https://goroute.ai/ucp/einvoice.schema.json",
          "extends": ["dev.ucp.shopping.checkout", "dev.ucp.shopping.order"],
          "requires": {
            "protocol": { "min": "2026-08-25" },
            "capabilities": {
              "dev.ucp.shopping.checkout": { "min": "2026-08-25" },
              "dev.ucp.shopping.order": { "min": "2026-08-25" }
            }
          },
          "config": { "documents": ["invoice", "receipt"], "delivery": ["peppol", "email", "none"] }
        }
      ]
    }
  },
  "acp": {
    "declaration": "ACP (2026-04-17) has no extension registry; its extensions RFC is a draft. Where a client implements that RFC, declare the extension as below in `capabilities.extensions`. Otherwise carry `buyer_business` as `metadata.buyer_business` on the checkout session (the merchant may also read `buyer.company.name` and `buyer.company.tax_id`), and expose the result through `confirmation.invoice_number` and `confirmation.receipt_url` on the order, which is the room ACP's order has today.",
    "extensions": [
      {
        "name": "ai.goroute.einvoice",
        "extends": ["$.CheckoutSessionCreateRequest.buyer_business", "$.CheckoutSession.buyer_business", "$.Order.einvoice"],
        "schema": "https://goroute.ai/ucp/einvoice.schema.json",
        "spec": "https://docs.goroute.ai/docs/connectors/agentic-e-invoice"
      }
    ]
  },
  "license": "Anyone may implement this extension. The names ai.goroute.einvoice, buyer_business and einvoice, and the field set below, are published so that agents, storefronts and e-invoicing providers converge on one shape; no fee, registration or use of GoRoute is required."
}
