07-08-2017 09:04 AM
yes, service status can be added.
/clients/services returns all services, , even if the service has ended
this is intended because someone may want to know about all the services, especially when they were ended or the client was archived, for example to process shaping or suspension.
07-10-2017 02:05 AM
@CC_DKP the proper way how to filter the invoices or any other results of the GET method should be done using the URI parameters (don't use parameters in the BODY). We have updated the API documentation to make it clear:
09-20-2017 10:25 AM
It would be nice to be able to read the management IP for a device (/devices and /devices/id).
Additionally, is there a way to query ip addresses associated with a device interface (/devices/id/device-interfaces or /devices/device-interfaces/id). This query is already present on the web interface (https://ucrm-demo.ubnt.com/interface/XXXX/get-ips-on-device where XXXX is the device_interface id), just not in the api.
I noticed we had accidentally created a few duplicate devices during entry, and I was attempting to use the API to look for duplicates. I eventually had to use device interface MAC address, which unfortunately is not available for all devices. Being able to use management IP would greatly reduce this difficulty (as well as let me identify devices that don't have a management IP set and need updating).
I as many of our customers were added before we had all the device syncing set up correctly, I have noticed some service devices are associated to the wrong towers. I have no way to programatically verify this information. If device_interface IPs were present, I could at least do the same sanity check the web interface does (checking that service_device IP is similar to the IP of the device_interface).
09-21-2017 04:45 AM - edited 09-21-2017 04:45 AM
@CC_DKPcheck out the "status" attribute: http://docs.ucrm.apiary.io/#reference/services/clientsservices/get
4 Prepared blocked
09-22-2017 01:06 AM
I have a question about the API to create a ticket here:
In the comments array, a ticketId is required. Since I am creating a new ticket, I would not have a ticket ID. Could someone please help me to understand this?
10-13-2017 02:14 PM
Can someone point me in the correct direction how I could optain the following:\
Retrieve collection of Service IPs filtered by Service Status.
I want to get a list that contains only service IPs for clients who have a suspended status.
10-19-2017 12:31 AM
Hello @superbree, there is no direct endpoint in the API to do this, it will require a bit of scripting and couple of API endpoints.
First you'll have to get all services with the /clients/services (http://docs.ucrm.apiary.io/#reference/services/clientsservices/get) endpoint.
Then you'll have to manually filter the received array to have only services with the status you want (suspended = 3).
After you have this, you will have to get the service devices for each service ID in the filtered array using the /clients/services/id/service-devices (http://docs.ucrm.apiary.io/#reference/service-devices/clientsservicesservice-devicesid/get) endpoint.
And finally from those, you can get the IP's using the /clients/services/service-devices/id/service-ips (http://docs.ucrm.apiary.io/#reference/service-ips/clientsservicesservice-devicesidservice-ips/get) endpoint.
10-23-2017 06:28 AM
Service IPs appear to be included in the default service list as an array under `ipRanges` element.
The code would only require a single API call to /client/services, then iterate through the response, checking `status` and printing `ipRanges` as appropriate.
yesterday - last edited yesterday
I'm getting "HTTP Error 422: Unprocessable Entity" when trying to update an invoice through the API. Is there an issue with updateing invoices through the API now?
It was because a partial payment had been applied to the invoice. Figured it out.