post https://developer.api.us.walmart.com/api-proxy/service/identity/oauth/v1/token
This request creates an access token.
The access token (also called an authentication token) is required to make a request.
The access token is valid for a limited period, indicated in the response body field expires_in
.
The access token doesn't refresh automatically.
Walmart GoLocal recommends creating a new access token before each request to ensure a valid access token.
Example
This example creates an access token.
POST https://developer.api.us.walmart.com/api-proxy/service/identity/oauth/v1/token
Body:
The following are the body values:
Field | Value |
---|---|
Headers: Accept | application/json |
Headers: Content-Type | application/x-www-form-urlencoded |
Request Body: grant_type | client_credentials |
Request Body: client_id | f17d1eb5-53be-469c-9739-aa9897d6f855 |
Request Body: client_secret | AI14CD8eam0TTyp8zUIuKfT2u_BE0nHpZceF...jCFZYuEfkAVGEggU |