Creating an application inside Spree
To generate a valid token for the Platform API, you’ll first need to create an application inside Spree.-
Go to Spree’s admin panel and open
Apps->oAuth Applicationsin the menu
Apps -> oAuth Applications in the menu