Templates Test
Templates/{templateId}/Order/{orderId}/Tickets
Get a formatted html body for tickets

Composite tickets are not currently supported, so a request to print one will instead return ticket elements for each performance, as if no composite ticket design had been selected for the package.
Http Verb POST
Resource URL https://ts-stg-appgw.calacademy.org/TessituraService/Templates/{templateId}/Order/{orderId}/Tickets

URI Parameters

Parameter Name Data Type Required Notes
templateId integer Y Id of the template used to format the html.
orderId integer Y Id of the order used in the model.

The print order tickets request

Request Body

Request object type : PrintOrderTicketsRequest

Request object type PrintOrderTicketsRequest has the following properties.
Property Name Data Type Length Required Readonly Notes
BatchId integer N Optional batch id. If no batch id is provided, it will use the web batch.
HeaderDesignId integer N Ticket design to use for headers. If included, header elements are returned by the service.
FK: T_DESIGN.design_no   Resource: Designs
IncludeReceipts boolean N Pass True to include receipts for the order (default). Pass False to exclude receipts.
LineItems string 4000 N The li_seq_no of the line item(s) for which printed ticket information should be retrieved. Use a comma-delimited list of li_seq_nos to retrieve ticket information for multiple line items. Parameter maps to li_seq_no column in the T_WEB_LINEITEM table.
FK: T_LINEITEM.li_seq_no
NewTicketNoForReprints boolean N Pass True if new ticket number should be created if order is reprinting (default). Pass False if existing ticket number should be used for reprinted order.
PrinterType string 1 N "B" - Boca (default). "Z" - Zebra. This will choose the alternate zebra design for the returned elements. "G" - Digital.
ReprintTickets boolean N Pass True to reprint already printed tickets. NewTicketNoForReprints controls if new ticket numbers are given when reprinting. Pass False to skip already printed tickets (default).
SubLineItems string 4000 N The sli_no of the sub line item(s) for which printed ticket information should be retrieved. Use a comma-delimited list of sli_nos to retrieve ticket information for multiple subline items.
FK: T_SUB_LINEITEM.sli_no   Resource: SubLineItems
TicketDesignId integer N Ticket design to use for retrieved ticket information. If design is specified, will override ticket design applied to order items.
FK: T_DESIGN.design_no   Resource: Designs
{
  "HeaderDesignId": 1,
  "IncludeReceipts": true,
  "ReprintTickets": true,
  "TicketDesignId": 1,
  "LineItems": "sample string 1",
  "SubLineItems": "sample string 2",
  "NewTicketNoForReprints": true,
  "PrinterType": "sample string 3",
  "BatchId": 1
}
<PrintOrderTicketsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <BatchId>1</BatchId>
  <HeaderDesignId>1</HeaderDesignId>
  <IncludeReceipts>true</IncludeReceipts>
  <LineItems>sample string 1</LineItems>
  <NewTicketNoForReprints>true</NewTicketNoForReprints>
  <PrinterType>sample string 3</PrinterType>
  <ReprintTickets>true</ReprintTickets>
  <SubLineItems>sample string 2</SubLineItems>
  <TicketDesignId>1</TicketDesignId>
</PrintOrderTicketsRequest>

Response object type : TemplateBody

Response object type TemplateBody has the following properties.
Property Name Data Type Length Required Readonly Notes
Body string Y Text to be processed and rendered.
IsHtmlBody boolean If true, Body text is interpreted and rendered as HTML.
{
  "Body": "sample string 1",
  "IsHtmlBody": true
}
<TemplateBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Body>sample string 1</Body>
  <IsHtmlBody>true</IsHtmlBody>
</TemplateBody>
Change Version Description Contract Old New
Operation Changed 15.1.0 Route has changed from Templates/{templateId}/Orders/{orderId}/Tickets to Templates/{templateId}/Order/{orderId}/Tickets Templates/{templateId}/Orders/{orderId}/Tickets Templates/{templateId}/Order/{orderId}/Tickets