Authorization


Registration   Forgot password?

Changing Order Price


If you wish to change the total price of the order please open the following file:

order_edit_correction.php


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

API Request:
POST /API/order_edit_correction.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=order_id&amount=decimal&description=string
(All possible request parameters 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" ?> 
<status>1</status>


Request parameters (not essential to use unless specified):

id - order ID (essential)
amount - full amount of the order (it is essential, in some cases might be negative). It does not modify the order price being set previously (if any was done) but replaces as a correction.
description - the correction description, replaces previously submitted description (if any was done). It is an essential element, if the amount equals zero. If amount=0 and description is empty, the correction is canceled since the order is set to default.


Response parameters:

If no error occurs the response field shows the operation status in XML format as following:

<status> - 1 defines success
Contact Us Legal and Policies Sitemap
© XMLShop.com 2004 – 2018