# Rabattkodkollen: checkout tests of discount codes in Swedish online shops

Version 2026-12-04 · 4162 tests · 113 shops · 258 codes · 2026-11-17 to 2026-12-04

Source and latest release: https://rabattkodkollen.se/data/

## What it is

Results of automated tests of discount codes in the checkouts of Swedish online shops. Each row is one test: the day, the shop, where the code came from, whether the shop accepted it and, when it did, the discount on a test basket. No purchase is ever completed. The code strings themselves are not included.

In this release 64 of 258 codes (24.8 %) were accepted in their latest test.
Tests by result: accepted 915, rejected 1184, needs_login 0, min_spend 2, could_not_test 2061.

**This is an early release.** It does not yet reach the size we consider solid for analysis:
days from first to latest test: 18 (bar: 90); share of tests that could not be run (at most): 0.4952 (bar: 0.25). Treat shares and averages as indications.

## Method

1. A headless browser opens the shop, puts one in-stock product in the basket and enters the code, as a shopper would.
2. The result is read from what the shop answers: applied, refused, needs a larger basket, needs a login, or no clear answer.
3. Every run also enters one made-up code. If the shop accepts it, all results of that run are stored as `could_not_test`.
4. No order is placed, no account is created, no contact or payment details are entered, and bot checks are never worked around: a blocked run is `could_not_test`.
5. Shops are tested one at a time, a few codes per run. Every test is kept, so a code tested on several days has several rows.

## Files

- `tests.csv`: one row per test.
- `shops.csv`: one row per shop, with totals.
- `datapackage.json`: the same column descriptions in Frictionless Data Package form.
- `CITATION.cff`: citation metadata.

CSV: UTF-8, comma separated, first row is the header, empty field = not measured, decimal point.

### tests.csv

| Column | Type | Meaning |
|---|---|---|
| `test_no` | integer | Row number, in the order the tests were run. Not an identifier used anywhere else. |
| `test_date` | date | Day of the test (Europe/Stockholm). Clock times are not published. |
| `shop` | string | Name of the shop. |
| `shop_domain` | string | The shop's domain, without www. Key to shops.csv. |
| `code_key` | string | Stands in for the code string, so that repeated tests of the same code can be followed. Numbered in the order codes were first tested; cannot be turned back into the code. |
| `code_source` | string | Where the code came from: partner_feed = the shop issued the code to publishers through a partner programme; direct = the shop gave the code to Rabattkodkollen directly; web_shop = found on the shop's own website; web_coupon_site = found on another coupon or deal site; web_influencer = found in a public social media post. |
| `status` | string | Result: accepted = the shop applied the code to the test basket; rejected = the shop refused it; min_spend = the code exists but needs a larger basket; needs_login = only for logged-in customers or members; could_not_test = no clear answer this time (shop blocked the test, no testable product, or the control code was accepted). |
| `discount_amount` | number | Discount the shop took off the test basket, in `currency`. Only for accepted codes; 0 means accepted with no reduction on the test product. |
| `discount_percent` | number | discount_amount as a percentage of the basket value before the discount, one decimal. Only where both were measured and the discount was above 0. |
| `currency` | string | ISO 4217 currency of the basket, where the shop reported one. |
| `basket_band` | string | Value of the test basket before the discount, as a band in `currency`. SEK: 0-199, 200-499, 500-999, 1000-1999, 2000+. EUR: 0-19, 20-49, 50-99, 100-199, 200+. Empty where the shop did not report a total. |

### shops.csv

| Column | Type | Meaning |
|---|---|---|
| `shop` | string | Name of the shop. |
| `shop_domain` | string | The shop's domain, without www. |
| `platform` | string | E-commerce platform the test adapter was written for (woocommerce, shopify, sfcc, custom). |
| `first_test_date` | date | Day of the first test in this release. |
| `last_test_date` | date | Day of the latest test in this release. |
| `tests` | integer | Number of rows in tests.csv for the shop. |
| `codes_tested` | integer | Number of different codes tested. |
| `tests_accepted` | integer | Tests with status accepted. |
| `tests_rejected` | integer | Tests with status rejected. |
| `tests_needs_login` | integer | Tests with status needs_login. |
| `tests_min_spend` | integer | Tests with status min_spend. |
| `tests_could_not_test` | integer | Tests with status could_not_test. |
| `codes_accepted_latest` | integer | Codes whose latest test was accepted. |
| `control_runs` | integer | Test runs on the shop. Every run also tries one made-up code that cannot exist. |
| `control_rejected` | integer | Runs in which the shop rejected the made-up code, as it should. Runs where it did not are stored as could_not_test. |

## What is left out, and why

- **The code strings.** Many codes were found on the open web and belong to someone else's campaign; some carry a person's name. Others were issued to named publishers. A code that failed has no use to a reader, and a list of working codes under an open licence could not be withdrawn once copied. `code_key` keeps repeated tests of one code together instead.
- The shops' answers in text (they repeat the code), the products in the test basket, and clock times.
- The made-up control codes as rows. Their outcome is counted per shop in `shops.csv`.

The dataset holds no personal data.

## Known limits

- A pass means the code worked for our test basket that day. Codes for new customers, single-use codes and codes for other products can behave differently for a shopper.
- The shops are a small, hand-picked set of Swedish online shops, not a sample of Swedish e-commerce. Shops whose checkout the test cannot drive appear mostly as `could_not_test`.
- Codes found on the web are tested because they were found, not because anyone claimed they work; their low pass rate says as much about what circulates as about the shops.
- `code_key` and `test_no` are assigned per release. They stay the same between releases as long as no earlier test is removed.
- The discount is measured on one product, so product-specific codes can show 0.

## How to cite

Rabattkodkollen (2026). Rabattkodkollen: checkout tests of discount codes in Swedish online shops (version 2026-12-04) [Data set]. https://rabattkodkollen.se/data/

## Licence

Creative Commons Attribution 4.0 International (CC-BY-4.0): https://creativecommons.org/licenses/by/4.0/
You may share and adapt the data for any purpose if you give credit: "Rabattkodkollen, https://rabattkodkollen.se".
