Skip to Content

Get started as a seller

Get your API credentials, request an access token and make your first Marketplace API call.

If you sell on Walmart Marketplace, you can integrate directly with the Marketplace APIs using your own credentials. This page takes you from credentials to your first successful API call.

You can also connect an approved Solution Provider's app from the Walmart App Store instead of building your own integration. In that case the Solution Provider calls the APIs for you, and you don't need the steps below.

Before you begin

  • Complete seller onboarding in Seller Center and make sure your account is approved to sell.
  • Decide where your integration will run. Your Client Secret must stay on a server you control.

Step 1: Get your API credentials

Your API credentials are a Client ID and a Client Secret.

  1. In Seller Center, open the API Integration page and select API Key Management.
  2. Sign in to the Developer Portal with your Seller Center credentials.
  3. Copy the Client ID and Client Secret for your key pair.

Protect your Client Secret

Anyone with your Client ID and Client Secret can act on your account. Store them in a secrets manager or environment variables, and never log them or commit them to source control.

Step 2: Get an access token

Request a token from the Authorization API with the client_credentials grant. Authenticate with HTTP Basic, using your Client ID as the user name and your Client Secret as the password.

curl -X POST "https://marketplace.walmart.com/seller/v4/auth/token" \
  -u "$WALMART_CLIENT_ID:$WALMART_CLIENT_SECRET" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "Accept: application/json" \
  -d "grant_type=client_credentials"

The response contains your access token, its type and its lifetime in seconds:

{
  "access_token": "<access_token>",
  "token_type": "Bearer",
  "expires_in": 900
}

The client_credentials grant doesn't return a refresh token. When the token expires, request a new one the same way. If your account is active in more than one market, add the x-o-tenant header, for example x-o-tenant: WALMART_US. See OAuth 2.0 authorization for every option.

Step 3: Make your first call

Send the token in the Authorization header. A good first call is Get account details, which confirms that your token works and returns your seller profile:

GET /sellers/v4/account HTTP/1.1
Host: marketplace.walmart.com
Authorization: Bearer <access_token>
Accept: application/json

The full URL is https://marketplace.walmart.com/seller/v1/sellers/v4/account. A successful response looks like this:

{
  "sellerId": "<seller_id>",
  "businessName": "Example Goods LLC",
  "email": "ops@example.com",
  "accountStatus": "Active",
  "sellerType": "Marketplace",
  "createdAt": "2025-01-15T10:00:00Z"
}

Next, try pulling your new orders with Get orders:

GET /v4/orders?orderStatuses=Created&pageSize=50 HTTP/1.1
Host: marketplace.walmart.com
Authorization: Bearer <access_token>
Accept: application/json

Orders are returned in payload.orders. If payload.nextToken is present, pass it as nextToken to get the next page.

Step 4: Test in sandbox, then go live

Build and test against the sandbox servers before you touch live data:

ProductionSandbox
Token endpointhttps://marketplace.walmart.com/seller/v4/auth/tokenhttps://sandbox.marketplace.walmart.com/seller/v4/auth/token
All other APIshttps://marketplace.walmart.com/seller/v1https://sandbox.marketplace.walmart.com/seller/v1

When your integration handles success and error responses correctly in sandbox, switch the base URLs to production. Keep the base URL in configuration so you change it in one place. See Environments and sandbox.

Troubleshooting

  • 401 from the token endpoint: client authentication failed. Check your Client ID and Client Secret, and send them only once, either with HTTP Basic or in the form body.
  • 400 with invalid_request: the request is malformed, for example credentials were sent with HTTP Basic and in the body.
  • 403 from an API: your token doesn't grant access to that operation. See API scopes.
  • 429: you exceeded a rate limit. Back off and retry. See Rate limiting and errors.

Next steps

On this page