spree/spree-guides

Order transition from "Cart" to "Address" through API calls erases Order

Closed this issue · 1 comments

Hi everyone!

I'm follwing this steps in order to create and process an order only using API calls. I'm stuck in this particular step, transitioning from "Cart" to "Address" after the order has been populated with articles.

The API call

PUT /api/checkouts/:number

returns the order parameters successfully and you can see the state is "address" but, when I try to set the address info (billing or shipping) I'm getting this:

{
    "error": "The resource you were looking for could not be found."
}

And the order disappears from the database (I was following the process with the Spree backend and the order was there until I ran the API call.

Does anyone know what is going on? Are these guides up to date?

Thank you in advance.

Sorry, issue opened where it belongs: spree/spree #3306