Xml feed

Ako želite da sve Vaše ponude budu prikazane na našem sajtu, pošaljite nam na naš e-mail URL adresu stranice/fajla, koja će imati sledeći XML feed.
Ovaj XML feed možete da skinete (XML feed template). Kada završite, možete da proverite da li je sve urađeno kako treba ovde.
<SERVER>
    <DEAL>
        <CITY>Beograd</CITY>
        <TITLE>1000 din umesto 5000 din za ...</TITLE>
        <URL>http://xxxxxxxxxx.rs/ponuda/111</URL>
        <IMAGE>http://xxxxxxxxxx.rs/yyyyyyyyyyyyyy.jpg</IMAGE>
        <FINAL_PRICE>1000</FINAL_PRICE>
        <ORIGINAL_PRICE>5000</ORIGINAL_PRICE>
        <DISCOUNT>80</DISCOUNT>
        <DEAL_START>2011-11-11 00:00:00</DEAL_START>
        <DEAL_END>2011-11-18 00:00:00</DEAL_END>
        <ID>111</ID>

        <CATEGORY>Welness</CATEGORY>

        <CUSTOMERS>0</CUSTOMERS>
        <MIN_CUSTOMERS>0</MIN_CUSTOMERS>
        <MAX_CUSTOMERS>0</MAX_CUSTOMERS>
        <TAG>sijacu, masaza</TAG>
        <VOUCHER_START>2011-12-01 00:00:00</VOUCHER_START>
        <VOUCHER_END>2012-12-01 00:00:00</VOUCHER_END>
        <ADDRESS>Beograd, ...</ADDRESS>
        <PRIORITY>1</PRIORITY>
    </DEAL>
    <DEAL>
        .
        .
        .
    </DEAL>
</SERVER>

Description

Element Possible values Description Value example
Required
CITY String (Beograd|Novi Sad|Niš|...) The city where vouchers can be used. Beograd
TITLE String (Any plain text - max. 150 chars) The deal description.
NOTE: Using of more than 30% of capitals will lead in lower casing of the whole text.
300 minutes of tanning in a solarium at the cosmetic studio Beauty Toast.
URL String (URL) The URL where we will redirect our visitors if they are interested in a deal. The URL must be invariable which means it will not change when deal title is changed. Wrong:
http://example.com/deal/300-minutes-of-tanning/123.

Correct:
http://example.com/deal/-/123 or
http://example.com/deal/123.
IMAGE String (URL) The URL which will be used for generating a thumbnail (290x150). http://example.com/images/123.jpg
FINAL_PRICE Integer or Float (with dot as decimal separator) The final price of a product/service in Dinars. 5990
ORIGINAL_PRICE Integer or Float (with dot as decimal separator) The original price of a product/service in Dinars. 10000.00
DISCOUNT Float (between 1 and 100, without % sign, decimals separated by dot) The deal discount which must equal (+/- 1) to
100 - 100 * FINAL_PRICE / ORIGINAL_PRICE.
40
DEAL_START String (YYYY-MM-DD H:i:s) When the deal starts. 2012-05-20 00:00:00
DEAL_END String (YYYY-MM-DD H:i:s) When the deal ends. 2012-05-27 00:00:00
ID Integer or String (max. 255 chars) Your unique and invariable deal ID. 123
Optional or will be used in the near future.
CUSTOMERS Integer How many visitors ordered vouchers so far (at the moment when our crawler downloaded your XML feed). 95
MIN_CUSTOMERS Integer How many vouchers is required to be ordered to activate the deal. 20
MAX_CUSTOMERS Integer Maximum number of vouchers that can be ordered. 200
TAG Words separated by comma. Tags describing the deal and which will be used for a searching. We recommend to provide the tags otherwise visitors will be unable to find the deal in the case the title differs searched keywords! solarium, tanning
VOUCHER_START String (YYYY-MM-DD H:i:s) When visitors can start to use the voucher. 2012-06-01 00:00:00
VOUCHER_END String (YYYY-MM-DD H:i:s) When the voucher will expire. 2013-06-01 00:00:00
ADDRESS String (Plain text or GPS coords) The place where the voucher can be used. It will be used for displaying on the map. Beograd, Some street...
PRIORITY Integer When two or more of your deals will be next to the each other the ones with higher priority will be shown higher. 1