Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
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 14

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 14

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!