Skip to content
Fourohtwo

toll402.dev/v1/t/cpr_dk_validate

Offline validator/normalizer for a Danish CPR-nummer (personal identification number, format DDMMYY-SSSS). Checks digit count and date-of-birth validity, determines century from the 7th digit per official rules, and derives birth date and gender (last digit odd=male, even=female). Does not rely on the modulus-11 checksum since it has not been guaranteed valid for numbers issued since 2007.

BaseAnswering
POSThttps://toll402.dev/v1/t/cpr_dk_validate

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://toll402.dev/v1/t/cpr_dk_validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"cpr":"010190-0006"}),
});
console.log(await res.json());

Example input

{
  "cpr": "010190-0006"
}

More from Toll402Provider status