1

Which API to use for Accounts with Units data

Topic: Which API to use for Accounts with Units data

Cordial greetings,

I'd like to retrieve the list of accounts with their units names and their unique IDs and activation/deactivation dates just like the units list in the CMS. I tried looking for the relevant documentation but couldn't find this specific one.

Could you please guide me on this subject or at lease put the required documentation link.

I need to build an App that retrieves these details through API.

Best regards,

2

Which API to use for Accounts with Units data

Re: Which API to use for Accounts with Units data

Good day,

If you need to get all available units, their accounts, and information about deactivation state, you can try to use 'core/search_items' request -- https://sdk.wialon.com/wiki/en/sidebar/ … arch_items
In order to get these data, set "itemsType" parameter value to "avl_unit" and "flags" value 261
This flag value is a combination of the base flag, billing properties, and advanced properties -- https://sdk.wialon.com/wiki/en/sidebar/ … ormat/unit

Thus the response will contain information about the unit's name ("nm"), unique ID ("uid"), account internal ID ("bact"), deactivation status ("act") and deactivation time UNIX ("dactt").

Using the account internal ID, you can get detailed information about it -- https://sdk.wialon.com/wiki/en/sidebar/ … count_data

Also, please check the webinar regarding the Search item request which can give you more information about the data extracting from Wialon -- https://www.youtube.com/watch?v=z9Ro3kp5aqo

Best regards,
Anton