Update lag time for an item
Use the Lag time feed to update fulfillment lag time for many SKUs in one request. Lag time is the number of days between order date and ship date. Most items must ship the same day or the next day. If you need 2 days or more, request approval at the category level first. Use this endpoint to:
- Set or change lag time for multiple SKUs.
- Target a specific ship node when your catalog uses multiple nodes.
- Align item handling times with your operational reality.
Prerequisites
- Walmart Marketplace API access and OAuth 2.0 token.
- Approval for any values that are 2 days or more.
- Knowledge of your SKUs, optional GTINs, and any ship node IDs.
Best practices
- Keep lag time at 0 or 1 day whenever possible.
- Request approval before you set 2 days or more.
- Start with a small pilot feed. Expand after you confirm processing results.
- Use a unique
WM_QOS.CORRELATION_IDper request to simplify support. - Match the payload to the official schema files. Do not add extra fields.
- Align values with your operations. Do not set a value you cannot meet.
Endpoint
POST `https://marketplace.walmartapis.com/v3/feeds?feedType=lagtime`
This endpoint submits a bulk feed to update lag time.
Query parameters
feedType=lagtime(required)
Required headers
WM_SEC.ACCESS_TOKENWM_QOS.CORRELATION_IDWM_SVC.NAMEWM_CONSUMER.CHANNEL.TYPE(optional)Accept: application/jsonContent-Type: application/jsonorapplication/xml
Request body
Supply one or more items. Each item should include an identifier and a fulfillmentLagTime value in days.
JSON (example)
Assumption, based on common feed patterns and your attachment. Confirm wrapper names in the schema package before production.
{ "lagTime": [ { "sku": "ABC-123", "fulfillmentLagTime": 1 }, { "sku": "DEF-456", "fulfillmentLagTime": 2, "shipNode": "1234567890" }, { "gtin": "00012345678905", "fulfillmentLagTime": 0 } ]
}
XML (example)
Assumption. Wrapper and element names may differ. Use the Lag Time schema from the portal’s ZIP package when you prepare XML.
<LagTimeFeed> <lagTime> <sku>ABC-123</sku> <fulfillmentLagTime>1</fulfillmentLagTime> </lagTime> <lagTime> <sku>DEF-456</sku> <shipNode>1234567890</shipNode> <fulfillmentLagTime>2</fulfillmentLagTime> </lagTime> <lagTime> <gtin>00012345678905</gtin> <fulfillmentLagTime>0</fulfillmentLagTime> </lagTime>
</LagTimeFeed>
Request and response
Sample request
curl -L 'https://marketplace.walmartapis.com/v3/feeds?feedType=lagtime' -H 'WM_QOS.CORRELATION_ID: 1c9a6f4e-9f74-4b2b-bd7f-2a7e9a9d1a01' -H 'WM_SVC.NAME: Walmart Marketplace' -H 'WM_SEC.ACCESS_TOKEN: <access_token>' -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{ "lagTime": [ { "sku": "ABC-123", "fulfillmentLagTime": 1 }, { "sku": "DEF-456", "fulfillmentLagTime": 2, "shipNode": "1234567890" } ] }'
Modify your code
- Keep
feedType=lagtimein the query string. - Replace the example SKUs with your identifiers. You can send
skuorgtinfor each line. - If your catalog uses multiple ship nodes, include
shipNodefor the items that require it. - Set
fulfillmentLagTimeto the number of days you can meet in operations. Use 0 or 1 unless you have approval for 2 or more. - Replace
<access_token>with a valid OAuth 2.0 token in theWM_SEC.ACCESS_TOKENheader. - Generate a new unique
WM_QOS.CORRELATION_IDfor every request. KeepWM_SVC.NAMEand theAcceptandContent-Typeheaders as shown. - Send the request body as JSON or XML that matches the Lag Time schema. Do not add extra fields.
- Read the 202 response and capture
feedId. - Poll
GET /v3/feeds/{feedId}until processing completes. Review any line level errors. - Spot check a few items with
GET /v3/lagtimeto confirm the new values.
Result
{ "feedId": "3AF227D8C8E649E1B0A4D2B1F8E4C7A6", "feedType": "lagtime", "ingestionStatus": "INPROGRESS", "itemsReceived": 2
}
Check processing status
After you submit the feed, poll feed status to confirm success and review any errors.
GET `https://marketplace.walmartapis.com/v3/feeds/{feedId}`
Typical terminal values:
PROCESSEDPROCESSED_WITH_ERRORSERROR
When the status is processed, validate a few items with GET /v3/lagtime using the same identifiers.
How it works
- Build a JSON or XML feed with your SKUs and the new
fulfillmentLagTimevalues. - Submit the feed with
feedType=lagtime. - Capture the
feedIdfrom the 202 response. - Poll feed status until processed.
- Validate a sample of SKUs with the GET Lag time endpoint.
- If any lines failed, fix the items and resubmit only the failed ones.
Troubleshooting
-
400 Bad Request
The feed body does not match the schema orfeedTypeis missing. Validate against the Lag Time schema. -
401 Unauthorized
The access token is missing or expired. Get a new token and retry. -
403 Forbidden
Your role or account lacks permission for the action. Confirm account status and scopes. -
429 Too Many Requests
You are sending feeds too quickly. Slow down and retry with backoff. -
Item level errors
Check the feed result details for each failed line. Common causes include unknown SKU, invalidshipNode, orfulfillmentLagTimeoutside allowed range.
Related
- GET lag time for an item. Retrieve the current
fulfillmentLagTimefor a single item. - Shipping configuration. Review account level settings and any approved exceptions.
Updated about 20 hours ago
