1

Logistics Integration

(18/10/2024 15:48:46 отредактировано jisnajoby03)

Тема: Logistics Integration

Hi Team,

I am working on an integration with the Logistics platform. I found the documentation here: https://help.wialon.com/help/logistics/ … ces+EN.pdf  and reviewed the methods for bulk importing orders and routes. I also found the endpoint api/routes, which is a GET call that returns routes and orders inside each route. It is very likely that we will be creating orders one by one, so I am planning to use the Remote API.

I understand that we can use the following calls for creating orders and routes:
Order creation : https://sdk.wialon.com/wiki/en/sidebar/ … der/update
Route creation : https://sdk.wialon.com/wiki/en/sidebar/ … ute_update

Scenario: I created a few new orders, assigned them to a unit, and saved the route. This route is now visible on the "Routes" page under the "Active" status. I used the search call to retrieve these orders and routes via the following Remote API call: https://sdk.wialon.com/wiki/en/sidebar/ … arch_items

Searching orders:
{"spec":{"itemsType":"avl_resource","propName":"orders","propValueMask":"*","sortType":"orders","propType":"propitemname","or_logic":0},"force":1,"flags":524288,"from":0,"to":0}
This search returned all the orders, including the past ones. However, I was unable to determine which parameter in the response indicates the order status, such as "active," "planned," or "fulfilled."

Searching route:
{"spec":{"itemsType":"avl_route","propName":"sys_name","propValueMask":"*","sortType":"sys_name","propType":"","or_logic":0},"force":1,"flags":4611686018427387903,"from":0,"to":0}
However, this request did not return any data. I am using a token with -1 access rights.

I have a few questions:
1) What would be the appropriate Remote API calls to retrieve the information that is provided by the api/routes GET call? Specifically, how can we retrieve routes and the orders inside each route using the Remote API?

2) Inside the Logistics application, on the "Routes" page, we can filter routes by their status (planned, active, and fulfilled). Which Remote API call can be used to fetch this data along with their respective statuses?

3) The Logistics application seems to use events to display existing orders and routes. Could you explain how the application achieves this using events, and which Remote API calls are relevant here?

4) Aside from the calls mentioned above, are there any other relevant Remote API calls or processes that would help streamline these operations?

5) Which API call I can use to get the status, route number that has been assigned to a previously created order? Also which one retrieves information about a specific order?

Please correct me if I am doing anything wrong. Thanks for your assistance!

Best regards,
Jisna