Retrieve your API access_token

Before you can make API calls, you will need to retrieve your API access_tokenwith the Token API.

Use Token API in Postman
  1. Fork the Authentication API on Postman.
  2. Add your clientID and clientSecret as variables.
  3. Set up the Authentication to use Basic Auth with your clientID and clientSecret as the Username and Password (respectively).
  4. Set the POST Token API to “Inherit auth from parent”.
  5. Call the Post Token API. The response will have your access_token.
  6. (Optional) Under the Scripts tab, you could add the script below to the Post-response section to automatically update your access_token and add it as an Environment Variable every time you call the Post Token API. By default, the variable is named, “token”. You could change the name to something of your choice.

    tests["STATUS"] = responseCode.code === 200
    var response = JSON.parse(responseBody);
    pm.environment.set("token", response.access_token);
    

With your access_token , you can use it to make API calls with the other APIs offered by the Walmart Marketplace team. You will use the access_token for the WM_SEC.ACCESS_TOKEN header parameter (send the parameter with this format: Basic access_token ) for all other API calls.

A few of the frequently used APIs are listed below:

You can review the other APIs in the Marketplace Developer Portal.