ticketGetByID
public static array ticketGetByID(string token,string eventID ,string ticketID)
Get the event Ticket By ID.
Section
Event Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
string eventIDThe Event ID for which you want to get ticket list
string ticketIDThe Order ID for which you want to get ticket details

Returns
arrayReturns an array with the results.

Return Structure
integer sequenceThe sequence number of the record
string ticketitemIDThe Ticket ID.
string ticketIDThe Order ID.
string eventIDThe Event ID.
string eventfeeIDThe Event Fee ID.
string ticketqtyTicket Quantity.
string checkinqtyTicket Checked in Quantity.
string priceTicket Price.
string feelabelFee Name.
string statusTicket Status
string discountamountTicket Discount Amount.
string discountpercTicket Discount Percentage.
string chargesTicket Charges.
string firstnameTicket Buyer First Name.
string lastnameTicket Buyer Last Name.
string emailTicket Buyer Email.


Examples
download example code
xmlrpc_ticketGetByID.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10. $eventID = '484';
  11. $ticketID = '1484';
  12. $ticketitem = $client->ticketGetByID($token,$eventID,$ticketID);
  13.  
  14. foreach($ticketitem as $rec) {
  15.     echo $rec['sequence'] ;
  16.     echo "\t Ticket ID:" . $rec['ticketitemID'] ;
  17.     echo "\t Order ID:" . $rec['ticketID'] ;
  18.     echo "\t Event ID:" . $rec['eventID'] ;
  19.     echo "\t Event Fee ID:" . $rec['eventfeeID'] ;
  20.     echo "\t Ticket Quantity:" . $rec['ticketqty'] ;
  21.     echo "\t Check in Quantity:" . $rec['checkinqty'] ;
  22.     echo "\t Price:" . $rec['price'] ;
  23.     echo "\t Fee Name:" . $rec['feelabel'] ;
  24.     echo "\t Status:" . $rec['status'] ;
  25.     echo "\t Discount Amount:" . $rec['discountamt'] ;
  26.     echo "\t Discount Percent:" . $rec['discountperc'] ;
  27.     echo "\t Charges:" . $rec['charges'] ;
  28.     echo "\t Buyer First Name:" . $rec['firstname'] ;
  29.     echo "\t Buyer Last Name:" . $rec['lastname'] ;
  30.     echo "\t Buyer Email:" . $rec['email'] ;
  31.     echo "<br />";
  32. }
  33.  
  34. ?>