![]() По-русски |
|
Here the matter will concern additional possibilities for the most advanced web-masters. These worth successors of my business :) will be able when wiling to leave even the most competent and meticulous user-checker in ignorance concerning the fact that their shop is the client of our system, that is to move all interfaces to its own site whether it is just a simple shopping cart gathering or payment process.
ATTENTION!!! All files necessary for this interface will be stored here:
http(s)://shopxml.com/EXTERNAL/
Referring to some of them (it will be stated to which specifically) you should use the protected https protocol. To the others - the usual http one (though the protected one is also not prohibited).
Below when describing the protocols only the file name itself will be specified. You should remember where these files are stored right now :)
Every time when you refer to interfaces you'll receive a certain result from them. The format of this result can be of two types:
1. Any line (on default)
This line can contain different data:
- HTML-code for direct inclusion into your page (to facilitate your work) when you simply request any data like the shopping-card content or the list of delivery ways. At that they are not demanding from the server to perform any actions like placing the order to the shopping cart, payment processing and so on.
- The line (or several lines) containing the list of fields divided with the | sign in case of server query to perform some actions like placing the order to the shopping cart, payment processing and so on. For every special case there will be given the list of fields and their values.
Attention: However in all cases (both in the 1-st and the 2-nd ones) when the error occurs this will be the very line containing the list of fields characterizing the error (info on error processing see below).
2. XML-structure (at request to receive XML) - for that when making a query the GET_XML=1 parameter should be stated
(in some interfaces - it will be specified - this parameter isn't valid because of the absence of any sense)
XML - is always XML. The external tags will always be the <answer></answer> tag (even in case of error). Internal structure in every case will be different (will be below described for every specific case).
Attention: However in all cases when the error occurs this structure will be the same and will describe the error (info on error processing see below).
Attention: The default coding for XML is windows-1251. If your parser doesn't understand this coding and requires only UTF-8 then you can among other parameters submit the GET_UTF8=1 parameter in a query to any interface (has sense only at GET_XML=1). Then you'll receive XML in the UTF-8 coding.
Up
error|ID|description|additional_descriptionerror - first field - will always be just the error line - that is when making a query to any system interface if the obtained result starts from error - then the ID error occured - unique error numberdescription - error descriptionadditional_description - additional error description (created on the fly)ID - unique error number<description> - error description<additional_description>* - additional error description
| Error ID (ID) | Description (description) | Explanation |
|---|---|---|
| 1 | Session opening error | Session opening error |
| 10 | Session identification error | Session identification error |
| 15 | HTTPS must be used | You can use this interface only using HTTPS |
| 20 | Incorrect product code | Incorrect product code or the product ID is not specified |
| 21 | Product is not available now | Product is not available now |
| 22 | Product was not found in the database | Product was not found in the database |
| 23 | Product is not available for a while | Product is not available for a while. Will be available later. |
| 24 | Product is out of stock now | Product is out of stock now. |
| 25 | Product is already in your shopping cart | Product is already in your shopping cart. Products with attributes however can be selected multiple times - as every time new attributes can be specified |
| 26 | This product is not available | This product is not available |
| 27 | Too big quantity | Not enough in stock (when the specified quantity is greater than there is available) |
| 28 | Options are not transferred | Options are not transferred |
| 29 | Some of required attributes are not chosen | Some of required attributes are not chosen |
| 50 | Invalid item index | Invalid item index in the shopping cart for the product with attributes |
| 51 | Incorrect quantity | Incorrect value for the product quantity (when editing the position in the shopping cart) |
| 52 | Incorrect attribute values | Incorrect attribute options' values (when editing the position in the shopping cart) |
| 69 | No logged customer | No logged customer (when trying to logout without the preliminary login) |
| 70 | Customer already logged | Customer already logged (when trying to repeatedly use interfaces for login) |
| 71 | Email incorrect | Email of the customer is not specified or has the incorrect format |
| 72 | Password is required | You forgot to submit the password |
| 73 | Account deactivated | Account deactivated |
| 74 | Invalid password | Invalid password |
| 75 | No user found | No user found with this E-Mail |
| 76 | Entered E-Mail already exists in our customers' database | Entered E-Mail already exists in our customers' database |
| 77 | Password is not confirmed | Repeated password doesn't correspond to the main one (at registration) |
| 78 | New password is required | You forgot to submit new password (when changing password) |
| 79 | New password is not confirmed | Repeated new password doesn't correspond to the main one (when changing password) |
| 81 | Shopping cart is empty | Shopping cart is empty (when trying to use interfaces requiring that the shopping cart contain some products) |
| 82 | Customer is not logged in | Customer is not logged in (when trying to use interfaces requiring that the customers be logged in) |
| 83 | Shipping address is not defined | Shipping address is not defined (when trying to use interfaces requiring that the address be defined) |
| 84 | Shipping method is not defined | Shipping method is not defined (when trying to use interfaces requiring that the method be defined) |
| 100 | Incorrect input data | Incorrect input data (for example the unexisting country is specified, unknown shipping ID and so on) |
| 101 | Incorrect Ship-to State/Province | When entering the address it is required to specify the province, but it is not specified or specified incorrectly. |
| 102 | Ship-to First Name is empty | Ship-to First Name is not specified |
| 103 | Ship-to Last Name is empty | Ship-to Last Name is not specified |
| 104 | Ship-to Address is empty | Ship-to Address is not specified |
| 105 | Too short Ship-to Address | Too short Ship-to Address |
| 106 | Ship-to City is empty | Ship-to City is not specified |
| 107 | Too short Ship-to City | Too short Ship-to City |
| 108 | Ship-to Zip/Postal Code is empty | Ship-to Zip/Postal Code is not specified |
| 109 | Too short Ship-to Zip/Postal Code | Too short Ship-to Zip/Postal Code |
| 110 | Ship-to Telephone is empty | Ship-to Telephone is not specified |
| 111 | Too short Ship-to Telephone | Too short Ship-to Telephone |
| 121 | Incorrect Bill-to State/Province | When entering the address it is required to specify the province, but it is not specified or specified incorrectly |
| 122 | Bill-to First Name is empty | Bill-to First Name is not specified |
| 123 | Bill-to Last Name is empty | Bill-to Last Name is not specified |
| 124 | Bill-to Address is empty | Bill-to Address is not specified |
| 125 | Too short Bill-to Address | Too short Bill-to Address |
| 126 | Bill-to City is empty | Bill-to City is not specified |
| 127 | Too short Bill-to City | Too short Bill-to City |
| 128 | Bill-to Zip/Postal Code is empty | Bill-to Zip/Postal Code is not specified |
| 129 | Too short Bill-to Zip/Postal Code | Too short Bill-to Zip/Postal Code |
| 130 | Bill-to Telephone is empty | Bill-to Telephone is not specified |
| 131 | Too short Bill-to Telephone | Too short Bill-to Telephone |
| 201 | Credit card owner is empty | Credit card owner is not specified (authorized payment) |
| 202 | Too short credit card owner's name | Too short credit card owner's name (authorized payment) |
| 203 | Credit card number is empty | Credit card number is not specified (authorized payment) |
| 204 | Too short ñredit card number | Too short ñredit card number (authorized payment) |
| 205 | The credit card number is invalid | The credit card number is invalid - should contain only numbers without spaces, dashes and so on (authorized payment) |
| 206 | CVV Code is empty | CVV Code is empty (authorized payment) |
| 207 | Too short CVV Code | Too short CVV Code (authorized payment) |
| 208 | The CVV Code is invalid | The CVV Code is invalid - should contain only numbers (authorized payment) |
| 209 | Credit Card expire year is invalid | Credit Card expire year is invalid - should contain 4 numbers (authorized payment) |
| 210 | Credit Card is expired | Credit Card is expired - that is the current data is higher than the specified one (authorized payment) |
| 211 | Problem with connection to payment system | Problem with connection to credit cards' processing system (authorized payment) |
| 212 | Your IP is banned | Customer IP is banned |
| 213 | Too much attempts of credit card processing. Are you a carder? | Suspicion of cardering |
| 215 | Credit Card processing error | Credit Card processing error. Additional error description (additional_description) will contain the line with payment system clarifications |
| 300 | Quantity of some products is over our limit | When the person has made an order and somebody managed to make it earlier and to take some quantity of products, so that now some products are not available. Additional error description (additional_description) will contain the line with payment system clarifications |
| 350 | Discount is already applied | One discount coupon has been applied earlier (when trying to repeatedly apply the same of another discount coupon) |
| 351 | Incorrect discount coupon code | Incorrect discount coupon code |
| 352 | This discount coupon has been deactivated | This discount coupon has been deactivated |
| 353 | This discount coupon is not active now | This discount coupon is not active now or yet |
| 354 | Limit of using this discount coupon is excessed | Limit of using this discount coupon is excessed |
| 400 | Incorrrect order ID | Incorrrect order ID |
| 1000 | Unknown error | Unknown error |
session_start.phpshop - Your shop ID in the system (required parameter)session<session> - session code
Here is a good PHP code for session opening (this code should be included into the script where the product is put to the shopping cart):
<?
session_start();
if (!$_SESSION['SHOPXML_SESSION']) {
$tmp=file("http://shopxml.com/EXTERNAL/session_start.php?shop=$MyShopID");
if (strpos($tmp[0],'error|')===0) my_process_error($tmp);
else {
$SHOPXML_SESSION=$tmp[0];
session_register('SHOPXML_SESSION');
}
}
else $SHOPXML_SESSION=$_SESSION['SHOPXML_SESSION'];
?>
Up
As a result of this code performance in the $SHOPXML_SESSION valuable you'll have the current session identifier.
The my_process_error() function in the example - is your error processing function.
Here is the code that should be used in all other scripts:
<?
By the way, the SHOPXML_SESSION name for the given valuable is used not accidentally! When making inquiries to the system (referring to interfaces) you should use the very name for session identifier submission. For example:
session_start();
$SHOPXML_SESSION=$_SESSION['SHOPXML_SESSION'];
?>
http://shopxml.com/EXTERNAL/filename.php?SHOPXML_SESSION=$SHOPXML_SESSION
Up
So, we sum it all a little bit up.
Here are several things you should make clear to yourself and which won't be repeated below:
1. All files for external interface use are here:
http(s)://shopxml.com/EXTERNAL/
2. To use any (except the separately mentioned ones) interfaces you should preliminary open the session one time (!) for every unique customer (and not any user) with the help of the 0 interface.
3. When referring to any interface (except the 0 one and those where it will be personally stated that it is not required) it is necessary to submit the unique identifier of the preliminary opened session for the current customer SHOPXML_SESSION session
4. To receive as an answer from any XML-structure the interface when making a query submit the GET_XML=1 parameter (again except the separately specified cases where this parameter doesn't play any part.
At that if you want to receive XML in UTF-8 coding (and not in windows-1251 one which is used on default) then you should submit the GET_UTF8=1 parameter.
The answer as XML will always (even in case of an error) have
5. When referring to any interface as an answer you may receive the error - don't forget to process it.
Up
add_to_cart.phpproduct - product ID (required parameter)quantity - quantity (optional parameter) - default value is 1new_name - redefined name for the given product in your shop (optional parameter)attributes_by_code - flag (=1), indicate that you use a new format for indication product's options (required from Dec 20, 2008). In this case in the option's names and values, specified below, you need use attrCode and optCode instead attrID and optIDattr[attrID] - for attributes of 0 and 1 types (obligatory and optional choice). The optID value should be submitted.attr[attrID][optID] - for attributes of type 2 (multiple choice). The value 1 should be submitted if the option is selected.quest[attrID][optID] - user answers to additional questions to selected options.get_quantity - submit 1 if you want to receive the total value of products in the shopping cart as an answer.<index> - code<quantity>* - if get_quantity=1 was sethttp://shopxml.com/EXPORT/product.php?shop=shopID&product=prodID&template=FORM&quantity=Quantity&new_order_url=YourActionURL
Here is an example of good PHP function which Returns the line of adding to url by submitting all the parameters required by the page into it (but not further than to the second-level massives):
<?
function translate_to_url() {
$P=array_merge($_GET,$_POST);
$str='';
foreach ($P as $k=>$v) {
if (!is_array($v)) { $str.="&$k=".urlencode($v); continue; }
foreach ($v as $k1=>$v1) {
if (!is_array($v1)) { $str.="&{$k}[$k1]=".urlencode($v1); continue; }
foreach ($v1 as $k2=>$v2)
if (!is_array($v2)) $str.="&{$k}[$k1][$k2]=".urlencode($v2);
}
}
Return $str;
}
?>
Example of use:
<?
$URL="http://shopxml.com/EXTERNAL/add_to_cart.php?SHOPXML_SESSION=$SHOPXML_SESSION".translate_to_url();
$res=implode('',file($URL));
?>
Up
<products> - products listquantity - product quantity in the shopping cartweight - total weight of products in the shopping cartprice - total price of products in the shopping carttax* - total tax sum (if the customer has already entered the billing address and if the tax doesn't equal 0)ship* - delivery costs (if the customer has already entered the shipping address and the delivery sum doesn't equal 0)price_full - full price (products+taxes+delivery)discount* - sum of the received discount (if it is applied)discount_products* - product discount part discount_tax* - tax discount part discount_shipping* - delivery discount part <product>* - product (for every position in the shopping cart)ID - product ID (remeber that the products with attributes will be repeated if put several times) index* - position index in the shopping cart for products with attributes<name> - namequantity - quantity for this position in the shopping cartweight - total weight of this position in the shopping cart (that is taking into account the quantity)price_one_wo_attr* - price of one product in this position not taking into account the attributes' price (if the product has some attributes) price_one - price of one product in this positionprice - position price (that is taking into account the quantity) tax* - tax sum for this position (if it doesn't equal 0)price_full - total position price (taking into account taxes)<attributes> - line with enumeration of the selected attribute optionsitem_edit.phpindex - position ID in the shopping cart for editing (its location was mentioned above)new_item_update_url - url-address which is required to be set as Action in the form of editing the selected options of the products with attributes in the shopping cart.template - template that should be used for the product at options' editing (the default value is FORM - that is an empty form
http://shopxml.com/EXPORT/product.php?shop=shopID&product=prodID&template=FORM&quantity=Quantity&new_item_update_url=YourActionURL&index=IndexInCart
attr[attrCode] - for attributes of type 0 and 1 (obligatory and optional choice). The optCode value should be submittedattr[attrCode][optCode] - for the attributes of type 2 (multiple choice). The 1 value should be submitted if the option is selected.quest[attrCode][optCode] - user answers to additional questions to the selected options. index - position index in the shopping cartnew_item_update_url - this the url-address that is required to be set into Action of the options' selection form - address of your script-processor. Thus you will be able just to submit all data received from this form in the query to item_update.php (the next interface - 5) in your own script. index - position index in the editing shopping cart (required parameter)product - ID of the given product. Optional parameter, but it is recommended to specify it :)quantity - new quantity for this position in the shopping cart (required parameter)attributes_by_code - flag (=1), indicate that you use a new format for indication product's options (required from Dec 20, 2008). In this case in the option's names and values, specified below, you need use attrCode and optCode instead attrID and optIDattr[attrID] - for attributes of type 0 and 1 (obligatory and optional choice). The optID value should be submittedattr[attrID][optID] - for attributes of type 2 (multiple choice). The 1 value should be submitted if the option is selected.quest[attrID][optID] - user answers to additional questions to the selected options.get_quantity - submit 1 if you want to receive the total product quantity in the shopping cart as an answer. <code> - 1 or quantitylogin_form.php
login.phpemail - Customer E-Mail address (it is also the login) (required parameter)password - customer password (required parameter when making the login)dologin - 1 - login indicator (required parameter when making the login)doreset - 1 - password reset indicator (required parameter to reset the password)get_customer_id - if you don't set this parameter in 1 then this customer ID will return to you in the login_status field in the answerlogin_status will be just returned to you (if no errors occured) in the answer - 1 or customer ID (integer positive value) if you have set get_customer_id=1, - if the login is correct, 0 - if the either reminder was made or the password reset.password - old password if the password reminder was made or the newly password was generated if the password wasn't reset.login_status|password<login_status>* - if the login was made (dologin=1)<password>* - if the password reminder was made (without the parameter) or it was reset (doreset=1)addresses.php
email - Customer E-Mail address (it is also the login) (only when he is not logged in)password - customer password that he has to select (only if he is not logged in)password1 - customer password in the password confirmation field (only if he is not logged in)new_addresses_url - url-address that is required to be set as Action in this formsel_addr2 - customer shipping address ID from his address listsel_addr1 - customer billing address ID from his address listfirst_name2 - shipping first namelast_name2 - shipping last namecompany2 - shipping company nameaddress21 - shipping address line 1address22 - shipping address line 2city2 - shipping citystate2 - shipping state/province (province ID for particular country)zip2 - shipping zip/postal codecountry2 - shipping country (country province ID)tel2 - shipping telephonefirst_name1 - billing first namelast_name1 - billing last namecompany1 - billing company nameaddress11 - billing address line 1address12 - billing address line 2city1 - billing citystate1 - billing state/province (province ID for particular country)zip1 - billing zip/postal codecountry1 - billing country (country province ID)tel1 - billing telephonecomment - customer comment <addresses>* - address list for the given customer<address> - address (repeated for every address)<name> - name<countries> - countries' list<country> - country (repeated for every country)<name> - name<zones>* - provinces' list for particular country (if there are such)<zone> - province (repeated for every province)<name> - province nameaddresses_process.phpemail - E-mail address (it is also the login) of the customer being registered (required parameter if the customer is not already logged in)password - password selected by the customer being registered (required parameter if the customer is not already logged in)password1 - password entered by the customer being registered into the password confirmation field (required parameter if the customer is not already logged in)sel_addr2 - Customer shipping address ID from his address list if the logged-in customer has selected itsel_addr1 - customer billing address ID from his address list if the logged-in customer has selected itfirst_name2 - shipping first name (required)last_name2 - shipping last name (required)company2 - shipping company nameaddress21 - shipping address line 1 (required)address22 - shipping address line 2city2 - shipping city (required)state2 - shipping state/province (province ID for particular country) (required only if the selected country has states. Otherwise it can either equal 0 or be absent at all)zip2 - shipping zip/postal code (required)country2 - shipping country (country province ID) (required)tel2 - shipping telephone (required)first_name1 - billing first name (required)last_name1 - billing last name (required)company1 - billing company nameaddress11 - billing address line 1 (required)address12 - billing address line 2city1 - billing city (required)state1 - billing state/province (province ID for particular country) (required only if the selected country has states. Otherwise it can either equal 0 or be absent at all)zip1 - billing zip/postal code (required)country1 - billing country (country province ID) (required)tel1 - billing telephone (required)comment - user commentget_customer_id - if you set this parameter in 1 the current customer ID will be returned to you in the answer get_customer_id=1<code> - 1 or IDshipping.phpnew_shipping_url - url-address required to be set as Action in this form <shippings> - delivery methods list<shipping> - delivery method (repeated for every way)ID - delivery method ID (line!!!)price - delivery method price<name> - delivery method nameshipping_process.phpship - delivery method ID - line (in XML figured as ID) (required parameter)<code> - 1
payment.phpnew_payment_url - url-address required to be set as Action in this formnew_cvv_url - url-address required to be set in the link to credit card CVV-code instructiondiscount_code - discount coupon ID that should be set into the corresponding form field (if the discounts haven't been applied before) no_discount - submit 1 if you do not want that the field to enter the discount coupon be present in the payment form (if the discount has already been applied it will be absent in any case)cc_name - credit card owner namem_cc_type - credit card type (for payment method 2) - see belowcc_number - credit card numbercc_month - credit card expire month 1-12cc_year - credit card expire year - 4-digitcc_id - credit card CVV-ID SHOULD NOT BE SUBMITTED - it won't be interpreted (for security purposes).<payments> - payment methods' list<payment> - payment method (repeated for every method)ID - method ID (this is a line)<name> - method name<discount_code>* - the earlier applied discount coupon ID will be displayed if it has been applied (that is you are not able to apply them again until you cancel the old one - see extended interfaces below)payment_process.phpsystem - payment method ID - line (in XML figured as ID) (required parameter)customer_ip - customer IP-address. As you may understand we ourselves cannot define the IP address of your customer if you use external interfaces. That's why if you want additional customer control by this parameter you should submit it, moreover, it is not so difficult. To define the IP-address in PHP there is the $_SERVER['REMOTE_ADDR'] valuable (when submitting don't forget to url-code it as well)discount_code - discount coupon ID that should be applied to this purchase (if no discounts have been applied before. If the discounts have been applied and you submit this parameter not empty then you'll receive an error)get_detailed_info - submit 1 if in the answer you want to receive the detailed information on order registrationcc_name - credit card owner name (required parameter)cc_number - credit card number (required parameter)cc_month - credit card expire month from 1-12 (required parameter )cc_year - credit card expire year - 4-digit (required parameter)cc_id - credit card CVV-code (required parameter)cc_name - credit card owner name (required parameter)m_cc_type - credit card type (required parameter)cc_number - Credit card number (required parameter)cc_month - Credit card expire month from 1-12 (required parameter)cc_year - Credit card expire year - 4-digit (required parameter)cc_id - (required parameter)cc_id - Credit card CVV-code ()cc_name - credit card owner name (required parameter)cc_number - credit card number (required parameter)cc_month - credit card expire month from 1-12 (required parameter )cc_year - credit card expire year - 4-digit (required parameter)cc_id - credit card CVV-code (required parameter) product_num - quantity of subjects in the orderprice - order price (the customer paid that is taking into account discounts if there were any)price_products - products price in the order (taking into account discounts if there were any)price_tax - tax sum in the order (taking into account discounts if there were any)price_shipping - delivery price (taking into account discounts if there were any)discount - received discount sum (if there were any)discount_products - products discountdiscount_tax - tax discountdiscount_shipping - delivery discountID|product_num|price|price_products|price_tax|price_shipping|discount|discount_products|discount_tax|discount_shipping<ID> - order ID - always<product_num> - see the value above (if the detailed information was requested)<price> - see the value above (if the detailed information was requested)<price_products> - see the value above (if the detailed information was requested)<price_tax> - see the value above (if the detailed information was requested)<price_shipping> - see the value above (if the detailed information was requested)<discount> - see the value above (if the detailed information was requested)<discount_products> - see the value above (if the detailed information was requested)<discount_tax> - see the value above (if the detailed information was requested)<discount_shipping> - see the value above (if the detailed information was requested)addresses_process.php (that you can perform without participation of the user) again - it is necessary as the very interface calculates the delivery methods and price depending on the shopping cart content and shipping address.
register_form.phpfirst_name - customer first name (optional parameter)last_name - customer last name (optional parameter)email - customer E-Mail address (it is also the login) (optional parameter)password - customer password (optional parameter)password1 - confirmed customer password (optional parameter)new_register_url - url-address required to be set as Action in the registration form (optional parameter)new_register_url is not specified then the user will be automatically redirected from this page to the main system site. register.phpfirst_name - customer first name (optional parameter)last_name - customer last name (optional parameter)email - customer E-Mail address (it is also the login) (required parameter)password - customer password (required parameter)password1 - confirmed customer password (required parameter)get_customer_id - if you set this parameter in 1, then the ID conferred to this user will returned to you in the answer in the register_status fieldregister_status (if no error occured) - 1 or customer ID (integer positive value) will be Returned to you if you set get_customer_id=1register_status<register_status>
logout.phplogout_status - 1 will be Returned to you (if no error occured)logout_status<logout_status>password_form.phppassword - current customer password (optional parameter)new_password - new customer password (optional parameter)new_password1 - confirmed new customer password (optional parameter)new_password_url - url-address required to be set as Action in the password change form (optional parameter)password.phppassword - current customer password (required parameter)new_password - new customer password (required parameter)new_password1 - confirmed new customer password (required parameter)password_status - 1 will be Returned to you (if no error occured)password_status<password_status>quantity.phpquantity - product quantity will be Returned to youquantity<quantity>discount_form.phpdiscount_code - discount coupon code (to be shown in the corresponding field)new_discount_url - url-address required to be set as Action in the formdiscount.phpdiscount_code - discount couponcode that should be applied to the current purchase (if the discounts haven't been applied before. If there were some you'll get an error)delete - submit 1, if you want to cancel the discount applied before (you surely shouldn't submit the code in this case)price - current order price (taking into account discounts if applied)price_products - price for products in the order (taking into account discounts if applied)price_tax - tax sum in the order (taking into account discounts if applied)price_shipping - shipping price (taking into account discounts if applied)discount - sum of the received discount (if applied)discount_products - products discount partdiscount_tax - tax discount partdiscount_shipping - shipping discount partprice|price_products|price_tax|price_shipping|discount|discount_products|discount_tax|discount_shipping<price> - see the value above (if the detailed information was requested))<price_products> - see the value above (if the detailed information was requested)<price_tax> - see the value above (if the detailed information was requested)<price_shipping> - see the value above (if the detailed information was requested)<discount> - see the value above (if the detailed information was requested)<discount_products> - see the value above (if the detailed information was requested)<discount_tax> - see the value above (if the detailed information was requested)<discount_shipping> - see the value above (if the detailed information was requested)cart_info.phpdiscount_code - discount coupon code (to be shown in the corresponding field in the form if the discount wasn't applied)new_discount_url - url-address required to be set as Action in the discount coupon application formno_discount - submit 1 if you don't want that the discount coupon enter form be present in the table with order information (if the discount was already applied there will be no discounts in any case)new_cancel_discount_url - url-address required to be set in the link to cancel the applied discount coupon. If not specified then there will be no corresponding linkorders.phpnew_order_view_url - only in case of a simple (áåç GET_XML=1) query. Url-address required to be set in the link to receive the detailed information on the specific order. If this parameter is not specified this link will be absent.<orders> - orders list<order>* - order (for every order)ID - order IDtime - order time in UNIX_TIMESTAMPtime_str - order time clear line price - total order price (includes products, taxes, shipping), paid by the customer (that is taking into account the discounts)price_prd - price only for products in the order price_tax - taxesprice_ship - order shipping pricediscount - total discount received by the customerdiscount_prd - product discount partdiscount_tax - taxes discount partdiscount_ship - order shipping price partstatus - order status - number (see below)status_str - order status - clear definition (see below)order_details.phpID - order ID (obligatory parameter)<order> - orderID - order IDtime - order time in UNIX_TIMESTAMPtime_str - order time in clear line price - total order price (includes products, taxes, shipping), paid by the customer (that is taking into account the discounts) price_prd - price only for the products in the order price_tax - taxesprice_ship - order shipping pricediscount - total discount received by the customerdiscount_prd - product discount part discount_tax - taxes discount part discount_ship - order shipping price discount part status - order status - numberstatus_str - order status - clear definitionboxes - number of boxes the order was sent in (should be a very large order that the number of boxes exceeded 1)<products> - products listquantity - quantity of products in the order weight - total products' weight in the shopping cart <product>* - product (for any position in the order) ID - product ID (products with attributes if they were put several times then they will be repeated)<name> - namequantity - quantity for te given position in the orderweight - total weight of this position in the order (that is taking into account the quantity)price_one_wo_attr* - price of one product in this position without taking into account the attributes (if the product has some)price_one - price of one product in this position price - position price (that is taking into account the quantity)tax* - tax sum for this position (if not 0)price_full - total position price (taking into account the taxes)<attributes> - line with enumeration of the selected options for attributes<model> - product's model<email> - customer E-Mail<comment> - user order comment<shipping_details> - selected shipping method (clearly written line)<payment_details> - payment details (clearly written line)<shipping_address> - shipping address
<last_name> - last name<company> - company name<address1> - address line 1 <address2> - address line 2<city> - city<state> - state/province (full name)<zip> - zip/postal code<country> - country (full name)<tel> - telephone<fax> - fax<billing_address> - customer billing address (payer)<first_name> - first name<last_name> - last name<company> - company name<address1> - address line 1<address2> - address line 2<city> - city<state> - state/province (full name)<zip> - zip/postal code<country> - country (full name) <tel> - telephone<fax> - fax| Contact Us Legal and Policies Sitemap | © XMLShop.com 2004 – 2013 |