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

FieldTypeRequiredWhat it is
typestringYesocr_se/ocr_no/ocr_fi/iso11649/rf
base_numberstringNo—

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
typestringAlways (present in every successful answer)
formattedstringAlways (present in every successful answer)
referencestringAlways (present in every successful answer)
check_digitstringAlways (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
  }'

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