Sylius / ShopApiPlugin

Shop API for Sylius.
https://sylius.com
129 stars 89 forks source link

Can't choose a cart shipping method #725

Open medteck opened 2 years ago

medteck commented 2 years ago

I cannot use the endpoint /checkout/{token}/shipping/{id} to choose a cart shipping method because the order-id is not given by the API.

I looked inside order details, as well as checkout details in /checkout/{token} and none of them provides the order number.

The order number should be provided at least by the /checkout/{token} endpoint in order to follow the checkout flow logic.

mamazu commented 2 years ago

This {id} in this endpoint is not the id of the order but the index of the shipping method. This is a documentation fault. The order in the ShopApi is always referenced by token. Which is generated by a cart pickup.