Cart Delivery Addresses Not Returned from Storefront API

Cart Delivery Addresses Not Returned from Storefront API

cemino
Shopify Partner
15 0 12

Hey,

 

We are migrating to Storefront API 2025-01 and it seems like there is a bug when querying a carts delivery addresses. When I use the regular query on my cart I always only get ONE delivery address, although the checkout populates multiple addresses. One more hint why I think this is a bug is that if I filter only for non-`selected` addresses I get the selected one?


https://shopify.dev/docs/api/storefront/2025-01/queries/cart


 

 

 

query getCart {
    cart(id: "gid://shopify/Cart/...") {
        delivery {
            addresses(selected: false) {
                selected
                oneTimeUse
                id
                address {
                    __typename
                    ... on CartDeliveryAddress {
                        address1
                        city
                    }
                }
            }
        }
    }
}

 

 

 

which returns

 

 

 

{
    "data": {
        "cart": {
            "delivery": {
                "addresses": [
                    {
                        "selected": true,
                        "oneTimeUse": false,
                        "id": "gid://shopify/CartSelectableAddress/123",
                        "address": {
                            "__typename": "CartDeliveryAddress",
                            "address1": "Street 12",
                            "city": "City"
                        }
                    }
                ]
            }
        }
    }
}

 

 

 

 

Is there anything I'm missing?

Replies 0 (0)