Authentication
In order to use the Global Inventory API, you must be authenticated. You must have your client_id and client_secret in order to authenticate. If you're not sure what your id and secret is, please get in contact with us.
Below are the respective baseUrl's for the production and sandbox environments. If you are using the sandbox environment for Inventory API, you must use the sandbox base url in the request below. For all other requests, then please use the production baseUrl.
| Environment | Base URL |
|---|---|
| Production | https://id.csnglobal.net |
| Sandbox/Testing | https://id.s.core.csnglobal.net |
Generate access token
Using your unique client_id and client_secret, make a request to our identification service:
curl --location --request POST '{baseUrl}/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id={client_id}' \
--data-urlencode 'client_secret={client_secret}' \
--data-urlencode 'grant_type=client_credentials'The access_token key in the response will hold your bearer token. This token will be used in your request's Authorization header. For example: Authorization: Bearer {token}.
