Deductions & credits

I am not a resident of Oklahoma.  I have some mineral rights there.  The capital gains are from a common stock sale.  There is no federal ID number, but there is an OMB number and a CUSIP number. Would one of those numbers work?