API Authorization:

All the APIs that require access to data of a particular seller, would need authorization token of that seller. Whether an API requires authorization token or not can be found as part of the documentation of each of the APIs. Authorization token will enable corresponding API partner to access that sellers data. In order to generate this authorization token, seller’s Snapdeal Seller Credentials are to be entered once on Snapdeal Authorization Page. Follow below steps to generate authorization token

1377
Get snapdeal seller credentials like username and password by using   seller onboarding apis

📘

appId : After successful partner registration,snapdeal provides the ApplicationId.

📘
  1. Authorization of Seller for sandbox is done by this Snapdeal web UI URL

https://stg-authorize.snapdeal.com/authserverui/login?returnURL={RETURN_URL}&appId={appId}

📘
  1. Authorization of Seller for production is done by this Snapdeal web UI URL

https://authorize.snapdeal.com/authserverui/login?returnURL={RETURN_URL}&appId={appId}

833

📘

  1. Seller has to provide User Name/Password to authorize.
  2. Return URL above is the redirect URL upon completion.
  3. Seller now choses the capabilities he would like to authorize
451

📘

  1. Upon authorizing capabilities the Seller Access Token (X-Seller-Authz) is generated in the URL as below.
563

📘

X-Seller-Authz-Token is used from above for all API access.

Example curl to pricing Api with the X-Auth-Token and X-Seller-AuthZ-Token

curl -i -H"clientId:${yourBusinessName}" -H "X-Auth-Token: 1e1f876d28284bae902d8dc0f1b47241" -H "X-Seller-AuthZ-Token: e9954813-c398-4619-bef4-2b81378a05ad" https://staging-apigateway.snapdeal.com/seller-api/products/price/bulksupcs = SDL001124991 ,SDL564609422