Jump to content

O-Auth token


Globe51

Recommended Posts

From the documentation at https://developer.loyverse.com/docs/#section/Authorization/OAuth-2.0

Once you have the authorization code, your app can now request an access token by sending a request to the following Access Token URL:

https://api.loyverse.com/oauth/token

The payload of your request must be with Content-Type: application/x-www-form-urlencoded and include:

client_id

client_secret

redirect_uri

code

grant_type (specify ‘authorization_code’)

 

What are the client_id and client_secret and where can they be found?
I have tried the AppID and App Secret from the dashboard at developer.loyverse.com, but that doesn't seem to work. I am getting the error "UNAUTHORIZED/No client secret set"

 

image.thumb.png.510ade500ccec2609663a000e8bb1513.png

 

Link to comment
Share on other sites

Thanks for your rely. All appears working now.

Can you confirm the unit of measurement for the "expires_in" return value? Is it seconds?

Link to comment
Share on other sites

Loyverse Point of Sale

 

 

 

 

×
×
  • Create New...