Retrieve your API access_token
Before you can make API calls, you will need to retrieve your API access_token
with the Token API.
Use Token API in Postman
- Fork the Authentication API on Postman.
- Add your
clientID
andclientSecret
as variables. - Set up the Authentication to use Basic Auth with your
clientID
andclientSecret
as the Username and Password (respectively). - Set the POST Token API to “Inherit auth from parent”.
- Call the Post Token API. The response will have your
access_token
. - (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.
Updated about 1 month ago