Style Volume Services Development Documentation
This documentation has been written to help developers develop the Import script in order to make use of Style Volume's XML feed. Dropshipping users can define product margins and which products they want displayed on their website by going to the “Feed Settings” page.
Base URL for the feed: http://www.stylevolume.com/core.php
Basic Info
All queries to the server must be POST'd and contain at least three POST switches:
• Username
POST variable: u
Expected value: The email address used to log into stylevolume.com. The "@" symbol should be url encoded.
Example: u=bob%40hotmail.com
• Password
POST variable: p
Expected value: The password used to log into stylevolume.com
Example: p=MyPassword123
• Action
POST variable: action
Expected value: getProducts, saveOrder, checkInventory
Example: action=getProducts
Action Usage
• getProducts
Description :
This feature will return a gzip compressed XML file of the products selected in the user's control panel on stylevolume.com.
Usage Instructions:
The “lowQuantity” element in the XML document will have a value of “1” if the product has low quantities, and “0” if the product is sufficiently high in stock. (Please Note: Low quantities do not mean that the product is out of stock, it just signifies that the product is low in stock and may go out of stock in the near future).
Remember to check the Content-Type header value before decompressing as error messages are sent in unencrypted plaintext form. Compressed output will have a Content-Type of “application/x-gzip”.
• saveOrder
Description :
When a customer makes a purchase on the dropshipper's site, the order information can be added to the dropshipper's account with this feature. Order information is sent in XML form through the “order_data” POST variable, as shown below:
<request>
<saveOrderRequest>
<customer>
<name>Joe Customer</name>
<address> 123 Main St. </address>
<address2></address2>
<city> Austin </city>
<province>TX</province>
<postalCode>12345</postalCode>
<country> US </country>
</customer>
<order>
<item>
<id>142</id>
<qty>1</qty>
</item>
<item>
<id>169</id>
<qty>1</qty>
</item>
</order>
</saveOrderRequest>
</request>
The country value must be a valid 2-character country code. For example, UK = United Kingdom , US = United States , etc. Please refer to the following page to get a details list of ISO2 country codes
ISO Country Codes
• checkInventory
Description:
This feature will check the inventory of a given product in a given quantity. The POST variables are:
pID : The product ID
qty : An integer value of the number of units requested
If you require Style Volume's assistance with making your website compatible with our using this advanced XML feed, our technical team may be able to help you for an additional charge. This charge varies from site to site, depending on several factors. Please use the form on the contact us page to get in touch with us and send us the following details about your site:
- Your website Link.
- The E-Commerce system the site is running on (Oscommerce, Cube Cart, Custom, etc.)
- Whether you use other drop shipper's on the same website or not?
- Any other relevant details.
|