{
  "id": "bipdrive-es",
  "name": "Bip&Drive — facturas",
  "service": "bipdrive",
  "trust": "first-party",
  "domain": "bipdrive.com",
  "country": "ES",
  "currency": "EUR",
  "categories": [
    "tolls"
  ],
  "match": [
    "https://areaprivada.bipdrive.com/*"
  ],
  "openUrl": "https://areaprivada.bipdrive.com/#mis-facturas",
  "auth": {
    "mode": "cookie",
    "replayHeaders": []
  },
  "api": {
    "host": "https://areaprivada.bipdrive.com",
    "list": {
      "from": "html",
      "path": "/ajax-mis-facturas",
      "method": "POST",
      "body": "pagina={pagina}",
      "paging": "page",
      "pageParam": "pagina",
      "rows": {
        "each": "<tr class=\"veh_\\d+\">[\\s\\S]{0,1500}?veh_mat_\\d+\">\\s*([0-9/]+)[\\s\\S]{0,700}?veh_tip_\\d+\">\\s*([0-9.,]+\\s*€)[\\s\\S]{0,900}?name=\"token_csrf\" value=\"([^\"]+)\"[\\s\\S]{0,300}?name=\"id_factura\" value=\"([^\"]+)\"[\\s\\S]{0,600}?title=\"(CI[^\"]*)\"",
        "fields": {
          "date": {
            "group": 1
          },
          "total": {
            "group": 2
          },
          "token_csrf": {
            "group": 3
          },
          "id_factura": {
            "group": 4
          },
          "number": {
            "group": 5
          }
        }
      }
    },
    "pdf": {
      "path": "/",
      "method": "POST",
      "body": "token_csrf={token_csrf}&id_factura={id_factura}&tipo=PDF",
      "ext": "pdf"
    }
  },
  "fields": {
    "internalId": "number",
    "number": "number",
    "date": "date",
    "total": "total"
  },
  "schema": "invoice@1",
  "version": "2026-08-08",
  "changelog": [
    {
      "version": "2026-08-08",
      "changes": "Añade `content` (copy bilingüe de la guía en habeas.dev) y `brand`. La página por fuente pasa a generarse desde la propia definición, no desde un fichero aparte en la web."
    },
    {
      "version": "2026-07-08",
      "changes": "Facturas vía tabla AJAX (from:html); PDF por POST de formulario."
    }
  ],
  "content": {
    "en": {
      "slug": "bipdrive-invoices",
      "docs": "toll invoices",
      "h1": "How to download your Bip&Drive invoices",
      "intro": "Bip&Drive issues one invoice per period covering your tolls and parking. They are all in your customer area, as PDFs, one at a time."
    },
    "es": {
      "slug": "facturas-bipdrive",
      "docs": "facturas de peaje",
      "h1": "Cómo descargar tus facturas de Bip&Drive",
      "intro": "Bip&Drive emite una factura por periodo con tus peajes y aparcamientos. Están todas en tu área de cliente, en PDF y de una en una."
    }
  },
  "brand": "Bip&Drive"
}
