shippingAddress and billingAddress are not saving to order via orderCreate

I’m passing in shippingAddress and billingAddress into the createOrder mutation (tried 2024-10 and 2025-01) and it’s creating the order with a blank billing address and shipping address.

I’ve tried it with and without the company location ID set.

I’m also not getting anything back in userErrors.

 "shippingAddress": {
      "address1": "***,
      "address2": "***",
      "city": "***",
      "provinceCode": "CA",
      "zip": "***",
      "countryCode": "US"
    },
    "billingAddress": {
      "address1": "***",
      "address2": "***",
      "city": "***",
      "provinceCode": "HI",
      "zip": "***",
      "countryCode": "US"
    },

Hi @kalen you need to include lastName for both addresses.

2 Likes

Thanks - so it’s just failing to throw a validation error at the mooment and silently dropping the address?

Thanks for bringing this up @kalen. We’ve added an issue to our backlog to improve this behaviour.

4 Likes

That seems to be the case. It’s certainly not a behavior that helps with debugging errors.

1 Like

It took me lots of hours to figure that out…

I can create orders for a company via Shopify Admin that has no last name set. BUT if I create an order via oderCreate that has no lastName, it will just drop the address altogether.

That is a horrible and very hard to debug bug :exploding_head: