<?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 Response Code 406 on getTransactionRequest in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Response-Code-406-on-getTransactionRequest/m-p/87845#M55326</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I'm trying to perform a getTranasctionRequest in C# (Asp.net core so i can't use the SDK)&lt;/P&gt;&lt;P&gt;I've tried with XML and JSON, but i cannot get past this error.&lt;/P&gt;&lt;P&gt;I always get a Response Code of 406 (even through postman), but only on this endpoint. All of the createTransactionRequests work great.&lt;/P&gt;&lt;P&gt;Here's the integration code, nothing complicated about this at all:&lt;/P&gt;&lt;P&gt;var url = new Flurl.Url(BaseUrl);&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;var getTransactionRequest = new TransactionDetailsRequest();&lt;BR /&gt;getTransactionRequest.TransactionDetails = new TransactionDetailsResponse&lt;BR /&gt;{&lt;BR /&gt;AuthHeader = new MerchantAuthentication { AuthName = ApiLogin, TransactionKey = ApiKey },&lt;BR /&gt;ReferenceId = "",&lt;BR /&gt;TransactionId = transactionId&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;var response = await url.SendJsonAsync(HttpMethod.Get, getTransactionRequest).ReceiveJson();&lt;BR /&gt;return response.ToInvariantString();&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;return null;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 16:12:38 GMT</pubDate>
    <dc:creator>awigglesworth77</dc:creator>
    <dc:date>2023-10-19T16:12:38Z</dc:date>
    <item>
      <title>Response Code 406 on getTransactionRequest</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Response-Code-406-on-getTransactionRequest/m-p/87845#M55326</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I'm trying to perform a getTranasctionRequest in C# (Asp.net core so i can't use the SDK)&lt;/P&gt;&lt;P&gt;I've tried with XML and JSON, but i cannot get past this error.&lt;/P&gt;&lt;P&gt;I always get a Response Code of 406 (even through postman), but only on this endpoint. All of the createTransactionRequests work great.&lt;/P&gt;&lt;P&gt;Here's the integration code, nothing complicated about this at all:&lt;/P&gt;&lt;P&gt;var url = new Flurl.Url(BaseUrl);&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;var getTransactionRequest = new TransactionDetailsRequest();&lt;BR /&gt;getTransactionRequest.TransactionDetails = new TransactionDetailsResponse&lt;BR /&gt;{&lt;BR /&gt;AuthHeader = new MerchantAuthentication { AuthName = ApiLogin, TransactionKey = ApiKey },&lt;BR /&gt;ReferenceId = "",&lt;BR /&gt;TransactionId = transactionId&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;var response = await url.SendJsonAsync(HttpMethod.Get, getTransactionRequest).ReceiveJson();&lt;BR /&gt;return response.ToInvariantString();&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;return null;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 16:12:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Response-Code-406-on-getTransactionRequest/m-p/87845#M55326</guid>
      <dc:creator>awigglesworth77</dc:creator>
      <dc:date>2023-10-19T16:12:38Z</dc:date>
    </item>
  </channel>
</rss>

