x402

Payment Reference Generate (x402)

Generate valid payment reference numbers with check digits: Swedish OCR, Norwegian KID, Finnish reference, ISO 11649 RF.

get/x402/v2/payment-reference-generate

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/payment-reference-generate
  • Auth: none required

Query parameters

typestring required

ocr_se/ocr_no/ocr_fi/iso11649/rf

base_numberstring

Response

Success

typestring
formattedstring
referencestring
check_digitstring

Example response

{
  "type": "ocr_se",
  "formatted": "668865801",
  "reference": "668865801",
  "check_digit": "1",
  "algorithm_used": "luhn"
}

Changes

No recorded changes to this operation across all 1 revision of this API.