Getting "You Do Not Have permission to Access" error when using Excel Add-in or API

This means you're attempting at access an endpoint or function that is not included with your membership.

The error your describe means you're attempting to access and endpoint or function that is not included with your membership. 
For a list of available endpoints, see below. 
Excel Add-in Access