0

I read this document as reference to create an order using REST. But this tutorial have to always add shipping address. So, I use POST <host>/rest/V1/addresses to add / edit customer address and fill "default_shipping": true in body request to set default shipping address. I expect that the step to create the order is

  1. POST <host>/rest/<store_code>/V1/carts/mine/items for adding a product to cart
  2. POST <host>/rest/<store_code>/V1/carts/mine/payment-information for create an order with body request as { "paymentMethod": { "method": "checkmo" } }

But it returns The shipping address is missing. Set the address and try again.

I'm sure my default shipping address is settle. I check by

  • default_shipping value from GET <host>/rest/V1/customers/me
  • "Default Shipping Address" in my magento website

Did I do somethings wrong somewhere? Thank you in advance for answers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.