Authorization


Registration   Forgot password?

Adding a New Manufacturer or/and Editing an Existing One


If you wish to add a new manufacturer or/and edit an existing one please open the following file:

manifacturer_edit.php


Legend:
<element> – optional elements
param – required parameters
param – optional parameters

API Request:
POST /API/manufacturer_edit.php?api_id=id&api_key=key HTTP/1.1
Host: www.shopxml.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

id=manufacturer_id&name=string&url=url&description=string&...
(all the possible parameters of request can be found below)

API Response:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8" ?> 
<id>manufacturer_id</id>


Request parameters (not essential to use unless specified):

id - manufacturer ID is transmitted only when editing an existing manufacturer. To add a new manufacturer -0- value should be transmitted/or not
name - name (should be always put in when adding new manufacturer) up to 255 symbols.
url - manufacturer's URL address up to 100 symbols
description - description up to 65K symbols
image - image file, transmitted by utilizing POST method analog of browser method (e.g. <input type=file name=image>), or string that contains image URL address.


Response parameters:

If no error ocurrs the answer field gives an ID of a new/existing manufacturer in XML format as following:

<id> - manufacturer ID, an integer number
Contact Us Legal and Policies Sitemap
© XMLShop.com 2004 – 2018