{
  "id": "pepephone-es",
  "name": "Pepephone — facturas",
  "service": "pepephone",
  "country": "ES",
  "trust": "community",
  "version": "2026-08-08",
  "minVersion": "0.9.2",
  "schema": "invoice@1",
  "categories": [
    "telecom"
  ],
  "match": [
    "https://www.pepephone.com/*"
  ],
  "domain": "pepephone.com",
  "auth": {
    "mode": "bearer",
    "replayHeaders": [
      "authorization"
    ],
    "tokenFromStorage": {
      "key": "PEPE_AUTH_TOKEN",
      "header": "authorization",
      "scheme": "Bearer"
    }
  },
  "api": {
    "host": "https://services.pepephone.com",
    "list": {
      "path": "/v1/invoice",
      "itemsPath": "invoices",
      "expand": {
        "path": "subInvoices",
        "drop": [
          "total"
        ]
      },
      "paging": "none",
      "params": {
        "v": 3
      },
      "range": {
        "from": "start",
        "to": "end",
        "format": "epoch"
      },
      "window": "10y",
      "keep": {
        "field": "serviceType",
        "values": [
          "PPH"
        ]
      }
    },
    "pdf": {
      "path": "/v1/invoice/{internalId}?serviceType={serviceType}",
      "base64Field": "content",
      "ext": "pdf"
    }
  },
  "fields": {
    "internalId": "number",
    "number": "number",
    "date": "date",
    "total": "total",
    "type": "typeDescription"
  },
  "keepRaw": true,
  "content": {
    "en": {
      "slug": "pepephone-invoices",
      "docs": "mobile and broadband bills",
      "h1": "How to download your Pepephone bills",
      "intro": "Pepephone publishes a monthly bill in your customer area. There is no way to ask for them all together."
    },
    "es": {
      "slug": "facturas-pepephone",
      "docs": "facturas de móvil y fibra",
      "h1": "Cómo descargar tus facturas de Pepephone",
      "intro": "Pepephone publica una factura mensual en tu área de cliente. No hay forma de pedirlas todas juntas."
    }
  },
  "brand": "Pepephone",
  "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."
    }
  ]
}
