# Web API filter and ordering documentation

**URL:** <https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786>\
**Category:** Questions\
**Created:** [December 12, 2022, 12:19pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786 "2022-12-12T12:19:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fugnrim](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Fugnrim](https://forum.litium.com/u/Fugnrim)\
**Post date:** [December 12, 2022, 12:19pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/1 "2022-12-12T12:19:39Z")

</div>

Hi,

We were asked by a potential client if we could connect his Litium instance to a third party logistics provider. In short we would need to connect via the Web API to read orders, update orders (tracking details), read products and update product inventory. Having scanned through the documentation I have a few questions.

First, we need to read sales orders “modified since” (or similar). I can see that there’s a “search” method for sales orders. Is there documentation for how the search endpoint works, or can you point me to examples I’ve missed?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [December 12, 2022, 1:15pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/2 "2022-12-12T13:15:35Z")

</div>

You can check it out on your solutions swagger:  
[https://your-domain/Litium/swagger?urls.primaryName=Litium%20Admin%20Web%20API#/Sales%20sales%20order/Litium\_Sales\_SalesOrders\_Search](https://your-domain/Litium/swagger?urls.primaryName=Litium%20Admin%20Web%20API#/Sales%20sales%20order/Litium_Sales_SalesOrders_Search)

---

<div class="post-metadata">

**Author:** ![Fugnrim](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Fugnrim](https://forum.litium.com/u/Fugnrim)\
**Post date:** [December 12, 2022, 2:59pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/3 "2022-12-12T14:59:31Z")

</div>

Thanks @steve.redstorm, I don’t have access to the customers domain at the moment (I’ll ask my sales people). Is the Open API spec available somewhere else?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [December 12, 2022, 3:11pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/4 "2022-12-12T15:11:53Z")

</div>

Have you read the ERP Connect APIs, maybe that would be more appropriate for the task?  
[https://docs.litium.com/api-reference/api?product=Litium.Connect.Erp&version=2.0&xref=Orders](https://docs.litium.com/api-reference/api?product=Litium.Connect.Erp&version=2.0&xref=Orders).

---

<div class="post-metadata">

**Author:** ![Fugnrim](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Fugnrim](https://forum.litium.com/u/Fugnrim)\
**Post date:** [December 12, 2022, 3:18pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/5 "2022-12-12T15:18:59Z")

</div>

Sure have 🙂 But maybe I’m misreading but there is no exposed method to, e.g., list all orders or shipments?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [December 12, 2022, 3:33pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/6 "2022-12-12T15:33:36Z")

</div>

Why do you need all orders, there are WebHooks that you can subscribe to when e.g an order is set to Confirmed or ReadyToShip.

---

<div class="post-metadata">

**Author:** ![Fugnrim](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Fugnrim](https://forum.litium.com/u/Fugnrim)\
**Post date:** [December 12, 2022, 3:43pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/7 "2022-12-12T15:43:48Z")

</div>

Webhooks would work as well of course. But I can’t find any documentation on the webhook event payload or filters.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [December 12, 2022, 3:50pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/8 "2022-12-12T15:50:47Z")

</div>

[Here](https://docs.litium.com/documentation/litium-platform/events-handling/webhooks) you have some information.

---

<div class="post-metadata">

**Author:** ![Fugnrim](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@Fugnrim](https://forum.litium.com/u/Fugnrim)\
**Post date:** [December 13, 2022, 1:14pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/9 "2022-12-13T13:14:58Z")

</div>

Thanks @steve.redstorm! I’ve now also found the ERP examples in GitHub, and the .NET API documentation of the events themselves. Do the ERP connect API webhooks expose only the ERP events or will we e.g. be able to listen to " Litium.Products.Events" as well to pick up product and variant changes?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [December 13, 2022, 1:45pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/10 "2022-12-13T13:45:21Z")

</div>

You can find all Events who one can subscribe to on your solution or on our demo site like this:  
[https://demo.litium.com/Litium/swagger?urls.primaryName=Litium%20WebHook](https://demo.litium.com/Litium/swagger?urls.primaryName=Litium%20WebHook)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [January 10, 2023, 1:46pm UTC](https://forum.litium.com/t/web-api-filter-and-ordering-documentation/2786/11 "2023-01-10T13:46:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
