Creating a checkout with shipping address

Solved
sj1234
New Member
8 0 0

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

0 Likes
martinfotp
Excursionist
22 4 7

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!

0 Likes