Skip to main content
object

Groups cart line items that share a delivery method and destination: the items of a shipping group ship to the same address, and the items of a pickup group are picked up at the same store. Each group provides the available CartDeliveryOption choices, along with the customer's selected option.

Access through the Cart object's deliveryGroups field. Items are also grouped by merchandise type (one-time purchase vs subscription), allowing different delivery methods for each.

•BaseCartLineConnection!
non-null

A list of cart lines for the delivery group.

Show fields

Arguments

•String

Returns the elements that come after the specified cursor.

•String

Returns the elements that come before the specified cursor.

•Int

Returns up to the first n elements from the list.

•Int

Returns up to the last n elements from the list.

•Boolean
Default:false

Reverse the order of the underlying list.


•MailingAddress!
non-null

The destination address for the delivery group. For a pickup group, only id has a value. It names the location of the selected store, for example gid://shopify/MailingAddress/3?model_name=Location.

Show fields
•[CartDeliveryOption!]!
non-null

The delivery options available for the delivery group.

Show fields
•CartDeliveryGroupType!
non-null

The type of merchandise in the delivery group.

Show enum values
•ID!
non-null

The ID for the delivery group.

Anchor to selectedDeliveryOptionselectedDeliveryOption
•CartDeliveryOption

The selected delivery option for the delivery group.

Show fields

Was this section helpful?