Delivery Windows
Manage delivery windows
Retrieves delivery windows for the specified delivery area and cart.
Note: You can filter out delivery windows before the store's cutoff time using the afterCutOffTime query parameter.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Delivery area’s unique identifier.
Customer cart’s unique identifier generated when a cart is created through the Cart Service.
Store’s site code. The default site code is main.
If set to true, only the delivery windows available after taking the store’s cutoff time into account are retrieved.
falseResource successfully retrieved.
Delivery window is a range of times when the shipment can be delivered to the customers.
Delivery window’s unique identifier.
Delivery date compliant with the ISO 8601 standard.
Delivery cycle.
Delivery zone’s unique identifier.
Delivery method name.
This denotes the latest point in time by which an action (such as an order or request) must be completed for a specific Delivery Time. Date is compliant with the ISO 8601 standard.
Delivery time slot's unique identifier.
Request syntactically incorrect. Details of the error are included in the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
GET /shipping/{tenant}/areaDeliveryTimes/{deliveryAreaId}/{cartId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "1234567890abcdef123abc0",
"deliveryDate": "2015-06-20T12:00:00.000Z",
"deliveryTimeRange": {
"startTime": "15:00",
"endTime": "23:00"
},
"deliveryMethod": "method1",
"cutOffTime": "10:00",
"slotId": "1234567890abcdef123abgi"
},
{
"id": "1234567890abcdef123abc1",
"deliveryDate": "2015-06-24T12:00:00.000Z",
"deliveryTimeRange": {
"startTime": "12:00",
"endTime": "16:00"
},
"deliveryMethod": "method1",
"cutOffTime": "11:00",
"slotId": "1234567890abcdef123abgh"
}
]Retrieves actual delivery windows for the specified cart.
NOTE: In order to properly retrieve delivery windows, the cart must have countryCode and zipCode specified.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Customer cart’s unique identifier generated when a cart is created through the Cart Service.
If provided, the endpoint searches for delivery windows using this postal code (zip code) instead of the one from the cart.
Resource successfully retrieved.
Delivery window is a range of times when the shipment can be delivered to the customers.
Delivery window’s unique identifier.
Delivery date compliant with the ISO 8601 standard.
Delivery cycle.
Delivery zone’s unique identifier.
Delivery method name.
This denotes the latest point in time by which an action (such as an order or request) must be completed for a specific Delivery Time. Date is compliant with the ISO 8601 standard.
Delivery time slot's unique identifier.
Request syntactically incorrect. Details of the error are included in the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
GET /shipping/{tenant}/actualDeliveryWindows/{cartId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "1234567890abcdef123abc0",
"deliveryDate": "2015-06-20T12:00:00.000Z",
"deliveryTimeRange": {
"startTime": "15:00",
"endTime": "23:00"
},
"deliveryMethod": "method1",
"cutOffTime": "2015-06-20T11:00:00.000Z",
"slotId": "1234567890abcdef123abgh",
"deliveryCycle": "2015-06-20-11"
},
{
"id": "1234567890abcdef123abc1",
"deliveryDate": "2015-06-24T12:00:00.000Z",
"deliveryTimeRange": {
"startTime": "12:00",
"endTime": "16:00"
},
"deliveryMethod": "method1",
"cutOffTime": "2015-06-20T10:00:00.000Z",
"slotId": "1234567890abcdef123abgi",
"deliveryCycle": "2015-06-24-10"
}
]Increases the number of orders in the delivery window counter if there is any capacity available.
NOTE
The delivery window counter increases automatically when the Emporix Checkout Service is utilized. This particular endpoint should only be utilized if there is a Custom Checkout Service implementation.
In case of any validation problem, the below errorCodes can be returned:
VALIDATION-DELIVERY-WINDOW-400001: Lack of required
slotIdproperty in the requestVALIDATION-DELIVERY-WINDOW-400002: Date is not in correct format
VALIDATION-DELIVERY-WINDOW-400003: Delivery window is fully booked or does not exist for given date
VALIDATION-DELIVERY-WINDOW-400004: Lack of required
zoneIdproperty in the requestVALIDATION-DELIVERY-WINDOW-500001: Internal problem with the service
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The selected delivery window
The selected delivery date
The slot that was selected for the delivery.
OK
DeliveryDate is not valid!.
Unauthorized
Some server side error occurred.
POST /shipping/{tenant}/actualDeliveryWindows/incrementCounter HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"deliveryWindowId": "text",
"deliveryDate": "text",
"slotId": "text"
}trueValidates the specified delivery window.
NOTE
The delivery window is validated automatically when the Emporix Checkout Service is utilized. This particular endpoint should only be utilized if there is a Custom Checkout Service implementation.
In case of any validation problem, the below errorCodes can be returned:
VALIDATION-DELIVERY-WINDOW-400001: Lack of required
slotIdproperty in the requestVALIDATION-DELIVERY-WINDOW-400002: Date is not in correct format
VALIDATION-DELIVERY-WINDOW-400003: Delivery window is fully booked or does not exist for given date
VALIDATION-DELIVERY-WINDOW-400004: Lack of required
zoneIdproperty in the requestVALIDATION-DELIVERY-WINDOW-500001: Internal problem with the service
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The selected delivery window
The selected delivery date
The slot that was selected for the delivery.
Resource successfully validated.
DeliveryDate is not valid!.
Unauthorized
Some server side error occurred.
POST /shipping/{tenant}/deliveryWindowValidation HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 84
{
"deliveryWindowId": "25",
"deliveryDate": "2021-01-15T12:00:00.000Z",
"slotId": "slot1"
}trueLast updated
Was this helpful?

