Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

The organisation for this access token is not active

Started by Barry Denson -   in API Authentication

I am trying to connect to a private app which is attached to the demo company. I have created the app with a certificate and got the consumer key and I am building the OAuth params like this

OAuth oauth_version="1.0",
oauth_nonce="3582934802233511428",
oauth_timestamp="1549926073",
oauth_signature_method="RSA-SHA1",
oauth_consumer_key="YKHVW4H5W9B7O6FI2GKNLDDTBCSVLB",
oauth_token="YKHVW4H5W9B7O6FI2GKNLDDTBCSVLB",
oauth_signature="Nb7Fkrfn0qzUNAsutvYHESL3rSCsKWqN%2BR1MfBTDpE2Wqm78j73OLv%2B7S%2FapyVYV8f%2BNuu3govjTYtghzyQt6fK2x64z6qlwzx38JHdeNJEYsdPPF0T%2FgWrSNtWBJo7D9jdCbwNZq%2FcCAC%2FGQuFAgze1%2BQOrUgYxS9Ujml%2FSNrSLmeUxkf%2B1ooOLxEw%2FxxqWj%2BnL2o7V3Z1bnCqZYOaefPFTdY%2FMw%2FSbxF7mtOsnKewudiC4uM1uaY30tw0nJt2Fozagc6MFV48nMlkDxuem%2Fw3o4hhiQ32Skh9WN6Ws7foTMi3ENsP4ZO%2F1E9AyhJ5U1NollXLUbWXmMzU%2BP5k8HQ%3D%3D"

but I am getting 401 - Unauthorized error and the following in the response body

oauth_problem=token_rejected&oauth_problem_advice=The%20organisation%20for%20this%20access%20token%20is%20not%20active
deleted the app and created a new one and it works now
 

Barry Denson