spree/spree-api-v2-js-sdk

Request Function Sdk for Get All User Orders

fajaritsavirus opened this issue ยท 2 comments

Is your feature request related to a problem? Please describe.

Hi, I'm one of the developers who used your sdk. I got a problem when trying to Get All User Orders from your sdk, I've searched on your documentation and it seems that we don't capable to Get All User Orders by using your sdk.

Describe the solution you'd like.

Is it possible for you to develop this? to Get All User Orders by using your sdk

@fajaritsavirus ๐Ÿ‘‹

Completed orders can be retrieved using https://github.com/spree/spree-storefront-api-v2-js-sdk#completedOrder and https://github.com/spree/spree-storefront-api-v2-js-sdk#completedOrdersList methods.

There's also https://github.com/spree/spree-storefront-api-v2-js-sdk#order which returns a specific placed order.

An order which isn't yet placed can be retrieved using https://github.com/spree/spree-storefront-api-v2-js-sdk#show. This endpoint works for both signed in and guest users.


If you'd like more advanced filtering by things like shipment or payment status, you need to submit a feature request or a PR to https://github.com/spree/spree. Keep in mind, shipments are unique for each order.

@tniezg Hi, thanks a lot for the help,
I really misunderstood the meaning of completed orders methods, it works perfectly as I wanted