How to get myShopifyDomain in delivery customisation function

How to get myShopifyDomain in delivery customisation function

devPramod
Shopify Partner
22 0 13

I am implementing the functionality with delivery customisation function and I need Shopify store domain to identify the request. is there anyway to get shop domain in Shopify functions.
like using graphql of function dont have option

query RunInput {
    cart {
        deliveryGroups {
            deliveryAddress {
                provinceCode
            }
            deliveryOptions {
                handle
                title
            }
        }
    }
    shop {
        __typename
        localTime {
            date
        }
    }
}






Reply 1 (1)

Nick_Wesselman
Shopify Staff
171 43 70

Hi @devPramod --

 

This is not possible today, can I ask more about your use case? You might also post a feature request here describing it.

 

As a workaround, you could use a shop metafield instead.

 

-Nick

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog