API Changes - 2013
===================
style_map
---------
Sample input
.. code-block:: xml
testpass
map_key_doesnt_exist
web_finder-image_feature-items/uk
In this example two event listings (map_keys) are specified. Note that the first one does not exist in the TicketSwitch database.
Sample output
.. code-block:: xml
map_key_doesnt_exist
web_finder-image_feature-items/uk
1VLG,1YYO,209C,226B,22AS,25DR,2569
In the output you see the first map key does not exist so you get no corresponding style_map data. The second one you get back a list of event IDs. These can then be passed to the event_search call so that you know all relevant details for the event, eg images. For now, you can test with web_finder-image_feature-items/uk, but I will send you the proper event listings, ie map_keys, later.
When you receive a list of event tokens back, you can pass them to event_search using this argument:
.. code-block:: xml
1VLG,1YYO,209C,226B,22AS,25DR,2569
event_search
------------
Note that this returns the same as extra_info, but there are four requests needed in event_search for extra info that is sent by default from extra_info.
cost_range
The following should be noted for the cost_range data:
* Use min_combined as the "from" price
* Use the range_currency info to:
o Display a pre symbol before the amount, and a post symbol after the amount
o Use currency_places to determine how many decimal places to display
Reviews
------------
In any event object you now get this:
.. code-block:: xml
75
21
which are the average percentages. If there are no user reviews or no critic reviews then the corresponding element will be empty. On extra_info only you also get the individual reviews - ordered in reverse order of date (most recent first). These are inside a 'reviews' element and each one looks like this:
.. code-block:: xml
yes
Thu, 22nd September 2011
12.00 PM
20110922
120000
Not a good show
Didn't think much of this one...
Pete French
en
Images
------------
Use the tag to request image files. Here are the images you can request:
* 140x140 (used on event detail page, top left corner)
* 220x115 (main image used in search results)
* 700x300 (used in banner)
* 460x346-1 (used on homepage and main event detail image)
* 460x346-2 (optional)
* 460x346-3 (optional)
Sort Order
------------
* s_top can already be specified to order by sales volume
* To order by reviews you can use s_user_rating or s_critic_rating
* To filter on an automatic date range, eg this weekend, use eg s_auto_range="this_weekend". The available values are:
o today_only
o this_weekend
o next_week
o this_month
o next_month
Paging
------------
We have added paging to the search results, the month list, and the perf list from date/time options. two variables used like this:
.. code-block:: xml
10
4
fairly self explanatory - the first page is '0' by the way, not '1'.
Other additions
---------------
* **video_iframe** has been added to build a YouTube (or other eg Vimeo) link
* **need_departure_date**: indicates that this event will require the collection of a departure date in addition to the performance date/time. (functional spec item #60)
* **is_seated**: flag to indicate if the event is seated. You shouldn't talk about seats or display seat IDs if this is set to 'no'. (Added to the functional spec spreadsheet.)
* **show_perf_time**: flag to indicate if performances should have their time displayed or not. In practice I don't actually think we output a time if one shouldn't be displayed, but it is handy to have it explicitly flagged. (This should be used but is not yet in the functional spec.)
* **need_performance**: indicates that we will need to collect a performance. Certain products are undated and will have this set to 'no' - note that you might still need to collect a departure date! (This should be used but is not yet in the functional spec.)
* **max_running_time** and min_running_time are available even though they may not be useful for the some sites.
Sample input
.. code-block:: xml
testpass
ext_test0
6IE,6IF
large.jpg
small.jpg
large-150x600.jpg
Sample output
.. code-block:: xml
U_--yIC208dEystCmz1y8UOHm7SCt-S9RVnTz3heV-LGmC4-tdpy1Cptw6UGRobF2d4My9MryqL_E0TQJxyjbUoopaJv0eQmeW4Q6hB4hFu2nsg_eUZlhG6y7QSaJeNKSBOsZ
EW
Everywhere
london-uk
Londres
ballet
Ballet
no
ballet/
no
ballet/ballet
ballet
Ballet
theatre
Theatre
yes
theatre/
yes
theatre/dance
dance
Dance
no
theatre/kids
kids
Family
usd
100
840
2
$
71.0
55.61
68.0
53.26
3.0
2.35
68.0
53.26
3.0
2.35
71.0
55.61
9.0
7.05
80.0
62.66
75.0
58.74
5.0
3.92
71.0
62.66
68.0
53.26
3.0
2.35
11
9.0
7.05
80.0
62.66
75.0
58.74
5.0
3.92
71.0
62.66
68.0
53.26
3.0
2.35
11
9.0
7.05
80.0
62.66
75.0
58.74
5.0
3.92
71.0
62.66
68.0
53.26
3.0
2.35
11
uk
Grobritannien
21
NUTCRACKER
Matthew Bourne's Nutcracker!
6IF
Matthew Bourne's stunning production of Nutcracker! returns to Sadler's Wells having broken all box office records during last year's sell-out season.
This festive treat is full of his trademark style of wit, pathos and theatrical magic. Nutcracker! follows Clara's journey from a bleak Christmas Eve at Dr.Dross' Orphanage, through a shimmering ice-skating wonderland and to thespectacular candy folk of Sweetieland.
Oliver award-winning designer Anthony Ward and Tchaikovsky's much-loved score combined with sizzling choreography guarantee that Matthew Bourne's Nutcracker! is a fresh, lip-smacking, serving of traditional Christmas fare.
Matthew Bourne has achieved both artistic and commercial success with his imaginative new versions of classical ballets. Last year his Play Without Words made for the Royal National Theatre, received two Olivier Awards and is shortly to be revived.
small.jpg
/shared/event_media/ext_test0/EW/small.jpg
large-150x600.jpg
/shared/event_media/ext_test0/+system_ext_test0/large-150x600.jpg
6IF
51.52961137
-0.10601562
theatre
EC1R 4TN
customerservices@ingresso.co.uk
ext_test0
Test System Zero
Test System Zero
customerservices@ingresso.co.uk
+44 203 1377412
+44 203 1377420
0203 1377412
0203 1377420
Suite 75, Victoria Place, Wellwood Street, Belfast BT12 5FX
ext_test
For use as test data only.
These are not real events and any attempts to purchase items from this supplier will be cancelled without notice.
75
Rosebery Avenue
Islington
London
SADLERSWELLS
Sadler's Wells
The world's No.1 venue dedicated to international dance - presenting dance in all forms from contemporary to flamenco, ballet to hip hop and more.
Nearest Underground: Angel (Northern line)
Nearest Rail: Kings Cross (Northern line to Angel)
Turn left out of Angel station and cross the road at the crossroads for St John Street. Roseberry Avenue is on the right with the theatre about 100 metres down on the right.
315
www.youtube.com
/embed/G1JpEHGizk4
yes
420
availability_options
--------------------
The input remains the same, but several items have been added to the output:
#) ticket_type_code, price_band_code and despatch_code have been added.
#) discount_code and discount_desc have been added. These will only be present if the availability is a non-default discount code, but should be displayed if present. A standard availability won't have them, but lots of our product will.
#) The special offer values are here - well, they always were, but I don't think they were documented! The non_offer variables are always present, whether it is an offer or not, but when it is not an offer they will be the same as the standard sale variables.
#) You now have the (standard) 'seatprice' as an alternative to 'ticket_price' in the output, plus the 'combined' value is now present where it wasn't before.
#) Desired currency is now calculated and displayed throughout the whole of the output, so that it appears where they is any kind of money value being output.
#)
Sample output
.. code-block:: xml
M0--vKstMzcgtwtMzRMr__0SUU5kn5HoO77D_XGFGaNExhWQIlUBuVxA7FcGi2xnzRU0YTxfZcNoWVmv9Lll_wNeWZtzr9Sc4cStfynHdgOTGiiqIh1ud_Puaic4u1s4XEVHSPXYNkd4QzwB40zoPML5TVHf4dCxcXYx-lucUKX-nxoozSvNQUReBNggkpcT2xwoGTxyvXpcqC4-Z
usd
100
840
2
$
gbp
100
826
2
£
E0--DWkRGiPZez-4a1rMzNorBL3Fx39vE5o5pyMKGcoZfrBJFO0lTTHDqfrzLHtgqw2n-n1WlGCWJJQQFOawZZfn3_uMqGqOvz9Uqwj5ir1JKuGsFd_sp4JexEgh-VtmffgtFmrUy4Hfx9PT5hrikJe3EgWao4pBNHdVwnclwZLlFz_Nw0DjEbmsMKwTyw9BV_z9Z
9.0
6.99
71.0
46.34
WEBOFF
Adult web offer rate
yes
80.0
52.21
75.0
48.95
5.0
3.26
75.0
48.95
6
11
A
68.0
44.38
3.0
1.96
68.0
44.38
PREF
Preferred seating
s---MHClviDyfFa3KClJn_VHATyLX8NwnvyLlRPi-4bsIyKrD01i4XLCqQaBL1Yf7n4niLd6sHidt96-Y
1
2
3
4
5
6
COBO
0.0
0.0
Collect from the venue
M_--iG6zpgBE__hILmK9H8wXucIfn-067rlCiSHTTASkA829zNpt3WCWtCHXW9mVkxdqa5ppgIR9oL_pCNqCzsZQKSLcm4p55FJ7jJh0MpS24CPIdPrWAXcKD0--Y
collect
POST
8.0
5.22
Post worldwide
E_--wlwADZo14flSx6Vj6KmLpN36qpcHpwQiHRIjdjkZRfSjY1-Io1iSlVFEd5f9dmztjCOF85wU-yTieVNgW85sMXfTVTtQY7MKFZiR9mAWOx6-Y
post
make_reservation
----------------
make_reservation will now produce a 'permitted_countries' list at the reservation stage if a country menu needs to be displayed to the user. For anything other than a specific type of B2B sale this will always be the case. The format is identical to the list inside a send method, and the element is at the same level in the XML as the 'acceptable_cards' list is.
restricted view and seat messages should be available at this point, as you can get the full trolley description out of this method if you include the describe_trolley. If they do that, as specified in the docs, then they will get a full trolley description, including the seat IDs and any corresponding messages.
despatch_options
----------------
A new call has been added that will provide a list of despatch options (ie delivery methods). This must be called after date_time_options, but can be called at the same time as availability_options if desired. The output from this method will be passed into create_order (change still pending as at 26 Apr 2013).
Sample input
it's indentical to the input for availability_options, so all the usual request options apply beyond the sample input below.
.. code-block:: xml
tswitch
k_--QA6GtGMNIXGvyyP-4XbwPTKx3GAVY9p2kcsUGZjwLf49pF1Y4Vhw8qmm6a08w
cVgyE61Vi5OeyCuUh-usMgH2XftgqmZlSA7yekL1LIz-MesPNmVxBbck09d_ljQlGpsHWoh4S1Aq2sCX
GtlxxG4S_--Z
E_--gHO76ZD_JMnhxa3N5DJdU6lE0W__hc_7elYXhI0I5Le6hUbugx84l5sys6E3Mcdc
hjC-Y7PRXUnZJSDXb97Obe3Zg-YdqJyD5YBUdtmllt0-Y
html
Sample output
.. code-block:: xml
COBO
0.0
0.0
Collect from the venue
M_--iG6zpgBE__hILmK9H8wXucIfn-067rlCiSHTTASkA829zNpt3WCWtCHXW9mVkxdqa5ppgIR9oL_pCNqCzsZQKSLcm4p55FJ7jJh0MpS24CPIdPrWAXcKD0--Y
collect
POST
8.0
5.22
Post worldwide
E_--wlwADZo14flSx6Vj6KmLpN36qpcHpwQiHRIjdjkZRfSjY1-Io1iSlVFEd5f9dmztjCOF85wU-yTieVNgW85sMXfTVTtQY7MKFZiR9mAWOx6-Y
post
create_order
------------
create_order will now accept a despatch_token, and the despatch_token is now
optional in discount_options (meaning that customers can be given the option
to select their despatch method later in the booking process).
suggest_user
------------
This method can be used to determine which country and continent a particular
IP address is from. A suggested user is also returned; this can be used so
that a USA IP address returns a user with product priced primarily in US
Dollars, while a UK IP address returns a user with product priced primarily in
British Pounds.
Sample input
.. code-block:: xml
tswitch
testpass
2a02:b90:3002:e550:20e:cff:fedc:c380
Sample output
.. code-block:: xml
eu
Europe
uk
United Kingdom
tswitch
Note that the lookup section won't be there if the IP address couldn't be looked up.
create_order_and_reserve
---------------------------
create_order_and_reserve compresses create_order, trolley_add_order and
make_reservation into a single call. It takes the same parameters as
"create_order" and can return any of the same error codes. If there are no
errors then the output is the same as "make_reservation" - the only exception
being that there are always the currency elements that "create_order" output
present in the output.