Query wish lists

Query a single wish list

To query a single wish list, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the wish list.
    To get the wish list, you must either call the GetWishlist method and pass the ID of the wish list as an argument, or call the GetWishlists method and filter the collection by the desired criteria (e.g. by title).

Use the following samples to query a single wish list by ID and by title:

Query a wish list by ID

Query a wish list by Title

Query a wish list by user

To query a wish list by user, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the wish list.
    To get the wish list, you must call the GetWishlistForUser method and pass the ID of the user as an argument.

Use the following sample to query a wish list by user:

Query all wish lists

To query all wish lists, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the wish lists.
    To get the wish lists, you must call the GetWishlists method.

Use the following code sample to query all wish lists:

Was this article helpful?

Next article

Modify wish lists