API : Personal Datas Access

Last updated: Mars 14, 2019

How to Use ?

Personal Datas Access


Description - These are the set of new APIs which are used for update ,edit and create customer information. With these new APIs you can access a user profile information. With these APIs you cannot use login , creation and forgotten password functionality because these functionality are under DKlogin feature. To use these feature you need access token of the user coming from DKLogin offering The Features which are present as of today

  • To get or edit personal information
  • To get or edit contact information
  • To Add or delete or change user favourite store
  • To Add or delete or change user optin options



How to get or edit identity information of a user ?


Step 1 Get the access token from DKlogin , this we have explained in DKlogin Presentation document.

Step 2 Now subscribe on API management portal for Sports User New apis. Once your request is validated you will get a api key. You need this api key to pass through API management proxy.

Step 3
GET https://api-global.decathlon.net/sports_user/identity

Headers :
Name Value Required
Authorization Bearer Yes
x-api-key The x-api-key you get bay subscibing API Sports User No

Examples


Example :
curl -X GET \
  https://api-global.decathlon.net/sports_user/identity \
  -H 'Authorization: Bearer eyJhbGciOiJSUz1NiJ9.eyJjb3VudHJ5IjoiRlIiLCJzdWIiOiI4Mjk4MDQ0Zi1lMzAzLTRiYzctYmYyZi0wY2E4M2QyMDJmMmYiLCJpc3MiOiJka2Nvbm5lY3QucHJlcHJvZC5vcmciLCJsYXN0X25hbWUiOiJWVjMiLCJkYXRhX2NlbnRlciI6IkVVIiwicGVyc29uaWQiOiI5OTAxNDM0MDQwMyIsImV4cCI6MTUzNDkyNjIwNywiZmlyc3RfbmFtZSI6InZ2MSIsImlhdCI6MTUzNDkyNTMwNywiY2xpZW50X2lkIjoiYWE2ZmQ0NWMtZWVhMC00MWZjLTllMjctNmE3YjNhYTUwYjAyIn0.qERGiO6WD8NrdH_t3kYBL7jSLA66sAS8DXH84wX0tU-J7EROBAdTV8e120JKLJph3c2M5dntwOkKywe7pRdJ32pH0THGHhq4S4FIQ31sA7WYhm1Gmi_YnHEnaStzUmKPFJfFjywanIdmFxtAftFoD0xM9QuMyfIEqZ1_jLlitnJ2AAtBfAkCDgoLXNhR7sVB9Z7Z99ltbbk9zMkYRd7ToFyYJGXarvXCokO8rgMDCNu3_P0KywU83CAb3iBYVYTKyJyGOIC0ExHGLtMwm3xOsby3J6AJCPZ4L3w7RWfkdTGTLaU7YBFyU2qhhFzlAruyKGJ98TLujpBhTQBBm0CfPQ' \
  -H 'Cache-Control: no-cache' \
  -H 'x-api-key: XXXXXXX-28eb-4dae-8bf4-b16b374b3452'
                                           
                                            
Response :
{
    "firstname": "vv1",
    "middlename": "vv2",
    "lastname": "VV3",
    "birthdate": null,
    "gender": "MALE",
    "language": "fr",
    "company": null
}

                                           
                                            

Terms & Services