Problem with tailgate on 2007 Chevrolet Suburban 1500

My tailgate won't lock in when closing. Could it be the latch ? Can u fix it yourself or we talking the dealer ship

Most any independent repair shop should be able to take care of it.
1 more answer
just did one kinda simple but can be a repair shop to get an est.could be latch or key tumbler assm