- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a PHP API available for extensions other than the web APIs?
We're trying to create a Magento extension that needs the ability to get called when orders are created, and then it will perform a validation step, and then we need to be able to modify the order's status.
We haven't been able to figure out what APIs are available. The module will be written in PHP and runs on the Magento server right, but the APIs seem to only refer to web APIs that use SOAP or REST interfaces. But that doesn't seem like it would be the right approach since it's odd to call a SOAP or REST API back to the same server that the extension is running on.
Isn't there a PHP API we can use to do things like directly read and modify orders?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Is there an API available for extensions (PHP) other than the web APIs?
Anyone?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Is there an API available for extensions (PHP) other than the web APIs?
Hi @david_o
I'm not sure how you want to customize the process but maybe you can start using something like:
- Plugins: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html
- Events and Observers: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html
Or maybe a mix of those elements.
I need more data to have a better idea about which kind of integration or module you want to build.
Cheers!