Checkout API - Force Billing Address

Shopify Partner
38 0 0

Hi,

is there a way to force the user to enter a billing address by a setting in the checkout api?
The use case is that there are some cases when we already know that the shipping and billing address will be different.

Best,
Gerwin

0 Likes
Shopify Partner
38 0 0

Anybody got an idea on how this could be done?

0 Likes
Shopify Partner
38 0 0

No one :(

0 Likes
Shopify Partner
38 0 0

Anybody?

0 Likes
Shopify Staff (Retired)
Shopify Staff (Retired)
531 0 88

Gerwin,

The checkout API is only available to sales channel partners at this time.

If you a working with a Plus client, you should be able to accomplish this by modifying the checkout.liquid template.

Cheers,

Jamie

0 Likes
Shopify Partner
38 0 0

Hi Jamie,

thanks for your reply.

Since we are building an app that should work for all kind of shops the limitation to plus clients is not an option we can take.

I seemed to have confused the checkout API with a post to checkout url. Sorry for that.

So what we use is a post the following url:
someshop.myshopify.com/checkout?

And we pass arguments like:
checkout[shipping_address][zip]=12234
checkout[shipping_address][city]=Somewhere


We now adittionally want to force (in only SOME cases) the checkout to force the customer to have to enter the billing address manually.

We tried to use arguments like:
checkout[billing_address][first_name]=Paul

This works only if all other values from the first checkout page (which we can't all provide) are also provided.
So it seems that those initally passed arguments are not passed on to step2 of the checkout if step1 is not completly filled out.

So help to solve the requirement (in any way) would be really higly appreciated.

Best,
Gerwin

0 Likes
Highlighted
Shopify Partner
38 0 0

Any update on this one?

0 Likes