Authentication

All METRO products are secured using api key and password. If you don’t have an API key then you can request one using this link Get Api Key

Each Key has access to given list of products which are selected during API key request. You can increase the scope of the Key by contacting us later.

The simplicity of REST allows you to integrated easily with almost any available technology stack be it Node, JAVA, Python, GO or something else.


Tokens:

ClientJWT:

Authentication call is required to be done at endpoint api.metro-cc.com/v1/auth/login to get a client jwt. Client JWT identifies, requesting client and it required for every call unless explicitly specified otherwise.


HTTP
	POST https://api.metro-cc.com/{productkey}/{version}/login/client
	Content-Type: application/json
									
	{apiUser:, apiPw:}
								

CustomerJWT:

Some of call to METRO product needs scope of a Customer (e.g. Add to basket). For such calls a additional request is needed to get Customer JWT.


HTTP
	POST https://sandbox.metro-cc.com/{productkey}/{version}/login/user
	Content-Type: application/json
									
	{username:, password:}
								

Access to new products:

Contact us with your request and we will add new product access to your api key.


Please note that we are working on future version of security and new robust version would be released soon.