# How to create Stroe API controller for APP plugin

**URL:** <https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485>\
**Category:** Programming (EN)\
**Tags:** general, programming\
**Created:** [10. Februar 2023 um 10:40 UTC](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485 "2023-02-10T10:40:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles0301](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/charles0301/32/8085_2.png) [@charles0301](https://forum.shopware.com/u/charles0301)\
**Post date:** [10. Februar 2023 um 10:40 UTC](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485/1 "2023-02-10T10:40:22Z")

</div>

We are sending requests to the APP backend server during checkout to confirm loading. How to create a controller to communicate with the External server.

---

<div class="post-metadata">

**Author:** ![chamaw](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@chamaw](https://forum.shopware.com/u/chamaw)\
**Post date:** [12. Februar 2023 um 10:00 UTC](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485/2 "2023-02-12T10:00:51Z")

</div>

Maybe to explain a bit more what you like to do ?

So a controller would be needed if you like to sent data to the Shopware system. Or do you like to call a 3rd party service somehow ?

---

<div class="post-metadata">

**Author:** ![charles0301](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/charles0301/32/8085_2.png) [@charles0301](https://forum.shopware.com/u/charles0301)\
**Post date:** [13. Februar 2023 um 08:12 UTC](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485/3 "2023-02-13T08:12:51Z")

</div>

@chamaw Thanks for the reply. Like sending post data to 3rd party services. In javascript, it is restricted due to CORS, Similarly sending API calls to shop to fetch shop data.

---

<div class="post-metadata">

**Author:** ![chamaw](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@chamaw](https://forum.shopware.com/u/chamaw)\
**Post date:** [15. Februar 2023 um 17:11 UTC](https://forum.shopware.com/t/how-to-create-stroe-api-controller-for-app-plugin/98485/4 "2023-02-15T17:11:17Z")

</div>

hmm so you can use file\_get\_content, curl or a lib like guzzleHttp to fetch the data ?
