Payment Reference Generator
Generate payment references with valid check digits: Swedish OCR, Norwegian KID, Finnish reference and ISO 11649 RF.
Pay by wallet (x402)
payment-reference-generate Example
Input
{
"type": "ocr_se"
} Answer
{
"type": "ocr_se",
"formatted": "601765530",
"reference": "601765530",
"check_digit": "0",
"algorithm_used": "luhn"
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
type | string | Yes | ocr_se/ocr_no/ocr_fi/iso11649/rf |
base_number | string | No | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
type | string | Always (present in every successful answer) |
formatted | string | Always (present in every successful answer) |
reference | string | Always (present in every successful answer) |
check_digit | string | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "payment-reference-generate",
"inputs": {
"type": "ocr_se"
},
"max_price_cents": 2
}' {
"tool": "strale_execute",
"arguments": {
"slug": "payment-reference-generate",
"inputs": {
"type": "ocr_se"
},
"max_price_cents": 2
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "payment-reference-generate",
inputs: {
"type": "ocr_se"
},
max_price_cents: 2,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="payment-reference-generate",
inputs={
"type": "ocr_se",
},
max_price_cents=2,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/payment-reference-generate?type=ocr_se' Limitations
Payment references may need bank-specific validation
Generates standard OCR/reference formats — country-specific payment reference formats may have additional validation requirements
What to do instead: Validate generated references against the receiving bank's format requirements before issuing payment instructions
Related tools
- Marketplace Fee Calculator €0.05
- Meeting Time Finder €0.03