i am trying to create a custom REST API

i use this guide https://inchoo.net/magento/configure-magento-rest-and-oauth-settings/

enter image description here

api2.xml file

<?xml version="1.0"?>
            <lovatapi_restapi translate="title" module="LovatApi_Restapi">
                <title>Lovat Api</title>
            <lovatapi_restapi translate="title" module="LovatApi_Restapi">
                <title>Lovat API</title>
                <attributes translate="" module="LovatApi_Restapi">

but when i try to do request to my api i get this

enter image description here

How to solve this problem?

1 Answer 1


I would suggest to follow that guide. It's pretty detailed and simple: https://code.tutsplus.com/tutorials/create-a-custom-api-in-magento-part-two--cms-23821. You should make it work with that tutorial.

In general I think that your API Wsdl URL is wrong. It should be something like "http://yourmagentostore/api/v2_soap?wsdl=1".

Aditionally the main custom Api files should be "api.xml" for declaring the API methods and the "wsdl.xml" for defining the API methods in SOAP syntax.

Further i'm missing the ACL node inside your provided config. It's used to provide access to the specific ressources.

With the linked tutorial you should be able to make it work.

Good luck

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.