Skip to Content

Environments and sandbox

Production and sandbox base URLs, and how to test your integration before you go live.

The Marketplace APIs run in two environments. Production works on your live account: real listings, real orders and real money. Sandbox lets you build and test your integration without affecting your live business.

Base URLs

APIProductionSandbox
Authorizationhttps://marketplace.walmart.com/sellerhttps://sandbox.marketplace.walmart.com/seller
All other APIshttps://marketplace.walmart.com/seller/v1https://sandbox.marketplace.walmart.com/seller/v1

Paths in the API reference are relative to these servers, so the same path works in both environments. For example:

OperationSandbox URL
Create an access tokenPOST https://sandbox.marketplace.walmart.com/seller/v4/auth/token
Get ordersGET https://sandbox.marketplace.walmart.com/seller/v1/v4/orders
Get account detailsGET https://sandbox.marketplace.walmart.com/seller/v1/sellers/v4/account

Use sandbox credentials

Request your token from the Authorization API in the same environment you call. Use your sandbox credentials with the sandbox token endpoint, and your production credentials with the production token endpoint.

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

Then call the sandbox API server with the token:

GET /v4/orders?orderStatuses=Created HTTP/1.1
Host: sandbox.marketplace.walmart.com
Authorization: Bearer <sandbox_access_token>
Accept: application/json

What to test

Use sandbox to prove that your integration handles the full flow, not just the happy path.

  1. Authorization. Get a token, cache it and request a new one before it expires. For delegated apps, test the authorization_code and refresh_token grants. See OAuth 2.0 authorization.
  2. Your core workflows. Run the flows your business depends on end to end, for example:
    • Set up and update listings. See Items.
    • Retrieve, acknowledge and ship orders. See Orders.
    • Update inventory. See Inventory.
  3. Pagination. Follow continuation tokens until no token is returned.
  4. Error handling. Confirm your code reads the errors array and acts on each code, and that it handles 400, 403, 404, 429 and 5xx responses. See Rate limiting and errors.
  5. Asynchronous work. For feeds, reports and other jobs that complete later, confirm that your code polls for status and picks up the result.

Go live

  1. Get your production credentials.
  2. Switch the token endpoint and the API base URL to production. Keep both in configuration so you change them in one place.
  3. Start with read-only calls, such as Get account details, to confirm your production token works.
  4. Turn on write operations once reads succeed.

Production changes are real

In production, acknowledging, shipping, cancelling and refunding orders, and changing prices or inventory, affect your live business and your customers.

On this page