My Account

POST https://developer.api.us.walmart.com/api-proxy/service/identity/oauth/v1/token

This request creates an access token.

An authentication token is required to make all requests.
The authentication token will be be valid for a limited period, indicated in the response body field expires_in.

This is typically added as the Authentication header value for the request.
For example, the complete access token would look like this:

"Authentication": "Bearer eyJraWQiOiI1NmM0M2M5My1...yJ8Ji-NRk8mVtXA"

The access token does not refresh automatically.
Walmart GoLocal recommends creating a new access token before each request to ensure a valid access token.

Example

This request creates an access token.

The client_id and client_secret values are only examples.
The parameters are sent in key-value pairs in x-www-form-urlencoded format.

POST https://developer.api.us.walmart.com/api-proxy/service/identity/oauth/v1/token

Request body:

Request Headers:
Content-Type: application/x-www-form-urlencoded
Accept: application/json Request Body:
grant_type: "client_credentials"
client_id: "7d55b982-faea-410d-a5c6-3cf6debb2973"
client_secret: "REPrXfS1yczHxrQMmouPt5WF9UgTL4ydl6o6_i2Izi4LjPAR9nLt-TjMwe3JQXyxktmk9dJJDooYhB-vBHcsOQ"

The response body:

{ "token_type": "Bearer", "expires_in": 900, "access_token": "eyJraWQiOiI1NmM0M2M5My1...yJ8Ji-NRk8mVtXA"
}

See Also

To book a delivery, see POST /deliveries.

To search for a delivery, see POST /deliveries/search.

Language
URL