Shipping address as billing address default as off

Afternoon all,

I’m crafting prefilled checkouts with data from an external app and I’m wondering if there’s a query or maybe a setting somewhere where I can default ‘Use shipping address as billing address’ to No/Unticked?

image

I ask because the majority of our orders will have different shipping to billing addresses and I’m struggling to see a way of setting them separately through the documentation I have. This is the documentation I’m working from:
Shopify/storefront-api-learning-kit

Thanks in advance for any help with this.

Josh

1 Like

Hey @Joshua_Haley, currently the Storefront Cart API can only interact with the delivery/shipping address.

One workaround is for the merchant to configure not using the shipping address as default in their Shopify admin checkout settings. Here’s what that looks like:

More details: Address collection preferences

1 Like

Hi Kyle,

Thanks for sending that documentation across. Somehow I missed the advanced options on the checkout.

I believe I have found a workaround for my personal circumstances, it’s not ideal but it should work. Are you able to advise if there are any plans for the billing address fields to be exposed to the API? From my perspective it seems a little odd that they aren’t, when all the other fields are.

Thanks

Josh

Care you share your workaround @Joshua_Haley. That may help other developers with similar questions.

As for the billing addresses being exposed, I don’t know of any current plans. If the customer is logged in though, the checkout should pre-populate their saved billing address.

I will log that as a feature request.

Hi Kyle,

It’s fairly niche because unlike most people I’m only really using Shopify as a checkout method. I have an external app handling order placement (which is why I ideally needed billing fields exposed via the API), and I’m using Business Central for fulfilment, shipping and inventory management. If the user is logged in to Shopify or has auto-fill enabled on their browser then yes that semi-negates the issue but the original brief was all the user information is entered through the app and a prefilled checkout opens with all the information (to avoid the user having to enter information twice).

Unfortunately I don’t have a workaround exclusively for Shopify, my workaround involves Business Central, SQL and some AL code extensions.

If adding the billing fields on the checkout to the API could be logged as a feature request that would be great.

Thanks

Thanks for that context. I have shared your feedback as a feature request.