{
  "id": "dia-es",
  "name": "Dia España — tickets",
  "service": "dia",
  "trust": "community",
  "domain": "dia.es",
  "country": "ES",
  "version": "2026-08-08",
  "categories": [
    "grocery"
  ],
  "match": [
    "https://www.dia.es/*"
  ],
  "openUrl": "https://www.dia.es/my-account/tickets",
  "auth": {
    "mode": "cookie",
    "replayHeaders": []
  },
  "api": {
    "host": "https://www.dia.es",
    "list": {
      "path": "/my-account/tickets",
      "from": "html",
      "paging": "none",
      "itemsPath": "INITIAL_STATE.ticketsList"
    },
    "detail": {
      "path": "/api/v3/eservice-back/customer/current/tickets/{internalId}?begin={detail_params.begin}&business={detail_params.business}&country={detail_params.country}&pos={detail_params.pos}&store={detail_params.store}",
      "method": "GET",
      "headers": {
        "x-requested-with": "XMLHttpRequest",
        "x-locale": "es"
      },
      "referer": "https://www.dia.es/my-account/tickets"
    },
    "pdf": {
      "path": "/api/v3/eservice-back/customer/current/tickets/{ticket_unique_code}/invoice?invoice-to-download={invoices.0}",
      "method": "GET",
      "referer": "https://www.dia.es/my-account/tickets"
    }
  },
  "fields": {
    "internalId": "detail_params.ticket",
    "number": "invoices.0",
    "date": "submitted_date",
    "total": "total_amount",
    "storeName": "store_info.city"
  },
  "schema": "receipt@1",
  "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": "Tickets desde el SSR (Vike); factura en PDF por artículo."
    }
  ],
  "content": {
    "en": {
      "slug": "dia-receipts",
      "docs": "purchase receipts",
      "h1": "How to download your Dia receipts",
      "intro": "Your Dia purchase history lives in your account, receipt by receipt. There is no bulk export and no way to move it into a spreadsheet."
    },
    "es": {
      "slug": "tickets-dia",
      "docs": "tickets de compra",
      "h1": "Cómo descargar tus tickets de Dia",
      "intro": "Tu historial de compra en Dia está en tu cuenta, ticket a ticket. No hay exportación masiva ni una forma de llevártelo a una hoja de cálculo."
    }
  },
  "brand": "Dia"
}
