Jump to content

API create resource

Ciro Marciano

Recommended Posts


I'm starting to use the PS API but I cannot create a resource, I'm able to list a resource but I don't know why the creation doesn't work

I'm trying with a simple table (countries) using postman and putting in the body (raw & xml) this one:

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
	<name><language id="1"></language></name>


using a POST call



but I get in response the list of all the countries, without my new one.

tried also with a simple new currency with this xml in body

<language id="1" xlink:href="https://www.ncssrl.com/pshop/api/languages/1">US Dollar</language>
<name notFilterable="true">US Dollar</name>
<language id="1" xlink:href="https://www.ncssrl.com/pshop/api/languages/1">$</language>
<language id="1" xlink:href="https://www.ncssrl.com/pshop/api/languages/1"></language>

postman response says 200 OK but only shows me the old currency and not the new one.



Edited by Ciro Marciano (see edit history)

Share this post

Link to post
Share on other sites

I'm trying to create a new product with API URL, but I cannot get any error and any new product created. why?

this is my xml

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
            <language id="1">CIRO PROVA</language>
        <description>CIRO PROVA</description>
            <language id="1">ciroprova</language>



Edited by Ciro Marciano (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More