Classic Coupon Template


Requiring a session id and other data such as a title and description. Because the number of participating stores and sites can vary, this method is only accessible through the XML gateway.

HTTP method: POST, GET

URI: http://www.tmsfactory.com/api/xml/

Returns: "true" on success

Parameters:
''* At least one participating store or site is required. ''

Example
We can make our request to the XML gateway (http://www.tmsfactory.com/api/xml/) with the following XML data:  xxxxxxxxxxxxxxxxxxxxxxxxxxxxx The TMS Factory Sample Coupon Get a 10% discount on campaigns! 1 december 2010 The mobile solution TMS123  Hong Kong Branch 169 Fake St., Hong Kong 85 123231123121</store_contact_number> </participating_store> <participating_store> Cebu Branch</store_branch> 4th floor Pag Ibig Bldg., Cebu City, Philippines</store_address> 63</store_country_code> <store_contact_number>87774857243</store_contact_number> </participating_store> <participating_site> <site_name>TMS Factory</site_name> <site_url>http://www.tmsfactory.com</site_url> </participating_site> <participating_site> <site_name>Palpak</site_name> <site_url>http://www.palpak.org</site_url> </participating_site> <optional_data>5</optional_data> Enter other info <menu_label>Classic Coupon Sample</menu_label> </classic_coupon> In this example all parameters are used, including 2 participating stores and 2 participating websites. To add additional stores or sites we simply create more <participating_store> or <participating_site> nodes respectively. Note that only a maximum of 10 is allowed for each. See the XML API for more information on XML requests.

Prerequisites

 * /auth
 * /register_campaign