Download OpenAPI specification:Download
Define shipping zones & delivery windows.
Key Features:
Key Benefits:
Creates a new customer-group relation for the specified site.
shipping.shipping_manage
Resource successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "customerId": "C001",
- "groupId": "group1"
}
{- "id": "group1"
}
Retrieves a list of customer-group relations for the specified site.
No specific scopes required
Resource successfully retrieved.
Unauthorized
Some server side error occurred.
[- {
- "customerId": "C001",
- "groupId": "group1"
}, - {
- "customerId": "C002",
- "groupId": "group2"
}
]
Retrieves customer-group relations for the specified customer.
No specific scopes are required.
Resource successfully retrieved.
Unauthorized
Some server side error occurred.
{- "customerId": "C001",
- "groupId": "group1"
}
Updates the customer-group relation for the specified customer.
shipping.shipping_manage
Resource successfully updated.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "customerId": "C001",
- "groupId": "group1"
}
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Deletes the customer-group relation for the specified customer.
shipping.shipping_manage
Resource successfully deleted.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Some server side error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
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.
No specific scopes are required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
[- {
- "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.
No specific scopes are required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
[- {
- "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.
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:
slotId
property in the requestzoneId
property in the requestNo specific scopes are required.
OK
DeliveryDate is not valid!.
Unauthorized
Some server side error occurred.
{- "deliveryWindowId": "string",
- "deliveryDate": "string",
- "slotId": "string"
}
true
Validates the specified delivery window.
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:
slotId
property in the requestzoneId
property in the requestNo specific scopes are required.
Resource successfully validated.
DeliveryDate is not valid!.
Unauthorized
Some server side error occurred.
{- "deliveryWindowId": "25",
- "deliveryDate": "2021-01-15T12:00:00.000Z",
- "slotId": "slot1"
}
true
The endpoint will return shipping methods, which contain the matching fee for all zones.
No specific scopes are required.
Shipping costs calculated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "customerId": "C001",
- "cartTotal": {
- "amount": 100.34,
- "currency": "USD"
}, - "shipFromAddress": {
- "street": "Patterson Fork Road",
- "streetNumber": "2095",
- "zipCode": "60606",
- "city": "Chicago",
- "country": "US",
- "state": "IL"
}, - "shipToAddress": {
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN"
}
}
[- {
- "zone": {
- "id": "europe",
- "name": {
- "en": "Europe",
- "de": "Europa"
}
}, - "methods": [
- {
- "id": "fedex-2dayground",
- "name": {
- "en": "FedEx 2Day",
- "de": "FedEx 2 Tage"
}, - "fee": {
- "amount": 4.99,
- "currency": "EUR"
}
}, - {
- "id": "dhl",
- "name": "DHL",
- "fee": {
- "amount": 2.99,
- "currency": "EUR"
}
}
]
}, - {
- "zone": {
- "id": "northamerica",
- "name": {
- "en": "North America",
- "de": "Nord Amerika"
}
}, - "methods": [
- {
- "id": "dhl-air",
- "name": {
- "en": "DHL Air",
- "de": "DHL Flug"
}, - "fee": {
- "amount": 9.99,
- "currency": "EUR"
}
}, - {
- "id": "dhl-normal",
- "name": "DHL Normal",
- "fee": {
- "amount": 5.99,
- "currency": "EUR"
}
}
]
}
]
Retrieves the minimum shipping cost.
No specific scopes are required.
Shipping costs calculated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "customerId": "C001",
- "cartTotal": {
- "amount": 100.34,
- "currency": "USD"
}, - "shipFromAddress": {
- "street": "Patterson Fork Road",
- "streetNumber": "2095",
- "zipCode": "60606",
- "city": "Chicago",
- "country": "US",
- "state": "IL"
}, - "shipToAddress": {
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN"
}
}
{- "fee": {
- "amount": 4.99,
- "currency": "EUR"
}
}
Retrieves the minimum slot shipping cost.
No specific scopes are required.
Shipping costs calculated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "customerId": "C0012",
- "cartTotal": {
- "amount": 100.34,
- "currency": "USD"
}, - "deliveryWindowId": "123",
- "slotId": "456"
}
{- "fee": {
- "amount": 4.99,
- "currency": "EUR"
}
}
Creates a new shipping method for the specified site and shipping zone.
shipping.shipping_manage
Resource successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "id": "fedex-2dayground",
- "name": "FedEx 2Day",
- "active": true,
- "maxOrderValue": {
- "amount": 5000,
- "currency": "EUR"
}, - "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 10,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 9,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 200,
- "currency": "EUR"
}, - "cost": {
- "amount": 8,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
]
}
{- "id": "fedex-2dayground"
}
Retrieves shipping methods for the specified site and shipping zone.
No specific scopes are required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
[- {
- "id": "fedex-2dayground",
- "name": "FedEx 2Day",
- "active": true,
- "maxOrderValue": {
- "amount": 5000,
- "currency": "EUR"
}, - "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 10,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 9,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 200,
- "currency": "EUR"
}, - "cost": {
- "amount": 8,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
]
}, - {
- "id": "ups-standard",
- "name": "UPS Standard",
- "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 5,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 2,
- "currency": "EUR"
}, - "shippingGroupId": "group3"
}
]
}
]
Retrieves the specified shipping method's details.
No specific scopes are required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "id": "fedex-2dayground",
- "name": "FedEx 2Day",
- "active": true,
- "maxOrderValue": {
- "amount": 5000,
- "currency": "EUR"
}, - "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 10,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 9,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 200,
- "currency": "EUR"
}, - "cost": {
- "amount": 8,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
]
}
Fully updates the specified shipping method.
shipping.shipping_manage
Resource successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "id": "fedex-2dayground",
- "name": "FedEx 2Day",
- "active": true,
- "maxOrderValue": {
- "amount": 5000,
- "currency": "EUR"
}, - "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 10,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 9,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 200,
- "currency": "EUR"
}, - "cost": {
- "amount": 8,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
]
}
{- "status": 400,
- "message": "validation_violation.",
- "type": "validation_violation",
- "details": [
- {
- "field": "name",
- "message": "name This field is required. Please provide either value in the content language or a translation map.",
- "type": "invalid_field"
}, - {
- "field": "id",
- "message": "id must not be null",
- "type": "missing_field"
}, - {
- "field": "fees",
- "message": "fees may not be empty",
- "type": "invalid_field"
}
]
}
Partially updates the specified shipping method.
shipping.shipping_manage
Partial update operation will update only fields which are in the payload.
Resource successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "id": "fedex-2dayground",
- "name": "FedEx 2Day",
- "active": true,
- "maxOrderValue": {
- "amount": 5000,
- "currency": "EUR"
}, - "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 10,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 9,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 200,
- "currency": "EUR"
}, - "cost": {
- "amount": 8,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
]
}
{- "status": 400,
- "message": "validation_violation.",
- "type": "validation_violation",
- "details": [
- {
- "field": "name",
- "message": "name This field is required. Please provide either value in the content language or a translation map.",
- "type": "invalid_field"
}, - {
- "field": "id",
- "message": "id must not be null",
- "type": "missing_field"
}, - {
- "field": "fees",
- "message": "fees may not be empty",
- "type": "invalid_field"
}
]
}
Deletes the specified shipping method.
shipping.shipping_manage
Resource successfully deleted.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Creates a new shipping zone for the specified site.
shipping.shipping_manage
Resource successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "shipTo": [
- {
- "country": "DE",
- "postalCode": "70190"
}
], - "name": "Zone 1",
- "id": "zone1",
- "default": true
}
{- "id": "zone1"
}
Retrieves shipping zones for the specified site.
No specific scopes required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Some server side error occurred.
[- {
- "id": "zone1",
- "name": "Zone 1",
- "shipTo": [
- {
- "country": "DE",
- "postalCode": "70190"
}
], - "default": true
}, - {
- "id": "zone2",
- "name": "Zone 2",
- "shipTo": [
- {
- "country": "DE",
- "postalCode": "70192"
}
], - "default": false
}
]
Retrieves the specified shipping zone's details.
No specific scopes required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "id": "zone1",
- "name": "Zone 1",
- "shipTo": [
- {
- "country": "DE",
- "postalCode": "70190"
}
], - "default": true
}
Fully updates the specified shipping zone.
shipping.shipping_manage
Resource successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "shipTo": [
- {
- "country": "DE",
- "postalCode": "70190"
}
], - "name": "Zone 1",
- "id": "zone1",
- "default": true
}
{- "status": 400,
- "message": "The request violates validation constraints.",
- "type": "validation_violation",
- "errorCode": "ENTITY-400001",
- "details": [
- {
- "field": "shipTo[0].country",
- "message": "shipTo[0].country Provided value is not a valid country code",
- "type": "invalid_field"
}
]
}
Partially updates the specified shipping zone.
shipping.shipping_manage
Partial update operation will update only fields which are in the payload.
Resource successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "shipTo": [
- {
- "country": "DE",
- "postalCode": "70190"
}
], - "name": "Zone 1",
- "id": "zone1",
- "default": true
}
{- "status": 400,
- "message": "The request violates validation constraints.",
- "type": "validation_violation",
- "errorCode": "ENTITY-400001",
- "details": [
- {
- "field": "shipTo[0].country",
- "message": "shipTo[0].country Provided value is not a valid country code",
- "type": "invalid_field"
}
]
}
Deletes the specified shipping zone.
shipping.shipping_manage
Resource successfully deleted.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "moreInfo": "",
- "type": "validation_violation",
- "details": [
- {
- "field": "tenant",
- "message": "size must be between 2 and 16",
- "type": "invalid_header"
}
]
}
Creates a new shipping group for the specified site.
shipping.shipping_manage
Resource successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "id": "group1",
- "description": {
- "en": "This is the description for the group group1.",
- "de": "Dies ist die Beschreibung für die Gruppe group1."
}
}
{- "id": "group1"
}
Retrieves a list of shipping groups for the specified site.
No specific scopes required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Some server side error occurred.
[- {
- "id": "group1",
- "description": {
- "en": "This is the description for the group group1.",
- "de": "Dies ist die Beschreibung für die Gruppe group1."
}
}, - {
- "id": "group2",
- "description": {
- "en": "This is the description for the group group2.",
- "de": "Dies ist die Beschreibung für die Gruppe group2."
}
}
]
Retrieves the specified shipping group's details.
No specific scopes required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "id": "group1",
- "description": {
- "en": "This is the description for the group group1.",
- "de": "Dies ist die Beschreibung für die Gruppe group1."
}
}
Fully updates the specified shipping group.
shipping.shipping_manage
Resource successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "id": "group1",
- "description": {
- "en": "This is the description for the group group1.",
- "de": "Dies ist die Beschreibung für die Gruppe group1."
}
}
{- "status": 400,
- "message": "The request violates validation constraints.",
- "type": "validation_violation",
- "details": [
- {
- "field": "description",
- "message": "Cannot specify multiple localizations when 'Content-Language' header is set.",
- "type": "invalid_field"
}
]
}
Deletes the specified shipping group.
shipping.shipping_manage
Resource successfully deleted.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Some server side error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Retrieves a list of sites with zones where the postal code matches the postalCode
passed in the request body.
No specific scopes are required.
Resource successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
The requested resource does not exist.
Some server side error occurred.
{- "postalCode": "70190",
- "country": "DE"
}
[- {
- "id": "main",
- "zones": [
- {
- "id": "deliveryarea",
- "name": {
- "en": "Delivery area Mordor"
}, - "shipTo": [
- {
- "country": "DE",
- "postalCode": "70190"
}
], - "methods": [
- {
- "id": "1-2_hours_timeframe",
- "name": {
- "en": "1-2_hours_timeframe",
- "de": "1-2 Stunden Lieferzeitfenster"
}, - "maxOrderValue": {
- "amount": 1000,
- "currency": "EUR"
}, - "active": true,
- "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 40,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 0,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 12,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
], - "shippingTaxCode": "HALF"
}, - {
- "id": "3_hours_timeframe",
- "name": {
- "en": "3_hours_timeframe",
- "de": "3 Stunden Lieferzeitfenster"
}, - "maxOrderValue": {
- "amount": 1000,
- "currency": "EUR"
}, - "active": true,
- "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 30,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 30,
- "currency": "EUR"
}, - "cost": {
- "amount": 31,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 32,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
], - "shippingTaxCode": "HALF"
}, - {
- "id": "4-more_hours_timeframe",
- "name": {
- "en": "4-more hours timeframe",
- "de": "4-mehr Stunden Lieferzeitfenster"
}, - "maxOrderValue": {
- "amount": 2000,
- "currency": "EUR"
}, - "active": true,
- "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 20,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 30,
- "currency": "EUR"
}, - "cost": {
- "amount": 41,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 42,
- "currency": "EUR"
}, - "shippingGroupId": "group2"
}
], - "shippingTaxCode": "ZERO"
}, - {
- "id": "pickup",
- "name": {
- "en": "pickup",
- "de": "pickup"
}, - "maxOrderValue": {
- "amount": 1000,
- "currency": "EUR"
}, - "active": true,
- "fees": [
- {
- "minOrderValue": {
- "amount": 0,
- "currency": "EUR"
}, - "cost": {
- "amount": 18,
- "currency": "EUR"
}
}, - {
- "minOrderValue": {
- "amount": 50,
- "currency": "EUR"
}, - "cost": {
- "amount": 55,
- "currency": "EUR"
}, - "shippingGroupId": "group1"
}
], - "shippingTaxCode": "ZERO"
}
], - "actualDeliveryWindows": [
- {
- "id": "5b5572a71cf31a000f31eee6",
- "deliveryDate": "2020-12-08T12:00:00.000Z",
- "deliveryTimeRange": {
- "startTime": "15:00",
- "endTime": "22:00"
}, - "zoneId": "deliveryarea",
- "deliveryMethod": "method1",
- "cutOffTime": "2020-12-08T11:00:00.000Z",
- "slotId": "1234567890abcdef123abgi",
- "deliveryCycle": "2020-12-08-11"
}, - {
- "id": "5b5572a71cf31a000f31eee6",
- "deliveryDate": "2020-12-15T12:00:00.000Z",
- "deliveryTimeRange": {
- "startTime": "15:00",
- "endTime": "22:00"
}, - "deliveryCycle": "2020-12-15-10",
- "zoneId": "deliveryarea",
- "deliveryMethod": "method1",
- "cutOffTime": "2020-12-15T10:00:00.000Z",
- "slotId": "1234567890abcdef123abgh"
}
]
}
], - "metadata": {
- "createdAt": "2020-10-19T13:04:09.894Z",
- "modifiedAt": "2020-10-19T13:04:10.979Z",
- "version": 1
}
}
]
Returns all the delivery times defined for the given tenant.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_read
OK
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Some server side error occurred.
[- {
- "siteCode": "main",
- "name": "deliverytime1",
- "isDeliveryDay": true,
- "zoneId": "zone1",
- "day": {
- "weekday": "FRIDAY"
}, - "isForAllZones": false,
- "timeZoneId": "Europe/Warsaw",
- "deliveryDayShift": 0,
- "slots": [
- {
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
], - "metadata": {
- "createdAt": "2020-10-19T13:04:09.894Z",
- "modifiedAt": "2020-10-19T13:04:10.979Z",
- "version": 1
}
}, - {
- "siteCode": "main",
- "timeZoneId": "UTC",
- "name": "deliverytime2",
- "isDeliveryDay": true,
- "zoneId": "zone2",
- "day": {
- "singleDate": "2023-06-12T10:00:00.000Z"
}, - "isForAllZones": false,
- "deliveryDayShift": 2,
- "slots": [
- {
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "cutOffDayShift": 1,
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
], - "metadata": {
- "createdAt": "2020-10-19T13:04:09.894Z",
- "modifiedAt": "2020-10-19T13:04:10.979Z",
- "version": 1
}
}
]
Creates a single delivery time. Delivery time allows to specify the cut off times for a specific zone and day of the week.
The endpoint has a validation which checks:
zoneId
belongs to the sitetimeFrom
is before timeTo
In case of any validation problem, the below errorCodes
can be returned:
slots
propertyweekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing oneisForAllZones
flag is active dateFrom
cannot be after dateTo
isForAllZones
flag cannot be active for delivery daytimeZoneId
is incorrectcutOffTime
cannot be after 'timeTo'shipping.shipping_manage
Created
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "siteCode": "main",
- "name": "deliverytime1",
- "isDeliveryDay": true,
- "zoneId": "zone1",
- "day": {
- "weekday": "FRIDAY"
}, - "isForAllZones": false,
- "timeZoneId": "Europe/Warsaw",
- "deliveryDayShift": 0,
- "slots": [
- {
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
]
}
{- "id": "647d937ea45a82228e887ab1"
}
Creates multiple delivery times in a single request.
The endpoint has a validation which checks:
zoneId
belongs to the sitetimeFrom
is before timeTo
In case of any validation problem, the below errorCodes
can be returned:
slots
propertyweekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing oneisForAllZones
flag is active dateFrom
cannot be after dateTo
isForAllZones
flag cannot be active for delivery daytimeZoneId
is incorrectcutOffTime
cannot be after 'timeTo'shipping.shipping_manage
Multi-status with all the details
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Some server side error occurred.
[- {
- "siteCode": "main",
- "name": "deliverytime1",
- "isDeliveryDay": true,
- "zoneId": "zone1",
- "day": {
- "weekday": "MONDAY"
}, - "isForAllZones": false,
- "timeZoneId": "Europe/Warsaw",
- "deliveryDayShift": 0,
- "slots": [
- {
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
]
}, - {
- "siteCode": "main",
- "name": "deliverytime1",
- "isDeliveryDay": true,
- "zoneId": "zone2",
- "day": {
- "weekday": "FRIDAY"
}, - "isForAllZones": false,
- "timeZoneId": "Europe/Warsaw",
- "deliveryDayShift": 0,
- "slots": [
- {
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
]
}
]
[- {
- "id": "123456789",
- "index": 0,
- "code": 400,
- "status": "BAD_REQUEST",
- "errorCodes": [
- "DELIVERY-TIME-404001"
], - "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- "siteCode cannot be null"
]
}
]
Retrieves a specific delivery time.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_read
OK
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "id": "648700f2d23c990ec006fd06",
- "siteCode": "main",
- "name": "deliverytime3",
- "isDeliveryDay": true,
- "zoneId": "zone3",
- "day": {
- "singleDate": "2023-06-12T10:00:00.000Z"
}, - "isForAllZones": false,
- "timeZoneId": "Europe/Warsaw",
- "deliveryDayShift": 0,
- "slots": [
- {
- "id": "5bb01144-7c72-4659-9ca2-f1f435108c63",
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "cutOffDayShift": 1,
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
], - "metadata": {
- "createdAt": "2023-06-12T11:26:42.250Z",
- "modifiedAt": "2023-06-12T11:26:42.250Z",
- "version": 1
}
}
Updates a single delivery time with a given information. Optimistic locking is validated only if the 'metadata' property is provided.
The endpoint has a validation which checks:
zoneId
belongs to the sitetimeFrom
is before timeTo
Note: Depending on a case, a different set of fields is allowed.
In case of any validation problem, the below errorCodes
can be returned:
slots
propertyweekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing oneisForAllZones
flag is active dateFrom
cannot be after dateTo
isForAllZones
flag cannot be active for delivery daytimeZoneId
is incorrectcutOffTime
cannot be after 'timeTo'shipping.shipping_manage
OK
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "siteCode": "main",
- "name": "deliverytime1",
- "isDeliveryDay": true,
- "zoneId": "zone1",
- "day": {
- "weekday": "FRIDAY"
}, - "isForAllZones": false,
- "timeZoneId": "Europe/Warsaw",
- "deliveryDayShift": 0,
- "slots": [
- {
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
], - "metadata": {
- "version": 1
}
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "moreInfo": "",
- "type": "validation_violation",
- "details": [
- {
- "field": "tenant",
- "message": "size must be between 2 and 16",
- "type": "invalid_header"
}
]
}
Partially updates a single delivery time with a given information.
Depending on a case, a different set of fields is allowed.
The endpoint has a validation which checks:
zoneId
belongs to the sitetimeFrom
is before timeTo
The patch request consists of set of operation, that should be defined according to RFC-6902 standard
In case of any validation problem, the below errorCodes
can be returned:
slots
propertyweekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing oneisForAllZones
flag is active dateFrom
cannot be after dateTo
isForAllZones
flag cannot be active for delivery daytimeZoneId
is incorrectcutOffTime
cannot be after 'timeTo'shipping.shipping_manage
OK
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
[- {
- "op": "replace",
- "path": "/name",
- "value": "newdeliverytime"
}
]
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "moreInfo": "",
- "type": "validation_violation",
- "details": [
- {
- "field": "tenant",
- "message": "size must be between 2 and 16",
- "type": "invalid_header"
}
]
}
Deletes a specific delivery time with all slots that it had created.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_manage
No Content
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Some server side error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Retrieves all the slots for a given delivery time.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_read
OK
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
[- {
- "id": "5bb01144-7c72-4659-9ca2-f1f435108c63",
- "shippingMethod": "method1",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "cutOffDayShift": 1,
- "deliveryCycleName": "morning"
}, - "capacity": 100
}
]
Creates a new time slot for the given delivery time.
In case of any validation problem, the below errorCodes
can be returned:
weekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing onecutOffTime
cannot be after 'timeTo'shipping.shipping_manage
Created
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "shippingMethod": "method2",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "cutOffDayShift": 1,
- "deliveryCycleName": "evening"
}, - "capacity": 100
}
{- "id": "800c4f51-035d-43b4-bbbb-b9ba0c630242"
}
Deletes all the time slots for the given delivery time.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_manage
No Content
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Retrieves the given delivery time slot's details.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_read
OK
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "id": "800c4f51-035d-43b4-bbbb-b9ba0c630242",
- "shippingMethod": "method2",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "cutOffDayShift": 1,
- "deliveryCycleName": "evening"
}, - "capacity": 100
}
Updates a single delivery time slot with given information.
Depending on a case, a different set of fields is allowed.
In case of any validation problem, the below errorCodes
can be returned:
weekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing onecutOffTime
cannot be after 'timeTo'shipping.shipping_manage
OK
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "shippingMethod": "method2",
- "deliveryTimeRange": {
- "timeFrom": "10:00",
- "timeTo": "12:00"
}, - "cutOffTime": {
- "time": "2023-06-12T06:00:00.000Z",
- "cutOffDayShift": 1,
- "deliveryCycleName": "evening"
}, - "capacity": 100
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "moreInfo": "",
- "type": "validation_violation",
- "details": [
- {
- "field": "tenant",
- "message": "size must be between 2 and 16",
- "type": "invalid_header"
}
]
}
Partially updates a single delivery time slot with given information.
Note: Depending on a case, a different set of fields is allowed.
The patch request consists of a set of operations, that should be defined according to RFC-6902 standard
In case of any validation problem, the below errorCodes
can be returned:
weekday
type overlaps on existing onesingleDay
type overlaps on existing onedatePeriod
type overlaps on existing onecutOffTime
cannot be after 'timeTo'shipping.shipping_manage
OK
Request syntactically incorrect. Any details will be provided within the response payload.
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
[- {
- "op": "replace",
- "path": "/shippingMethod",
- "value": "testMethod"
}
]
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "moreInfo": "",
- "type": "validation_violation",
- "details": [
- {
- "field": "tenant",
- "message": "size must be between 2 and 16",
- "type": "invalid_header"
}
]
}
Deletes a single delivery time slot.
In case of any validation problem, the below errorCodes
can be returned:
shipping.shipping_manage
No Content
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Generates a delivery cycle.
shipping.shipping_manage
CREATED
Unauthorized
Given authorization scopes are not sufficient and do not match required scopes.
The requested resource does not exist.
Some server side error occurred.
{- "deliveryTimeId": "64a80cf4c123c90e6c263789",
- "slotId": "bdf61ee4-25f4-48af-94c3-ccea8612aefa",
- "deliveryDate": "2020-12-08T12:00:00.000Z"
}
"string"