Authorization


Registration   Forgot password?

Adding a New Order Comment or/and Editing an Existing One


In order to add a new comment to the order or edit an existent please open the following file:

comment_edit.php


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

API Request:
POST /API/comment_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=comment_id&ordID=order_id&content=string&mail=1
(All possible request parameters see 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>comment_id</id>


Request parameters (not essential to use unless specified):

id - comment ID transmitted only if editing an existent comment, to add new comment you should transmit -0-.
ordID - order ID is essential when adding new comment
content - comment content (essential)
mail - if the comment should be send to the customer then set in 1.


Response parameters:

If no error ocurrs the response field gives an ID of new/existent comment in XML format as following:

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