VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Roderic on July 17, 2018, 19:22:25 PM

Title: Virtuemart API
Post by: Roderic on July 17, 2018, 19:22:25 PM
Where did the VM API Documents go to? They dissapeared from the website. Is there even still an API?

I need to export orders in JSON to a accounting program's API. Is that possible right now?
Any hints would be appreciated.

[Mod edit: Is back http://docs.virtuemart.net/vm-api.html]
Title: Re: Virtuemart API
Post by: Studio 42 on July 17, 2018, 20:03:16 PM
No "rest api"  exist. but you can certainly find some Joomla extensions doing this.
Title: Re: Virtuemart API
Post by: GJC Web Design on July 17, 2018, 23:47:43 PM
I have built many bridges between VM and various interfaces .. normally I write them as a vmcustom plugin to trigger on e.g. a confirmed saleor by cron or if manually exported then as an admin module .

Gather the data, construct the JSON and post it by cURL to what ever is the receiving url  by what ever trigger u need.
Title: Re: Virtuemart API
Post by: Roderic on July 19, 2018, 12:24:11 PM
Quote from: Studio 42 on July 17, 2018, 20:03:16 PM
No "rest api"  exist. but you can certainly find some Joomla extensions doing this.

Can you point me to a well functioning one perhaps?
Title: Re: Virtuemart API
Post by: welrachid on July 19, 2018, 12:50:41 PM
If you are not used to VM and how its coded i definitely would recommend looking for a plugin that can help you out. I've done some integration to e-conomic.com but i tried to keep it as simple as possible. My integration is not automatic. It requires the user to actually hit a new button i've made in the orderlist to send it over to e-conomic.com
Title: Re: Virtuemart API
Post by: Studio 42 on July 19, 2018, 15:27:39 PM
Quote from: Roderic on July 19, 2018, 12:24:11 PM
Quote from: Studio 42 on July 17, 2018, 20:03:16 PM
No "rest api"  exist. but you can certainly find some Joomla extensions doing this.

Can you point me to a well functioning one perhaps?
https://extensions.joomla.org/extension/rest-api/ is a sort of rest framework and you can do your own api plugin
https://extensions.joomla.org/extensions/extension/capi-core-rest-api/ is an external service i think(never checked)
But best is to do your own plugin or extentions, if you have specific needs.
Title: Re: Virtuemart API
Post by: Roderic on July 19, 2018, 23:20:17 PM
I will have a look at the the REST API. But I doubt I can figure it out myself.

What I need is a automatic synchronisation of orders from Virtuemart towards a 3rd party accounting program (Snelstart).
New clients in virtuemart also need to be added to Snelstart.
Stock needs to be updated from Snelstart to Virtuemart. That's about it.

Snelstart has an API that requires JSON data and I have the connection set up. I just need to connect Snelstart to Virtuemart now and feed it with data. A cronjob would be fine too or a trigger that's set after an order is finished.

If any of you would like to write that plugin for me, for a nice price, please let me know.
Title: Re: Virtuemart API
Post by: Studio 42 on July 20, 2018, 02:54:31 AM
Nice price ?
such a plugin need 2 days dev in all most time(and perhaps more)
Title: Re: Virtuemart API
Post by: GJC Web Design on July 20, 2018, 12:37:07 PM
agree with Stu42 ...  2 days is a reasonable guesstimate ...  what your requiring is complex and requires a lot of testing and dev to get bug free plus in many cases the documentation is not straight forward some some suck and see (i.e. wasted time) is required

Do u have a link to the api documentation for Snelstart?
Title: Re: Virtuemart API
Post by: Roderic on July 21, 2018, 14:09:07 PM
I didn't say "Cheap price"   ;)  Nice price for all parties involved.

Here is a link to the API docs: https://b2bapi-developer.snelstart.nl/
Title: Re: Virtuemart API
Post by: GJC Web Design on July 21, 2018, 22:44:51 PM
If u would like to discuss further just PM me
Title: Re: Virtuemart API
Post by: annatech on March 06, 2019, 04:51:18 AM
Hello everyone,

One of my customers just released a *complete* REST API plugin for Virtuemart, running on cAPI: adsential dot com

I've received a fair amount of email from people asking if cAPI could support Virtuemart. Looks like it's finally possible!
Title: Re: Virtuemart API
Post by: GJC Web Design on March 06, 2019, 10:21:07 AM
Very good .. but on an unrelated subject

No where on the https://adsential.com/en/ site is is possible to find where they are based/come from etc etc

Amazing.. one of the most basic tenets when doing business is to establish trust...   why would you have a site without a single mention of your address?
Most I think would take this as not being worth sending a few 100 dollars to...

of course u can see by whois that the domain is regged in Argentina  - why so shy?
Title: Re: Virtuemart API
Post by: Studio 42 on March 07, 2019, 17:29:28 PM
GJC Web Design, you dont mean it's a hidden spam from annatech?
Title: Re: Virtuemart API
Post by: GJC Web Design on March 07, 2019, 22:15:48 PM
No  - I don't think so.. 

my point is if they want to sell successfully why haven't they got ANY info on their site about who and where they are?
I assume they are a legit business but would u buy something from a site with no email, address, country, telephone number, business reg etc?
Title: Re: Virtuemart API
Post by: annatech on May 09, 2019, 23:19:38 PM
Hello everyone,

I have forwarded a link to this thread to the developer of the Virtuemart plugin I mentioned earlier. I don't think he was aware of the concerns expressed here relating to the lack of transparency on the company selling the plugin.
Title: Re: Virtuemart API
Post by: Studio 42 on May 10, 2019, 01:54:31 AM
Quote from: annatech on May 09, 2019, 23:19:38 PM
Hello everyone,

I have forwarded a link to this thread to the developer of the Virtuemart plugin I mentioned earlier. I don't think he was aware of the concerns expressed here relating to the lack of transparency on the company selling the plugin.
Why you dont simply say that you openend this post to have some backlinks to your components ?
Title: Re: Virtuemart API
Post by: annatech on May 10, 2019, 21:33:36 PM
Hello Studio 42,

The title of this thread is "Virtuemart API". I responded with information relating to a customer of mine who developed an extension for my product which provides a comprehensive REST API for Virtuemart.

However, I can see if it's possible to edit my original post to remove the actual hyperlink if it would make you feel more comfortable. You are welcome to message me directly if you have any questions so I wont have to post anything else in this thread that looks like marketing material. I can also provide you with the contact information of the person in charge of the Virtuemart API plugin I mentioned earlier.

Also, to clarify: That Virtuemart API plugin is not developed or sold by annatech dot com.

Let me know if you have any other questions.

Thanks!
Title: Re: Virtuemart API
Post by: Milbo on May 11, 2019, 22:42:41 PM
The API docs are back

http://docs.virtuemart.net/vm-api.html