Update inventory lead time by SKU and warehouse
Configures the lead time for a SKU of a warehouse, and the period is added to the order's total shipping time.
Among other main use cases, lead time can represent an item's manufacturing time or scenarios where there are third-party suppliers, for example.
Lead time is an optional configuration and by default is set to 0 days.
Permissions
Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:
| Product | Category | Resource |
|---|---|---|
| Logistics | Logistics access | Logistics full access |
| Logistics | Logistics access | Logistics inventory full access |
You can create a custom role with that resource or use one of the following predefined roles:
| Role | Resource |
|---|---|
| Logistics - Full access | Logistics full access |
| OMS - Full access | Logistics full access |
| Logistics - Full access | Logistics inventory full access |
| OMS - Full access | Logistics inventory full access |
❗ Assigning a predefined role to users or application keys usually grants permission to multiple License Manager resources. If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see Best practices for using application keys. To learn more about machine authentication at VTEX, see Authentication overview.
Path parameters
Unique identifier of the SKU you wish to update.
Unique identifier of the warehouse of the SKU you wish to update.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Request body
Example request
{
"leadTime": "8.00:00:00"
}Response
No Content