- Get Started
- Product
- Build
- User Guide
- Cloud
- Get Started
- Product
- Build
- Tools
- Reference
- User Guide
- Cloud
This documentation provides a reference to the sdk.store.order
set of methods used to send requests to Medusa's Store API routes.
This method retrieves a paginated list of orders matching the specified filters. It sends a request to the List Orders API route.
To retrieve the list of orders:
To configure the pagination, pass the limit
and offset
query parameters.
For example, to retrieve only 10 items and skip 10 items:
Using the fields
query parameter, you can specify the fields and relations to retrieve
in each order:
Learn more about the fields
property in the API reference.
Promise
Promise<StoreOrderListResponse>This method retrieves an order by its ID. It sends a request to the Get Order API route.
To retrieve an order by its ID:
To specify the fields and relations to retrieve:
Learn more about the fields
property in the API reference.
id
stringPromise
Promise<object>This method requests a order transfer from a guest account to the current, logged in customer account.
Customer requesting the transfer must be logged in.
id
stringPromise
Promise<StoreOrderResponse>This method cancels an order transfer request.
Customer requesting the transfer must be logged in.
id
stringPromise
Promise<StoreOrderResponse>The method called for the original owner to accept the order transfer to a new owner.
id
stringPromise
Promise<StoreOrderResponse>The method called for the original owner to decline the order transfer to a new owner.
id
stringPromise
Promise<StoreOrderResponse>