<?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 Why are there two different JSON response structures returned by authorize.net in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-are-there-two-different-JSON-response-structures-returned-by/m-p/90928#M57165</link>
    <description>&lt;P&gt;I've observed that Authorize.net occasionally returns JSON responses with varying structures for transactions within the same environment. Specifically:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One Structure:&lt;/STRONG&gt;&lt;BR /&gt;The transaction details are provided directly in a flat structure.&lt;BR /&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "accountType": "Visa",
    "accountNumber": "XXXX1111",
    "transId": "1200xxxxxxxx",
    "responseCode": "1",
    "authorization": "NILUxx",
    ...
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another Structure:&lt;/STRONG&gt;&lt;BR /&gt;The transaction details are nested within a transactionData object, adding an additional layer to the JSON.&lt;BR /&gt;Example:&lt;/P&gt;&lt;PRE&gt;{
    "resultCode": "Ok",
    "messageCode": "Ok",
    "transactionData": {
        "accountType": "Visa",
        "accountNumber": "XXXX7671",
        "transId": "80777xxxxxx",
        "responseCode": "1",
        "authorization": "0960xx",
        ...
    }
}&lt;/PRE&gt;&lt;P&gt;This inconsistency occurs even when the same payment flow is used. This inconsistency is leading to confusion when handling the data,&lt;/P&gt;&lt;P&gt;Why does the response sometimes include a transactionData wrapper, while other times it’s available directly at the root level?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 14:26:41 GMT</pubDate>
    <dc:creator>dfswtest2</dc:creator>
    <dc:date>2024-12-11T14:26:41Z</dc:date>
    <item>
      <title>Why are there two different JSON response structures returned by authorize.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-are-there-two-different-JSON-response-structures-returned-by/m-p/90928#M57165</link>
      <description>&lt;P&gt;I've observed that Authorize.net occasionally returns JSON responses with varying structures for transactions within the same environment. Specifically:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One Structure:&lt;/STRONG&gt;&lt;BR /&gt;The transaction details are provided directly in a flat structure.&lt;BR /&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "accountType": "Visa",
    "accountNumber": "XXXX1111",
    "transId": "1200xxxxxxxx",
    "responseCode": "1",
    "authorization": "NILUxx",
    ...
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another Structure:&lt;/STRONG&gt;&lt;BR /&gt;The transaction details are nested within a transactionData object, adding an additional layer to the JSON.&lt;BR /&gt;Example:&lt;/P&gt;&lt;PRE&gt;{
    "resultCode": "Ok",
    "messageCode": "Ok",
    "transactionData": {
        "accountType": "Visa",
        "accountNumber": "XXXX7671",
        "transId": "80777xxxxxx",
        "responseCode": "1",
        "authorization": "0960xx",
        ...
    }
}&lt;/PRE&gt;&lt;P&gt;This inconsistency occurs even when the same payment flow is used. This inconsistency is leading to confusion when handling the data,&lt;/P&gt;&lt;P&gt;Why does the response sometimes include a transactionData wrapper, while other times it’s available directly at the root level?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 14:26:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Why-are-there-two-different-JSON-response-structures-returned-by/m-p/90928#M57165</guid>
      <dc:creator>dfswtest2</dc:creator>
      <dc:date>2024-12-11T14:26:41Z</dc:date>
    </item>
  </channel>
</rss>

