{
  "id": "revolut",
  "name": "Revolut",
  "service": "revolut",
  "trust": "first-party",
  "credit": {
    "author": {
      "name": "David Marín",
      "url": "https://davefx.com"
    },
    "capture": {
      "name": "David Marín",
      "url": "https://davefx.com"
    }
  },
  "domain": "revolut.com",
  "country": "global",
  "categories": [
    "banking"
  ],
  "version": "2026-08-28",
  "minVersion": "0.10.2",
  "minorUnits": true,
  "keepRaw": true,
  "throttle": {
    "minMs": 300,
    "jitterMs": 400
  },
  "match": [
    "https://app.revolut.com/*"
  ],
  "openUrl": "https://app.revolut.com/home",
  "crossDomainHosts": [
    "storage.googleapis.com"
  ],
  "auth": {
    "mode": "cookie",
    "replayHeaders": [
      "x-device-id"
    ],
    "readyUrl": "https://app.revolut.com/home"
  },
  "api": {
    "host": "https://app.revolut.com",
    "groups": {
      "path": "/api/retail/user/current/wallet",
      "itemsPath": "pockets",
      "fields": {
        "id": "id",
        "name": "currency",
        "currency": "currency",
        "type": "type"
      }
    }
  },
  "streams": [
    {
      "id": "transactions",
      "name": "Transacciones",
      "schema": "transaction@1",
      "normalize": {
        "counterparty": {
          "from": "description",
          "re": [
            "^(?:To|From|Payment to|Payment from)\\s+(.+)$"
          ]
        },
        "sign": {
          "amount": {
            "when": {
              "field": "vault",
              "present": true
            },
            "positiveWhen": {
              "field": "fromAccount.type",
              "equals": "SAVINGS"
            }
          }
        },
        "unset": {
          "balanceAfter": {
            "when": {
              "field": "vault",
              "present": true
            }
          }
        }
      },
      "api": {
        "list": {
          "path": "/api/retail/user/current/transactions/last",
          "itemsPath": "$",
          "paging": "cursor",
          "cursorParam": "to",
          "cursorFromItem": "startedDate",
          "params": {
            "count": "500",
            "internalPocketId": "{group.id}"
          },
          "headers": {
            "x-browser-application": "WEB_CLIENT",
            "x-client-version": "100.0"
          },
          "referer": "https://app.revolut.com/home",
          "keep": [
            {
              "field": "cardVerification",
              "exclude": [
                true
              ]
            },
            {
              "field": "state",
              "values": [
                "COMPLETED"
              ]
            }
          ],
          "idOverride": {
            "template": "{group.id}|{startedDate}|{amount}|{currency}|{description}"
          }
        }
      },
      "fields": {
        "internalId": "id",
        "date": "startedDate",
        "amount": [
          "amountWithCharges",
          "amount"
        ],
        "currency": "currency",
        "description": "description",
        "type": "type",
        "counterparty": "merchant.name",
        "balanceAfter": "balance",
        "valueDate": "completedDate"
      }
    },
    {
      "id": "extracto",
      "name": "Extractos de cuenta",
      "schema": "invoice@1",
      "api": {
        "list": {
          "paging": "synthetic",
          "synthetic": {
            "each": "group-months"
          },
          "maxAgeDays": 366
        }
      },
      "fields": {
        "internalId": "{group.currency}-{period}",
        "date": "{date}",
        "number": "{period}",
        "account": "{group.currency}",
        "description": "Extracto {group.currency} {period}"
      },
      "formats": [
        {
          "id": "pdf",
          "name": "PDF",
          "api": {
            "pdf": {
              "poll": {
                "path": "/api/retail/user/current/statements/account-statements?from={fromDate}&to={date}&ccy={group.currency}&format=PDF&type=OFFICIAL",
                "statePath": "state",
                "readyValue": "READY",
                "urlField": "url",
                "tries": 10,
                "delayMs": 1500
              },
              "ext": "pdf",
              "mime": "application/pdf"
            }
          }
        },
        {
          "id": "csv",
          "name": "CSV",
          "api": {
            "pdf": {
              "poll": {
                "path": "/api/retail/user/current/statements/account-statements?from={fromDate}&to={date}&ccy={group.currency}&format=CSV&type=OFFICIAL",
                "statePath": "state",
                "readyValue": "READY",
                "urlField": "url",
                "tries": 10,
                "delayMs": 1500
              },
              "ext": "csv",
              "mime": "text/csv"
            }
          }
        }
      ]
    }
  ],
  "changelog": [
    {
      "version": "2026-08-28",
      "changes": {
        "en": "Each movement now keeps the same identity between syncs, so it is not saved twice. Revolut issues a new internal reference for the same completed movement from one visit to the next, and that reference was what identified it, so the same purchase came back as a new one. It is now identified by the account, date, amount, currency and description instead. One consequence, once: on the first sync after this update your Revolut movements are treated as new, because their identity has changed.",
        "es": "Cada movimiento conserva ahora la misma identidad entre sincronizaciones, así que deja de guardarse dos veces. Revolut emite una referencia interna nueva para el mismo movimiento ya completado de una visita a otra, y esa referencia era lo que lo identificaba, así que la misma compra volvía como si fuera nueva. Ahora se identifica por la cuenta, la fecha, el importe, la divisa y el concepto. Una consecuencia, una sola vez: en la primera sincronización tras esta actualización tus movimientos de Revolut se tratan como nuevos, porque su identidad ha cambiado."
      }
    },
    {
      "version": "2026-08-26.6",
      "changes": {
        "en": "Movements now show the amount that actually left your account, fees included. Payments that carried one — a card payment in another currency at the weekend, for instance — used to arrive slightly below what you were really charged. Needs Habeas 0.10.1 or newer.",
        "es": "Los movimientos muestran ahora el importe que realmente salió de tu cuenta, comisiones incluidas. Los pagos que llevaban alguna —una compra con tarjeta en otra divisa en fin de semana, por ejemplo— llegaban algo por debajo de lo que te cobraron. Requiere Habeas 0.10.1 o posterior."
      }
    },
    {
      "version": "2026-08-26.4",
      "changes": {
        "en": "Trust level raised to first-party: written and verified against the real service by the project, not contributed unreviewed. The label describes provenance, not permission — the same-domain guard, the consent screen and every other rule apply identically whatever it says.",
        "es": "Confianza elevada a first-party: escrita y verificada contra el servicio real por el proyecto, no una aportación sin revisar. La etiqueta describe procedencia, no permisos — la guardia de mismo dominio, la pantalla de consentimiento y las demás reglas se aplican igual diga lo que diga."
      }
    },
    {
      "version": "2026-08-26.3",
      "changes": {
        "en": "Documents a limit rather than fixing it: a card payment made abroad at the weekend arrived about 1% short, because Revolut's out-of-hours surcharge left the balance without ever appearing in the data. Fixed later, in 2026-08-26.6.",
        "es": "Documenta un límite en vez de arreglarlo: un pago con tarjeta en divisa hecho en fin de semana llegaba un 1% corto, porque el recargo de Revolut fuera de horario salía del saldo sin aparecer nunca en los datos. Corregido después, en la 2026-08-26.6."
      }
    },
    {
      "version": "2026-08-26.1",
      "changes": {
        "en": "Three kinds of entry stop being listed as movements, because they are not. The 0 EUR authorisation a shop makes to check your card is alive; declined and reverted charges, whose successful retry also arrives, so the purchase was counted up to three times. And money coming back from a savings vault no longer arrives negative, nor carrying the vault's balance instead of your account's.",
        "es": "Tres tipos de apunte dejan de listarse como movimientos, porque no lo son. La autorización de 0 € que hace un comercio para comprobar que tu tarjeta está viva; los cargos denegados y revertidos, cuyo reintento correcto también llega, de modo que la compra se contaba hasta tres veces. Y el dinero que vuelve de un bolsillo de ahorro ya no llega en negativo, ni arrastrando el saldo del bolsillo en lugar del de tu cuenta."
      }
    },
    {
      "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-12",
      "changes": {
        "en": "Automatic sync no longer starts until app.revolut.com/home has finished loading. The app fires authenticated requests on earlier screens, so a sync could begin before the view holding the data existed.",
        "es": "La sincronización automática ya no arranca hasta que app.revolut.com/home ha terminado de cargar. La app dispara peticiones autenticadas en pantallas anteriores, así que una sincronización podía empezar antes de que existiera la vista con los datos."
      }
    },
    {
      "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-16",
      "changes": {
        "en": "Each movement now carries the account balance left after it, and the date it was settled. Needs Habeas 0.3.0.24 or newer.",
        "es": "Cada movimiento lleva ahora el saldo que queda en la cuenta después de él, y la fecha en que se liquidó. Requiere Habeas 0.3.0.24 o posterior."
      }
    },
    {
      "version": "2026-07-15.2",
      "changes": {
        "en": "Add account statements (PDF/CSV) per account × month: async-generated (poll account-statements until READY) then download the signed Google Storage URL (crossDomainHosts + consent). Statements bounded to the last ~12 months.",
        "es": "Añade extractos de cuenta (PDF/CSV) por cuenta × mes: se generan de forma asíncrona (se consulta account-statements hasta READY) y luego se descarga la URL firmada de Google Storage (crossDomainHosts + consentimiento). Los extractos se limitan a los últimos ~12 meses."
      }
    },
    {
      "version": "2026-07-15.1",
      "changes": {
        "en": "Add per-account (pocket) filter with a currency-labelled Accounts picker.",
        "es": "Añade filtro por cuenta (bolsillo) con un selector de cuentas etiquetado por divisa."
      }
    },
    {
      "version": "2026-07-15",
      "changes": {
        "en": "Your Revolut movements across all of your accounts.",
        "es": "Tus movimientos de Revolut en todas tus cuentas."
      }
    }
  ],
  "content": {
    "en": {
      "slug": "revolut-statements",
      "docs": "transactions and statements",
      "h1": "Download all your Revolut transactions and statements at once",
      "intro": "Revolut offers statements as PDF or CSV, one period at a time. Building a continuous history, or keeping it alongside your other accounts, still means going back every month and downloading by hand.",
      "title": "How to download your Revolut transactions and statements"
    },
    "es": {
      "slug": "extractos-revolut",
      "docs": "movimientos y extractos",
      "h1": "Descarga todos tus movimientos y extractos de Revolut de una vez",
      "intro": "Revolut ofrece extractos en PDF o CSV, un periodo cada vez. Construir un histórico continuo, o mantenerlo junto al de tus otras cuentas, sigue exigiendo volver cada mes y descargar a mano.",
      "title": "Cómo descargar tus movimientos y extractos de Revolut"
    }
  },
  "brand": "Revolut",
  "notes": "KNOWN AND DELIBERATELY NOT FIXED — foreign-currency card payments made at the WEEKEND arrive about 1% under the real charge. Revolut adds a surcharge for converting while the market is shut; it is taken out of the balance but is not in `amount`, which is derived from the interbank `rate` alone (-680 minor units / 0.8402721 = -8.09, against a real -8.18). The tell is that every weekend movement shares one frozen rate while weekday ones each have their own. Separation was perfect in an 18-month sample: the 3 Sunday movements were short, the 6 weekday ones chained to the cent, and it hit GBP and USD alike — so it is the day, not the currency. Total impact: 1.48 EUR across 3 of 167 movements.\nNot fixed because every route costs more than it buys. The real charge is only recoverable from the balance delta (amount = balance(n-1) - balance(n)), which would make the whole ingest depend on ordering and on the previous item to correct three movements. Applying a percentage by hand is worse: the rate is not in the payload and varies by plan and moment, so it would be invented. There is no `fee` field and no final euro amount anywhere in the response. If it is ever worth solving properly, the thread is `feeBreakdownId` (\"TXN:<id>\"), which suggests the breakdown lives at another endpoint — one extra request per movement, which 1.48 EUR does not justify.\nGotcha for anyone measuring this: `counterpart.amount` is in MINOR units (-680 is 6.80 GBP, not 680). The balance-continuity check in lib/reconcile.js surfaces this as a small, constant residue once the card verifications, the non-COMPLETED states and the vault transfers are handled."
}
