04-03-2018 01:43 AM
04-03-2018 01:53 AM
04-03-2018 08:12 AM - edited 04-26-2018 06:01 AM
Thank you @UBNT-Petr I've submitted the feature request.
04-24-2018 07:29 AM - edited 04-24-2018 07:45 AM
What is the currencyId for on a payment plan?
And is it possible to create a "linked subscription" via the api?
04-25-2018 02:43 PM - edited 04-25-2018 02:44 PM
@Brandon-W please find the currency list attached below but note, that the API enables to create only IPpay subscriptions so far. The purpose of this is mostly for migrating existing subscriptions from other crm tools.
We will make it more clear in the apiary docs.
Can you describe how and for what purposes you want to create subscriptions via API?
04-25-2018 03:03 PM
Thank you @UBNT-Petr
As I mentioned previously, I have created a frontend "checkout" of sorts that allows a user to create a client, schedule a job and select a service. The ideal situation would be for the checkout to create a subscription for the service automatically instead of requiring the extra step of logging into UCRM to make the payment.
I have a plugin I've been developing to act as the middleware for the frontend application to submit info to UCRM. The plugin will accept a stripe token and can setup the client/subscription in stripe, and I believe it will be able to create a subscription in UCRM as well, if it is indeed referred to as "payment plan" on the API. But currently if you go into the UCRM admin there is a notification upon creating a subscription (since I have custom subscriptions turned off) that says "You are creating linked subscription. The amount will be changed automatically, when the service price changes." And I wasn't sure if this feature applies to a subscription created via the api.
If not, this means the subscription will have to be updated to match changes to the service manually. Which would not be ideal.
04-26-2018 05:41 AM
However, this is the current state:
- this API endpoint works only for creating IPpay subscriptions (https://ucrm.docs.apiary.io/#reference/payment-plans/clientspayment-plans/post)
- and this is only for "custom subscriptions"
- if you want to add Stripe "Linked subscription" into UCRM via API, you would need to pass the client's ServiceId to let UCRM know which service should be linked with the subscription
... please create a feature request for this, and post its link here. It will help us to prioritize this request.
04-26-2018 06:24 AM
Feature request submitted. https://community.ubnt.com/t5/UCRM-Feature-Requests/API-Linked-Subscriptions/idi-p/2330968
This would be tremendously helpful, hope it can be implemented soon, otherwise I think I'll look into setting up a script to handle syncing payment plans and services for the time being.
05-02-2018 06:40 PM
Hello. Is it possible to get the IP address of a site device (such as an AP) using the API? The /devices and device-interfaces endpoints don't seem to include this, although it's there in the web interface. Maybe I'm missing something obvious; can you help?
05-05-2018 12:45 PM - edited 05-05-2018 01:14 PM
I'm using 2.11.0-beta3 and the endpoint that works for GET and POST on payment plans is /payment-plans but the api docs https://ucrm.docs.apiary.io/#reference/payment-plans/clientspayment-plans/post says it should be /clients/payment-plans
I'm not sure if this is a problem or if the docs just need to be updated. Thought I should mention that /clients/payment-plans returns a 404
Also, is there an ETA on when other payment plans can be added? Like Stripe? It seems a bit odd that IPPay is the only option to the api when stripe is already available for creation within the admin.
05-21-2018 12:34 AM
This is the API doc for stable version: https://ucrm.docs.apiary.io
for beta version: https://ucrmbeta.docs.apiary.io/#
and some explanation and example can be found in our knowledge base: https://help.ubnt.com/hc/en-us/articles/115003906007-UCRM-API-Usage
05-30-2018 07:22 AM