Obscura

UK Payment Flow Codes

Industry (SIC) and UK region (ITL1) code lists used by the UK payment-flow matrix, with published descriptions and parent groupings so the flows can be rolled up without an external classification table.

ons_payment_flow_codes - the dataset name to pass to the Obscura API.

Category Macro Columns 7 Refresh Monthly Point-in-time available_date

What one row means

One industry or region code used by the UK payment-flow matrix, with its published description and its parent grouping.

One row per (code_system, code).

Derived in-database from ons_payment_flows.

Point-in-time availability

Every Obscura dataset carries available_date: the calendar day the publisher made the row available, day-of, with no session rounding. It is the one column a backtest filters on, and it means the same thing on every dataset in the catalog.

For ons_payment_flow_codes: published: available_date is the release day of the ONS edition whose lookup sheet this code was FIRST read from, on the Europe/London calendar - the same per-edition rule and the same evidence as `ons_payment_flows`, because the code list ships inside the same workbook as the matrix it describes.

Refresh cadence

Obscura refreshes ons_payment_flow_codes monthly - the most frequent scheduled job that re-collects or re-exports it. This is Obscura's own pipeline cadence, not the upstream publisher's release schedule; when a row became public is recorded per row in available_date.

Schema - 7 columns

The full public column list for ons_payment_flow_codes, with the meaning of every field. The same schema is served unauthenticated at https://api.obscura.trade/v1/catalog/ons_payment_flow_codes.

ColumnTypeDescription
code_systemtext · not nullWHICH classification this code belongs to, and half of the key: `sic2`, `sic5` or `itl1`. Two classifications can and do reuse the same string - `"12"` is a SIC division and could be a region ordinal - so the system is part of the identity rather than something to infer from the shape.
codetext · not nullThe code exactly as ONS published it, and exactly as it appears in `ons_payment_flows`' `payer_sic` / `payee_sic` / region columns. Stored as TEXT, not an integer: SIC codes carry meaningful leading zeros (`"01110"`) that an integer would eat, and the sentinel `"ALL"` is not a number.
descriptiontext · not nullONS's published label for the code - the SIC division or class description, or the ITL1 region name.
parent_codetextThe code's parent grouping, for rolling the matrix up a level: a 5-digit SIC class's division, or a division's section. NULL at the top of a hierarchy and for regions, which are flat.
parent_descriptiontextONS's published label for `parent_code`; NULL wherever that is.
code_vintagetextThe dated edition of the classification this list came from (e.g. the SIC vintage). Carried because ONS reclassifies: a code whose meaning changed between vintages is a different thing wearing the same string, and this is what lets a consumer notice.
available_datedate · not nullPUBLIC-AVAILABILITY DATE - the day the ONS edition carrying this lookup first became readable, on the Europe/London calendar. The point-in-time column.

Access ons_payment_flow_codes

Two delivery paths, one identifier. Both require an Obscura account and an active subscription; the catalog entry and the schema above are public.

import obscura

client = obscura.Client("obs_live_…")

df = client.query(
    dataset="ons_payment_flow_codes",
    start="2024-01-01",
)

Create a free account Browse all 122 datasets

Frequently asked questions

What is in the ons_payment_flow_codes dataset?

Industry (SIC) and UK region (ITL1) code lists used by the UK payment-flow matrix, with published descriptions and parent groupings so the flows can be rolled up without an external classification table. One industry or region code used by the UK payment-flow matrix, with its published description and its parent grouping.

How do I avoid look-ahead bias with ons_payment_flow_codes?

Filter on ons_payment_flow_codes.available_date, the day the publisher made the row public. For this dataset that date is derived as follows - published: available_date is the release day of the ONS edition whose lookup sheet this code was FIRST read from, on the Europe/London calendar - the same per-edition rule and the same evidence as `ons_payment_flows`, because the code list ships inside the same workbook as the matrix it describes. A query of the form WHERE available_date <= '<as-of date>' never sees a row before it existed.

In what formats can I get ons_payment_flow_codes?

As a Parquet bulk export (POST https://api.obscura.trade/v1/download) or as JSON from the typed query API (POST https://api.obscura.trade/v1/query), both with dataset="ons_payment_flow_codes". The column schema is public at https://api.obscura.trade/v1/catalog/ons_payment_flow_codes.

How often is ons_payment_flow_codes updated?

Obscura refreshes ons_payment_flow_codes on a monthly schedule - that is the most frequent scheduled job that re-collects or re-exports the table. It is Obscura's own pipeline cadence, not the upstream publisher's release schedule; when the publisher makes a row available is described by the availability rule above, and is recorded per row in available_date.

Related datasets

UK Payment FlowsMonthly totals of real UK inter-organisation payments - Bacs Direct Debit, Bacs Direct Credit and Faster Payments - by p… US Employment, Inflation and Wage Series (BLS)Economic series from the U.S. Bureau of Labor Statistics, fetched by series ID: employment, unemployment, CPI, PPI, wage… US Retail Sales by NAICSMonthly US retail and food-services sales by NAICS industry category, both seasonally adjusted and not adjusted, in mill… Bilateral Goods Trade Flows (UN Comtrade)Annual bilateral goods-trade totals between countries, from UN Comtrade: one row per reporter, partner and year, with tr… European Central Bank (ECB) Data SeriesEuropean Central Bank Data Portal series, retrieved by series key: euro-area policy rates, money supply, bank lending, y… Federal Reserve Economic Data (FRED) SeriesSeries from the Federal Reserve's FRED database by series ID - rates, prices, output, employment and more - as a point-i… IMF Country Macro IndicatorsCountry-level macro indicators from the IMF's DataMapper: growth, inflation, fiscal balance, debt and current account, o… UK Macroeconomic Series (ONS)UK macroeconomic series from the Office for National Statistics: GDP, inflation, labour market, trade and output, retrie…