REST API for getting Orders in ERP System

  • Posts: 45
  • Thank you received: 2
  • Hikashop Business
6 months 1 week ago #325168

Hi,

is there a way to get the orders from Hikashop in our ERP System like it is in WooCommerce?
There is a REST API which is used by our ERP System to get the new Orders incl. Billing and Shipping Adress.
I cant find anything in the docs.

Thanks,
Stefan

Please Log in or Create an account to join the conversation.

  • Posts: 72738
  • Thank you received: 11090
  • MODERATOR
6 months 1 week ago #325169

Hi,

There is no REST API.
Joomla 4 will come with REST API support and HikaShop will integrate with it once we have more information about it.
So if you need an API to serve data of your website, you can create a plugin to server that data as your own API.
However, in that case, it's usually simpler you develop a hikashop plugin and connect to the ERP API to send the data of the orders to the ERP, provided that the ERP has its own (REST or not REST) API.
For example, HikaShop comes with a KashFlow plugin to send the data of the orders to the KashFlow API when orders a created/confirmed:
www.hikashop.com/support/documentation/2...n-with-kashflow.html
We have some documentation about the order triggers you can use in your plugin to do that:
www.hikashop.com/support/documentation/6...mentation.html#order

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 2
  • Hikashop Business
3 months 2 weeks ago #328715

Hi Nicolas,

when you integrate the Joomla 4 REST-API in Hikashop - would this be similar like its in Woocommerce?
Our ERP System has a interface which gets the data from Woocommerce through the Web-Service from WC.
When this is similar also in Hikashop then i can keep Hikashop as our Shopping-System.

Regards,
Stefan

Please Log in or Create an account to join the conversation.

  • Posts: 72738
  • Thank you received: 11090
  • MODERATOR
3 months 2 weeks ago #328716

Hi,

It's almost guaranteed that it will be different, as Joomla API will quite likely have different mechanisms than WordPress. It's like payment gateways, each one of them has its own API.
The only way to have the same API as Woocommerce would be to actually not implement Joomla's API system by have a plugin made especially to mimic Woocommerce's API. And even then, the API is specific to Woocommerce, so some things can't be implemented the same way. For example, they have an API to get the settings of woocommerce:
woocommerce.github.io/woocommerce-rest-a...-all-setting-options
The settings are different in HikaShop and thus we cannot provide the same list with corresponding values.
So if your ERP needs that API, then it would be more difficult as we would need to know what settings they need to know to provide the adequate response in the API plugin.

Basically, us implementing the REST API of Joomla won't help you and if you need an integration with an ERP and you can't have a custom plugin developed between HikaShop and the ERP (if there isn't one already), then I don't see this changing any time soon.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum