How to display parent Taxonomy ID in REST export
Unfortunately, this is currently not yet supported. We're working to add that capability in https://www.drupal.org/node/2543726.

Long story short: the $term-&gt;parent field is a special snowflake: it's not an entity reference field as you would expect!