how to list parent terms only

get_terms('apptypes','orderby=id&parent=0');

parent argument is used to get direct children of this term (only terms whose explicit parent is this value). If 0 is passed, only top-level terms are returned. Default is an empty string.

See Codex.

error code: 523