Converting a quote to an order

martijnprmartijnpr Member Posts: 7

Hi,

When I add a quote and convert it to an order using the backoffice, everything works fine. The order is created with status 'WACHTEN OP BETALING' as we want and we can cancel it and everything.

When I use the API to convert the quote to an order, two things can happen:

  • Using /quotes/<id>/convert makes an order out of the quote, but with status 'NIEUW', one that I never saw before, I was expecting the 'WACHTEN OP BETALING'. Furthermore, it creates 3 invoices and 3 shipment items and when I try to cancel it, I get HTTP500 internal server errors.
  • Using checkout with a quote id tells me that I am missing a lot of information, like names and such, but everything in the customer object is filled. The backoffice seems to be able to make something out of it.


So what is the best way to use the API to convert a quote to an order and be able to work with the order as if it were created using the convert button in the backoffice?

And what went wrong with my 2 actions?

Thanks for all the help in advance.

PS. The store I use now to test this is: #311473

1 comment

Sign In or Register to comment.