<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Transaction Details API Not Returning LineItems in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-Not-Returning-LineItems/m-p/26888#M14254</link>
    <description>&lt;P&gt;I'm using the `Transaction Details API` with the `Authorize.Net C# SDK` to get a list of all transactions in the past 30 days using the following code directly from the &lt;A target="_blank" href="http://developer.authorize.net/api/transaction_details/"&gt;Authorize.Net website&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//open a call to the Gateway&lt;BR /&gt;var gate = new ReportingGateway("myAPILogin", "myTransactionKey");&lt;BR /&gt;&lt;BR /&gt;//Get all the batches settled&lt;BR /&gt;var batches = gate.GetSettledBatchList();&lt;/P&gt;&lt;P&gt;Console.WriteLine("All Batches in the last 30 days");&lt;/P&gt;&lt;P&gt;//Loop each batch returned&lt;BR /&gt;foreach (var item in batches)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Batch ID: {0}, Settled On : {1}", item.ID,&lt;BR /&gt;item.SettledOn.ToShortDateString());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Console.WriteLine("*****************************************************");&lt;BR /&gt;Console.WriteLine();&lt;/P&gt;&lt;P&gt;//get all Transactions for the last 30 days&lt;BR /&gt;var transactions = gate.GetTransactionList();&lt;BR /&gt;foreach (var item in transactions)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Transaction {0}: Card: {1} for {2} on {3}",&lt;BR /&gt;item.TransactionID, item.CardNumber,&lt;BR /&gt;item.SettleAmount.ToString("C"),&lt;BR /&gt;item.DateSubmitted.ToShortDateString());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it works properly. I am trying to get the list of `LineItems` for each `Transaction` by adding this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;foreach (var item in transactions)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Transaction {0}: Card: {1} for {2} on {3}",&lt;BR /&gt;item.TransactionID, item.CardNumber,&lt;BR /&gt;item.SettleAmount.ToString("C"),&lt;BR /&gt;item.DateSubmitted.ToShortDateString());&lt;BR /&gt;foreach (var li in item.LineItems)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine(" LineItem ID: {0} Name: {1} Quantity: {2} Unit Price: {3}",&lt;BR /&gt;li.ID, li.Name, li.Quantity, li.UnitPrice);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't show any `LineItems` though, I even set a break point and saw that it always shows 0 `LineItems` for each transaction, even though I can log into the web interface and view the `LineItems` in the transaction detail reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" height="398" src="https://ip1.i.lithium.com/08d124edf285f4d76ee9cee83399db2a52a2f336/687474703a2f2f692e737461636b2e696d6775722e636f6d2f4233584c4b2e706e67" width="581" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? How do I view `LineItems` of each transaction using the `Authorize.Net C# SDK`?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2012 14:25:46 GMT</pubDate>
    <dc:creator>ghartsho</dc:creator>
    <dc:date>2012-06-01T14:25:46Z</dc:date>
    <item>
      <title>Transaction Details API Not Returning LineItems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-Not-Returning-LineItems/m-p/26888#M14254</link>
      <description>&lt;P&gt;I'm using the `Transaction Details API` with the `Authorize.Net C# SDK` to get a list of all transactions in the past 30 days using the following code directly from the &lt;A target="_blank" href="http://developer.authorize.net/api/transaction_details/"&gt;Authorize.Net website&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//open a call to the Gateway&lt;BR /&gt;var gate = new ReportingGateway("myAPILogin", "myTransactionKey");&lt;BR /&gt;&lt;BR /&gt;//Get all the batches settled&lt;BR /&gt;var batches = gate.GetSettledBatchList();&lt;/P&gt;&lt;P&gt;Console.WriteLine("All Batches in the last 30 days");&lt;/P&gt;&lt;P&gt;//Loop each batch returned&lt;BR /&gt;foreach (var item in batches)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Batch ID: {0}, Settled On : {1}", item.ID,&lt;BR /&gt;item.SettledOn.ToShortDateString());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Console.WriteLine("*****************************************************");&lt;BR /&gt;Console.WriteLine();&lt;/P&gt;&lt;P&gt;//get all Transactions for the last 30 days&lt;BR /&gt;var transactions = gate.GetTransactionList();&lt;BR /&gt;foreach (var item in transactions)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Transaction {0}: Card: {1} for {2} on {3}",&lt;BR /&gt;item.TransactionID, item.CardNumber,&lt;BR /&gt;item.SettleAmount.ToString("C"),&lt;BR /&gt;item.DateSubmitted.ToShortDateString());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it works properly. I am trying to get the list of `LineItems` for each `Transaction` by adding this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;foreach (var item in transactions)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Transaction {0}: Card: {1} for {2} on {3}",&lt;BR /&gt;item.TransactionID, item.CardNumber,&lt;BR /&gt;item.SettleAmount.ToString("C"),&lt;BR /&gt;item.DateSubmitted.ToShortDateString());&lt;BR /&gt;foreach (var li in item.LineItems)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine(" LineItem ID: {0} Name: {1} Quantity: {2} Unit Price: {3}",&lt;BR /&gt;li.ID, li.Name, li.Quantity, li.UnitPrice);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't show any `LineItems` though, I even set a break point and saw that it always shows 0 `LineItems` for each transaction, even though I can log into the web interface and view the `LineItems` in the transaction detail reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" height="398" src="https://ip1.i.lithium.com/08d124edf285f4d76ee9cee83399db2a52a2f336/687474703a2f2f692e737461636b2e696d6775722e636f6d2f4233584c4b2e706e67" width="581" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? How do I view `LineItems` of each transaction using the `Authorize.Net C# SDK`?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 14:25:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-Not-Returning-LineItems/m-p/26888#M14254</guid>
      <dc:creator>ghartsho</dc:creator>
      <dc:date>2012-06-01T14:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Details API Not Returning LineItems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-Not-Returning-LineItems/m-p/26890#M14255</link>
      <description>&lt;P&gt;Answered on StackOverflow -&amp;nbsp;&lt;A target="_blank" href="http://stackoverflow.com/a/10852600/585552"&gt;http://stackoverflow.com/a/10852600/585552&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var transactions = gate.GetTransactionList();&lt;BR /&gt;foreach (var item in transactions)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Transaction {0}: Card: {1} for {2} on {3}",&lt;BR /&gt;item.TransactionID, item.CardNumber,&lt;BR /&gt;item.SettleAmount.ToString("C"),&lt;BR /&gt;item.DateSubmitted.ToShortDateString());&lt;/P&gt;&lt;P&gt;var details = gate.GetTransactionDetails(item.TransactionID);&lt;/P&gt;&lt;P&gt;foreach (var li in details.LineItems)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine(" LineItem ID: {0} Name: {1} Quantity: {2} Unit Price: {3}",&lt;BR /&gt;li.ID, li.Name, li.Quantity, li.UnitPrice);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 15:04:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Transaction-Details-API-Not-Returning-LineItems/m-p/26890#M14255</guid>
      <dc:creator>ghartsho</dc:creator>
      <dc:date>2012-06-01T15:04:36Z</dc:date>
    </item>
  </channel>
</rss>

