Jump to content

Cannot use POST methode with the ressource stock_availables


Recommended Posts

Greetings,

I've been working prestashop webservices for the past weeks and now I'm tackling stock management. Reading the documentation, my guess is that I've to use ressource stock_availables to do that. However there is something wrong with the documentation : https://devdocs.prestashop.com/1.7/webservice/reference/
It says that GET, POST and HEAD methods are available for the ressource stock_available. But I can't use the POST method with Postman, giving me this error code : 

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

    <errors>

        <error>

            <code>

                <![CDATA[101]]>

            </code>

            <message>

                <![CDATA[Method POST is not allowed for the resource stock_availables]]>

            </message>

        </error>

    </errors>

</prestashop>

And surprisingly, I can use the PUT method, which shouldn't be working if I'm reading the documentation correctly. I would like to know if it's just an issue with the documentation or if the problem is on my side. 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...