Author Topic: Virtuemart API  (Read 3682 times)

Roderic

  • Beginner
  • *
  • Posts: 18
Virtuemart API
« 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]

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4330
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Virtuemart API
« Reply #1 on: July 17, 2018, 20:03:16 pm »
No "rest api"  exist. but you can certainly find some Joomla extensions doing this.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart API
« Reply #2 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.
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Roderic

  • Beginner
  • *
  • Posts: 18
Re: Virtuemart API
« Reply #3 on: July 19, 2018, 12:24:11 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?

welrachid

  • Jr. Member
  • **
  • Posts: 264
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Re: Virtuemart API
« Reply #4 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
Best regards,
Wel

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4330
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Virtuemart API
« Reply #5 on: July 19, 2018, 15:27:39 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.

Roderic

  • Beginner
  • *
  • Posts: 18
Re: Virtuemart API
« Reply #6 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.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4330
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Virtuemart API
« Reply #7 on: July 20, 2018, 02:54:31 am »
Nice price ?
such a plugin need 2 days dev in all most time(and perhaps more)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart API
« Reply #8 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Roderic

  • Beginner
  • *
  • Posts: 18
Re: Virtuemart API
« Reply #9 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/

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart API
« Reply #10 on: July 21, 2018, 22:44:51 pm »
If u would like to discuss further just PM me
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

annatech

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Virtuemart API
« Reply #11 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!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart API
« Reply #12 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4330
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Virtuemart API
« Reply #13 on: March 07, 2019, 17:29:28 pm »
GJC Web Design, you dont mean it's a hidden spam from annatech?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Virtuemart API
« Reply #14 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation