Calculate SLA
Checkout uses this endpoint to calculate a Service Level Agreement (SLA), a contract between the store and a customer about their order fulfillment conditions, such as the shipping estimated date.
The calculation of the estimated date considers the shipping policy and loading dock related to the order.
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 viewer |
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 viewer |
| Logistics - Read only | Logistics viewer |
❗ 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.
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
[
{
"items": [
{
"id": "1",
"quantity": 1,
"price": 14128.9,
"modal": "FURNITURE",
"additionalHandlingTime": "00:00:00",
"dimension": {
"weight": 86.37,
"height": 23.5,
"width": 65,
"length": 67.5,
"maxSumDimension": 243.9
},
"kitItem": [
{
"id": "2",
"kitItem": [
"1"
],
"quantity": 1,
"price": 1,
"additionalHandlingTime": "00:00:00",
"dimension": {
"weight": 1,
"height": 1,
"width": 1,
"length": 1,
"maxSumDimension": 5
}
}
],
"dockId": "1a8bce3",
"wareHouseId": "1937054"
}
],
"location": {
"zipCode": "22780084",
"country": "BRA",
"point": [
-43.23171615600586,
-22.990713500405295
],
"inStore": {
"StoreId": "180082"
}
},
"salesChannel": "1",
"deliveryChannel": "delivery"
}
]Response
OK