post https://{accountName}.{environment}.com.br/api/logistics/pvt/inventory/reservations
Creates reservation
Request body example
curl --location --request POST 'https://{accountName}.{environment}.com.br/api/logistics/pvt/inventory/reservation' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Accept: application/json' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--data-raw '{
"salesChannel": "2",
"lockId": null,
"autorizationExpirationTTL": "00:10:00",
"deliveryItemOptions": [{
"item": {
"id": "2390059",
"groupItemId": null,
"kitItem": [],
"quantity": 1,
"price": 0,
"additionalHandlingTime": "00:00:00",
"dimension": {
"weight": 800,
"height": 10,
"width": 12,
"length": 35
}
},
"slaType": "Normal",
"slaTypeName": "Normal",
"listPrice": 10.5,
"promotionalPrice": 10.5,
"transitTime": "2.00:00:00",
"dockTime": "00:00:00",
"timeToDockPlusDockTime": "1.00:00:00",
"aditionalTimeBlockedDays": "00:00:00",
"totalTime": "3.00:00:00",
"deliveryWindows": [],
"wareHouseId": null,
"dockId": null,
"location": {
"zipCode": "22220070",
"country": "BRA",
"inStore": {
"IsCheckedIn": false,
"StoreId": "180082"
}
}
}]
}'
Response body example
{
"LastUpdateDateUtc": "2016-04-15T19:59:20.0397988+00:00",
"SalesChannel": "2",
"LockId": "3bfe679d-c0a8-475a-b315-706f84a9deb4",
"ReservationDateUtc": "2016-04-15T19:59:20.0397988+00:00",
"MaximumConfirmationDateUtc": "2016-04-15T20:09:20.0397988+00:00",
"Status": 1,
"SlaRequest": [
{
"item": {
"id": "2390059",
"groupItemId": null,
"quantity": 1,
"price": 0,
"modal": null,
"additionalHandlingTime": "00:00:00",
"dimension": {
"weight": 800,
"height": 10,
"width": 12,
"length": 35,
"maxSumDimension": 0
},
"kitItem": [],
"unlimitedQuantity": false
},
"slaType": "Normal",
"slaTypeName": "Normal",
"freightTableName": "Correios PAC",
"freightTableId": "11cc4b6",
"listPrice": 10.5,
"promotionalPrice": 10.5,
"transitTime": "2.00:00:00",
"dockTime": "00:00:00",
"timeToDockPlusDockTime": "1.00:00:00",
"totalTime": "3.00:00:00",
"deliveryWindows": null,
"wareHouseId": "1937054",
"dockId": "1_1_1",
"wmsEndPoint": "",
"location": {
"zipCode": "22220070",
"country": "BRA",
"deliveryPointId": null,
"point": null,
"inStore": {
"IsCheckedIn": false,
"StoreId": "180082"
}
},
"pickupStoreInfo": null
}
],
"PickupPointItemOptions": null,
"CanceledDateUtc": "0001-01-01T00:00:00+00:00",
"AuthorizedDateUtc": "2016-04-15T19:59:20.0397988+00:00",
"ConfirmedDateUtc": "0001-01-01T00:00:00+00:00",
"Errors": [],
"IsSucess": true
}