Can't retrieve shipping rates through checkoutCreate

Highlighted
New Member
2 0 0

Hi all!

 

so with this very basic mutation:

 

mutation checkoutCreate($input: CheckoutCreateInput!) {
  checkoutCreate(input: $input) {
    checkout {
      id
      availableShippingRates {
        ready
        shippingRates {
          handle
          priceV2 {
            amount
          }
          title
        }
      }
    }
    checkoutUserErrors {
      code
      field
      message
    }
  }
}

i try to achieve to recieve the shipping rates as well. But i get an error throwed at me saying:

      "message": "Shipping address can't be blank",

this is on a cart overview so the customer can still remove / edit amounts before actually checking out

 

any help or pointers would be appreciated! cheers!

 

0 Likes