{
  "id": "dia-es",
  "name": "Dia España — tickets",
  "service": "dia",
  "trust": "community",
  "credit": {
    "author": {
      "name": "David Marín",
      "url": "https://davefx.com"
    },
    "capture": {
      "name": "David Marín",
      "url": "https://davefx.com"
    }
  },
  "domain": "dia.es",
  "country": "ES",
  "version": "2026-08-26",
  "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-26",
      "changes": {
        "en": "Records authorship: the session was recorded and the definition written by the maintainer. No change to extraction.",
        "es": "Registra la autoría: la sesión la grabó y la definición la escribió el mantenedor. No cambia la extracción."
      }
    },
    {
      "version": "2026-08-08",
      "changes": {
        "en": "No change to what this source extracts. This version gave it its guide page on habeas.dev.",
        "es": "Sin cambios en lo que extrae esta fuente. Esta versión le dio su página de guía en habeas.dev."
      }
    },
    {
      "version": "2026-07-08",
      "changes": {
        "en": "Receipts from the SSR (Vike); per-item PDF invoice.",
        "es": "Tickets desde el SSR (Vike); factura en PDF por artículo."
      }
    }
  ],
  "content": {
    "en": {
      "slug": "dia-receipts",
      "docs": "purchase receipts",
      "h1": "Download all your Dia receipts at once",
      "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.",
      "title": "How to download your Dia receipts"
    },
    "es": {
      "slug": "tickets-dia",
      "docs": "tickets de compra",
      "h1": "Descarga todos tus tickets de Dia de una vez",
      "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.",
      "title": "Cómo descargar tus tickets de Dia"
    }
  },
  "brand": "Dia"
}
