Creating a checkout with shipping address

Solved
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)

Accepted Solutions
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!