Create a collection of delivery groups in a cart.
Operation ID: postDeliveryGroupCollectionCreate a collection of delivery groups in a cart.
curl "https://{yourinstance}.salesforce.com/services/data/v64.0/commerce/webstores/{webstoreId}/carts/{activeCartOrId}/delivery-groups" \
-X POST \
-H "content-type: application/json" \
-d '{
"id": "",
"deliveryMethodId": "",
"desiredDeliveryDate": "",
"shippingInstructions": "",
"deliveryAddress": {
"city": "",
"companyName": "",
"country": "",
"firstName": "",
"lastName": "",
"name": "",
"id": "",
"postalCode": "",
"region": "",
"shipToPhoneNumber": "",
"street": ""
},
"name": "",
"isGift": false,
"giftMessage": "",
"giftToName": ""
}'
The valid value is—cartId (ID of the cart), active (this value is only to be used for authenticated users), or current (cart that isn’t closed or pending deletion).
The ID of the web store.
The ID of the account for which the request is made. If unspecified, defaults to the account ID for the context user.
{
"id": "",
"deliveryMethodId": "",
"desiredDeliveryDate": "",
"shippingInstructions": "",
"deliveryAddress": {
"city": "",
"companyName": "",
"country": "",
"firstName": "",
"lastName": "",
"name": "",
"id": "",
"postalCode": "",
"region": "",
"shipToPhoneNumber": "",
"street": ""
},
"name": "",
"isGift": false,
"giftMessage": "",
"giftToName": ""
}
The ID of the delivery group.
The ID of the delivery method.
The delivery date of the delivery group.
The shipping instructions for the delivery group.
Details of the checkout address input request.
Cart Delivery Group Name
Indicates whether the delivery group is a gift (true) or not (false). The default value is False.
The gift message for the delivery group.
The name of the gift recipient.
Success
{
"availableDeliveryMethods": [
{
"adjustedShippingFee": "",
"carrier": "",
"classOfService": "",
"currencyIsoCode": "",
"earliestEstimatedDeliveryTime": "",
"id": "",
"latestEstimatedDeliveryTime": "",
"name": "",
"processTime": 0,
"processTimeUnit": "Days",
"shippingFee": "",
"totalAdjustmentAmount": "",
"transitTimeMax": 0,
"transitTimeMin": 0,
"transitTimeUnit": "Days"
}
],
"cartId": "",
"cartItems": null,
"deliveryAddress": {
"city": "",
"companyName": "",
"country": "",
"firstName": "",
"lastName": "",
"name": "",
"id": "",
"postalCode": "",
"region": "",
"shipToPhoneNumber": "",
"street": ""
},
"desiredDeliveryDate": "",
"errors": [
{
"type": "",
"title": "",
"detail": "",
"instance": "",
"invalidParameters": [
{
"name": "",
"detail": "",
"value": ""
}
]
}
],
"id": "",
"isDefault": false,
"name": "",
"selectedDeliveryMethod": {
"adjustedShippingFee": "",
"carrier": "",
"classOfService": "",
"currencyIsoCode": "",
"earliestEstimatedDeliveryTime": "",
"id": "",
"latestEstimatedDeliveryTime": "",
"name": "",
"processTime": 0,
"processTimeUnit": "Days",
"shippingFee": "",
"totalAdjustmentAmount": "",
"transitTimeMax": 0,
"transitTimeMin": 0,
"transitTimeUnit": "Days"
},
"shippingInstructions": "",
"totalCartItemCount": 0,
"totalProductAmount": "",
"isGift": false,
"giftMessage": "",
"giftToName": ""
}
The list of available delivery methods. When Shipping is disabled for your web store, the delivery methods list is empty.
The ID of the cart.
Details of the collection of items in a cart.
null
Checkout Address Representation
The date when the customer wants the items delivered.
Errors
The ID for the delivery group.
Indicates whether the delivery group is the default (True) or not (False). The default value is False.
The name of the delivery group.
Details of the delivery method for a Commerce store checkout.
Special shipping and handling instructions.
The number of cart items, including their quantities, of the type Product in the delivery group.
The sum of all the cart items’ TotalPrice for cart items of the type Product in the delivery group.
Indicates whether the delivery group is a gift (true) or not (false). The default value is False.
The gift message for the delivery group.
The name of the gift recipient.