How do you work out the code from the serial number?

If I wanted the code for a radio would I have to give you the serial number and part number?

Regards :splease