Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Creating a checkout with shipping address

Solved

Creating a checkout with shipping address

sj1234
New Member
9 0 0

Hi, is ti possible to create a checkout using "checkoutCreate" and also input the shipping address rather update it later via "checkoutShippingAddressUpdateV2 "?

Accepted Solution (1)

martinfotp
Shopify Partner
24 4 18

This is an accepted solution.

Yes, as per the checkoutCreate GraphQL docs, the CheckoutCreateInput type also takes a shippingAddress field of type MailingAddressInput.

https://shopify.dev/docs/storefront-api/reference/checkouts/checkoutcreateinput

My recommendation would be to install a GraphQL client and try it out!

View solution in original post

Reply 1 (1)

martinfotp
Shopify Partner
24 4 18

This is an accepted solution.

Yes, as per the checkoutCreate GraphQL docs, the CheckoutCreateInput type also takes a shippingAddress field of type MailingAddressInput.

https://shopify.dev/docs/storefront-api/reference/checkouts/checkoutcreateinput

My recommendation would be to install a GraphQL client and try it out!