Hello,
I am trying to take advantage of the "Promo Code" option in TR_WEB_SOURCE_NO. The question I have is what api call do I use to accept the promo code. When I use LoginEX or Loginwithpromocode the call is telling me that an integer is required (basically it needs the numeric source code value).
So not sure how to make it accept the promo code.
Any help would be appreciated,
Christian @ The Tech
Hi Christian
From the API docs: you just need a valid session, then you can translate the promo code string into its matching source id and pick up its text values if you need them.
---------------------------------------------------------------------------------
Overview
GetPromoCodeEx returns details about the specified promo code. Promotion code strings and numeric source_no are associated in TR_WEB_SOURCE_NO. Information can be retrieved by passing either a Promotion Code string or an actual Promotion Code number.
Parameters
Parameter
Req.
Type
Notes
SessionKey
x
string
Current session key
PromotionCodeString
The string value associated with the promotion code.
Parameter maps to field promo_code in table TR_WEB_SOURCE_NO.
PromotionCode
int
The promotion code to return details for.
Parameter maps to field source_no in table TR_WEB_SOURCE_NO. If passing in a PromotionCodeString, set PromotionCode to 0.
Validation
The following conditions are validated:
1. Session exists.
2. Session is valid.
3. Promo code string or promo code is provided but not both.
Ken McSwain Business solutions Manager
kmcswain@sydneyoperahouse.com
T+61 2 9250 7876 F+61 2 9251 7821 M 0418 659 360
SYDNEY OPERA HOUSE BENNELONG POINT
GPO BOX 4274, SYDNEY NSW 2001, AUSTRALIA
SYDNEYOPERAHOUSE.COM
From: Tessitura Web Forum [mailto:forums-tessitura-web@tessituranetwork.com] On Behalf Of Christian Mauri Sent: Tuesday, 12 January 2010 11:35 To: Ken McSwain Subject: [Tessitura Web Forum] Alphanumeric Source Code
You were sent this email automatically because you subscribed to the Tessitura Web forum. You may reply to this message to post to the Web forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!
Please consider the environment before printing this email. =====This message is intended for the addressee(s) named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this email are those of the individual sender and are not necessarily the views of the Sydney Opera House Trust=====
Thanks Ken,
I overlooked this in the API documentation. Makes sense now. Thanks for your help.
Christian