DeliveryAPI
The APIs for interacting with delivery and shipping options.
TipNot all extension targets implement all APIs. Check the documentation for the extension target you are using to see which APIs are available.
Anchor to standardapiStandardApi
The base API object provided to purchase
extension targets.
A list of delivery groups containing information about the delivery of the items the customer intends to purchase.
Returns the full expanded details of a delivery group and automatically re-renders your component when that delivery group changes.
Anchor to useDeliveryGroup-parametersParameters
Anchor to useDeliveryGroupsuse Delivery Groups()
Returns the current delivery groups for the checkout, and automatically re-renders your component when delivery address or delivery option selection changes.
Anchor to shipping optionShipping Option
This API object is provided to extensions registered for the purchase.checkout.shipping-option-item.render-after
and purchase.checkout.shipping-option-item.details.render
extension targets.
Whether the shipping option the extension is attached to is currently selected in the UI.
The render mode of the shipping option.
The shipping option the extension is attached to.
Anchor to useShippingOptionTargetuse Shipping Option Target()
Returns the shipping option for the purchase.checkout.shipping-option-item.render-after
and purchase.checkout.shipping-option-item.details.render
attached extensions.
Anchor to shippingoptionlistapiShippingOptionListApi
This API object is provided to extensions registered for the purchase.checkout.shipping-option-list.render-before
and purchase.checkout.shipping-option-list.render-after
extension targets.
The list of selection groups available to the buyers. The property will be undefined when no such groups are available.
The delivery group list the extension is attached to. The target will be undefined when there are no groups for a given type.
Anchor to useDeliveryGroupTargetuse Delivery Group Target()
Returns the delivery group for the purchase.checkout.shipping-option-list.render-before
and purchase.checkout.shipping-option-list.render-after
attached extensions. This is deprecated, use instead.
Anchor to useDeliveryGroupListTargetuse Delivery Group List Target()
Returns the delivery group list for the purchase.checkout.shipping-option-list.render-before
and purchase.checkout.shipping-option-list.render-after
attached extensions.
Anchor to useDeliverySelectionGroupsuse Delivery Selection Groups()
Returns the delivery selection groups for the purchase.checkout.shipping-option-list.render-before
and purchase.checkout.shipping-option-list.render-after
attached extensions.
Anchor to pickuppointlistapiPickupPointListApi
This API object is provided to extensions registered for the purchase.checkout.pickup-point-list.render-after
and purchase.checkout.pickup-point-list.render-after
extension target.
Whether the customer location input form is shown to the buyer.
Anchor to pickuplocationlistapiPickupLocationListApi
This API object is provided to extensions registered for the purchase.checkout.pickup-location-list.render-after
and purchase.checkout.pickup-location-list.render-after
extension target.
Whether the customer location input form is shown to the buyer.
Anchor to pickuplocationitemapiPickupLocationItemApi
The API object provided to the purchase.checkout.pickup-location-option-item.render-after
extension target.
Whether the pickup location is currently selected.
The pickup location the extension is attached to.
Anchor to usePickupLocationOptionTargetuse Pickup Location Option Target()
Returns the pickup location option for purchase.checkout.pickup-location-option-item.render-after
attached extensions.
Delivery group
React
Anchor to examplesExamples
Learn how to use the API with JavaScript (JS) and React. See React Hooks for all available hooks.