sellytics Blog

First steps using the sellytics DATA API

Important: This article refers to sellytics DATA API. This API uses different grant_type(s) than the other sellytics APIs and you need special scopes and resource rights to use this api. If you’re interested to get such an API access or extend your existing API access just contact us.


Getting access using OAuth 2.0 and client_credentials

After receiving your sellytics OAuth2 client_id and client_secret you are able to start using the sellytics DATA API. Because the DATA API is a sub-product of sellytics where no user data is involved everything happens behalf of your own client and that’s why you have to use the client_credentials grant. We follow the OAuth2 specification and RFC6749 so the POST request to get your JWT Bearer access token should look like this one:

curl -X "POST" "" \
     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
     -u 'client_id:client_secret' \
     --data-urlencode "grant_type=client_credentials"

Continue reading →