Managing Authentication

Here are the changes you need to make

Prerequisites :

  • You must have the login details you received when you registered on this documentation.
  • That you do indeed have delegated authority over the sellerid you call see this tutorial “How to manage delegation

SOAP

Auth url : https://sts.cdiscount.com/users/httpIssue.svc/?realm=https://wsvc.cdiscount.com/MarketplaceAPIService.svc

Type : Basic Auth

Login : login-api (Can be found in the seller’s area)

Password : YourPassword

Response :

<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">abcde6321</string>

Login parameter in the body payload :

  • client_id=YourClientId
  • client_secret=YourSecret
  • grant_type=client_credentials

Response :

{
  "access_token": "eyJhbG.eyJleHAiOjE2O.K_d4gGRlh",
  "expires_in": 7200,
  "refresh_expires_in": 7200,
  "refresh_token": "eyJhbGciOiJ.eyJleHAiO.arJwm6CI_Uxnkg",
  "token_type": "Bearer",
  "not-before-policy": 0,
  "session_state": "f4c02b45-9110-a368-1ad080ee9471",
  "scope": "email profile"
}
Scroll to Top