Product Stock Level Checker

DOWNLOAD SPEC

Getting Started

What you will need 

First, you’ll have to decide which method to use based on your geography.  

GET method:

 o NAM zone

 o Russia

 o India  

POST method:  

o Nordics

 o Australia 
 
The only three things you will require to work with both methods, are:

 o A Client ID (login); -  

o A Client Secret (password);  

o In order to get correct Client ID and Client Secret, please request your local Schneider Electric contact.

 If you belong to the region using the GET method, please know that you may also use the so-called Purchaser ID (the ID of your account in mySE system – an application which most of the Schneider Electric customers use to place orders – and one of the linked Ship-To (the ID of your address). These parameters are not mandatory but allow additional flexibility of service usage. They are best defined if your company has several mySE accounts or different of your addresses are linked to different SE warehouses. To know them, please reach your local SE contact or login to the mySE system. 

How it works

API Endpoint (Base URL) 

Token URL 

Environment  Token URL
Production  https://api.se.com/token 

 

Environment  API URL 
Production  https://api.se.com/productstocklevelchecker/1.1/products/*

 Authentication

Bearer authentication is a security scheme of http type and bearer scheme. Please visit the “Authorization” section in the getting started for more information. 

Token Generation Sample using Postman:

1. Select POST and enter the Token URL.

2. From the Body tab, click on radio button x-www-form-urlencoded.

3. Manually enter Key and Value, “grant_type” and “client_credentials”.

4. From the Authorization tab, select Type “Basic Auth”.

5. Set Username to the client key (provided to you by the APIFIRST team offline).

6. Set Password to the client secret (provided to you by the APIFIRST team offline).

7. Send request and retrieve value of access_token from the response message. 
 
Sample curl for Token

curl -X POST \ 

https://api.se.com/token \ 

 -H 'Accept: */*' \ 
  -H 'Authorization: Basic OFNkWlFqTVVGbWthNG1tVVhvTGUxajcxY2VHQUxBczY6YzQ0MjlOa1VMS3FRQkJDMA==' \ 
  -d grant_type=client_credentials