[Skip to main content](#vessel-content)

#   Any ideas on how to integrate go2stream?

##

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile") Topic Author
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

1 year 11 months ago [\#364692](#364692) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  *[Any ideas on how to integrate go2stream?](/forum/25-install-update/908921-any-ideas-on-how-to-integrate-go2stream#364692 "Hi client is using this platform and needs hikashop orders to be integrated into their go2stream platform Specifically users address and item purchased (for logistics) The platform helps their delivery drivers with route planning and packing the lorry.   www.go2stream.net/API/redoc/index.html  How can i use their API with hikashop? Do i need to write a plugin?")* was created by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")*

Hi client is using this platform and needs hikashop orders to be integrated into their go2stream platform
Specifically users address and item purchased (for logistics)
The platform helps their delivery drivers with route planning and packing the lorry.
[ www.go2stream.net/API/redoc/index.html](https://www.go2stream.net/API/redoc/index.html)
How can i use their API with hikashop? Do i need to write a plugin?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODkyMS1hbnktaWRlYXMtb24taG93LXRvLWludGVncmF0ZS1nbzJzdHJlYW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14288
-
-

1 year 11 months ago [\#364693](#364693) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Any ideas on how to integrate go2stream?](/forum/25-install-update/908921-any-ideas-on-how-to-integrate-go2stream#364693 "Hi client is using this platform and needs hikashop orders to be integrated into their go2stream platform Specifically users address and item purchased (for logistics) The platform helps their delivery drivers with route planning and packing the lorry.   www.go2stream.net/API/redoc/index.html  How can i use their API with hikashop? Do i need to write a plugin?")*

Hi,

Yes, you'll want to write a plugin:
[ www.hikashop.com/support/documentation/6...r-documentation.html](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html)
You can create a plugin and implement the onAfterOrderCreate event (when an order is created), or the onAfterOrderUpdate event (when an order is being updated), check that the status is being changed (with $order-&gt;order_status being there and different from $order-&gt;old-&gt;order_status ) to confirmed after the payment ( with $order-&gt;order_status == 'confirmed' ):
[ www.hikashop.com/support/documentation/6...l#onAfterOrderUpdate](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate)
Then, you can load the full data of the order with the loadFullOrder method :
[ www.hikashop.com/support/documentation/6...umentation.html#code](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#code)
And then, you can contact the API of go2stream to get an access token ( check the "authorizations" of the go2stream documentation ).
Once you have the token, you can transfer the data of the order with the correct format as per:
[ www.go2stream.net/API/redoc/index.html#t...1orders~1orders/post](https://www.go2stream.net/API/redoc/index.html#tag/Orders/paths/~1orders~1orders/post)
[ stackoverflow.com/questions/68015068/php...t-array-within-array](https://stackoverflow.com/questions/68015068/php-post-curl-headers-how-to-put-array-within-array)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODkyMS1hbnktaWRlYXMtb24taG93LXRvLWludGVncmF0ZS1nbzJzdHJlYW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile") Topic Author
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

1 year 11 months ago [\#364703](#364703) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[Any ideas on how to integrate go2stream?](/forum/25-install-update/908921-any-ideas-on-how-to-integrate-go2stream#364703 "Hi client is using this platform and needs hikashop orders to be integrated into their go2stream platform Specifically users address and item purchased (for logistics) The platform helps their delivery drivers with route planning and packing the lorry.   www.go2stream.net/API/redoc/index.html  How can i use their API with hikashop? Do i need to write a plugin?")*

Amazing thank you Nicolas
I will check it out.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwODkyMS1hbnktaWRlYXMtb24taG93LXRvLWludGVncmF0ZS1nbzJzdHJlYW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
