{"id":"sedol-validate","version":"1.0.0","description":"Validate a 7-character SEDOL's weighted modulus 10 check digit and report whether it is a legacy all-numeric code.","supported_operations":["validate a sedol","check sedol check digit","is this sedol code valid","sedol checksum validator","uk security identifier check digit","verify stock exchange daily official list number","is this a legacy all numeric sedol"],"unsupported_operations":["looking up which company or security a SEDOL actually identifies","validating a 12-character ISIN that embeds a SEDOL (see isin-validate)","accepting vowels A, E, I, O or U anywhere in the payload"],"semantics":["sedol must be exactly 7 characters: no case folding, no trimming. Any other length is reason wrong_length, checked first.","check_digit (character 7) and legacy_numeric (true when all 7 characters are digits) are populated whenever sedol is exactly 7 characters, regardless of charset or check-digit validity; both are null only when length already failed.","Characters 1-6 must each be a digit or an uppercase letter B-Z (never a vowel); character 7 must be a digit, else reason invalid_character.","Check digit: a digit's value is itself; a letter's value is 9 plus its 1-based alphabet position (B=11 ... Z=35). Multiply characters 1-6 by weights 1,3,1,7,3,9 respectively and sum; expected check digit is (10 - sum mod 10) mod 10. A mismatch is reason check_digit_mismatch.","valid is true only when length, charset and the check digit all pass, in that order; only one reason is ever returned."],"limits":{"max_sedol_bytes":7},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["sedol"],"properties":{"sedol":{"type":"string","minLength":1,"maxLength":7}}},"output_schema":{"type":"object","additionalProperties":false,"required":["valid","reason","check_digit","legacy_numeric"],"properties":{"valid":{"type":"boolean"},"reason":{"type":["string","null"],"enum":[null,"wrong_length","invalid_character","check_digit_mismatch"]},"check_digit":{"type":["string","null"],"minLength":1,"maxLength":1},"legacy_numeric":{"type":["boolean","null"]}}},"examples":[{"input":{"sedol":"0263494"},"output":{"valid":true,"reason":null,"check_digit":"4","legacy_numeric":true}},{"input":{"sedol":"BH4HKS3"},"output":{"valid":true,"reason":null,"check_digit":"3","legacy_numeric":false}}],"execute_url":"/v1/tools/sedol-validate/versions/1.0.0/execute"}