<?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 Re: createCustomerProfileRequest won't recognize the nameOnAccount field in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61293#M35761</link>
    <description>&lt;P&gt;That fixed it!&amp;nbsp; Thank you!!&amp;nbsp; I could have spent the rest of my life working on this and might have never figured it out.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 14:57:49 GMT</pubDate>
    <dc:creator>sskacy18</dc:creator>
    <dc:date>2018-01-22T14:57:49Z</dc:date>
    <item>
      <title>createCustomerProfileRequest won't recognize the nameOnAccount field</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61278#M35754</link>
      <description>&lt;P&gt;Whenever I try to post this json data (I&amp;nbsp;redacted the merchantAuthentication fields):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "createCustomerProfileRequest": {
        "merchantAuthentication": {
            "name": "XXXXXX",
            "transactionKey": "XXXXXXXXXXXXX"
        },
        "profile": {
            "merchantCustomerId": "4928",
            "paymentProfiles": {
                "customerType": "business",
                "payment": {
                    "bankAccount": {
                        "nameOnAccount": "John Doe",
                        "accountType": "checking",
                        "routingNumber": "21000021",
                        "accountNumber": "28342398",
                        "echeckType": "WEB",
                        "bankName": "Test bank",
                    }
                }
            }
        },
        "validationMode": "testMode"
    }
}&lt;/PRE&gt;&lt;P&gt;I get the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"messages":{"resultCode":"Error","message":[{"code":"E00003","text":"The element 'bankAccount' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'nameOnAccount' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'accountType, routingNumber' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."}]}}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I removed the nameOnAccount field, the error returned suggested that other fields should be removed as well.&amp;nbsp; When I removed those fields, the error message I recieved told me that I needed to add nameOnAccount back.&amp;nbsp; Any idea what's going on here?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 02:39:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61278#M35754</guid>
      <dc:creator>sskacy18</dc:creator>
      <dc:date>2018-01-22T02:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: createCustomerProfileRequest won't recognize the nameOnAccount field</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61282#M35757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;@sskacy18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the trouble, the Json API which you are using has strict policy on the order of the elements, its because it based on the XML APIs, and thus you are getting the xsd error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the correct result you will need to give the elements in the prescribed order only.&lt;/P&gt;&lt;PRE&gt;"bankAccount": {
                    "accountType": "checking",
                    "routingNumber": "121042882",
                    "accountNumber": "123456789",
                    "nameOnAccount": "John Doe",
                    "echeckType" : "WEB",
                    "bankName" : "Bank Name"
                }&lt;/PRE&gt;&lt;P&gt;Also, you can look into our &lt;A href="https://github.com/AuthorizeNet/" target="_self"&gt;SDKs&lt;/A&gt;&amp;nbsp;for faster integration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this Helps !&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 06:01:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61282#M35757</guid>
      <dc:creator>kikmak42</dc:creator>
      <dc:date>2018-01-22T06:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: createCustomerProfileRequest won't recognize the nameOnAccount field</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61293#M35761</link>
      <description>&lt;P&gt;That fixed it!&amp;nbsp; Thank you!!&amp;nbsp; I could have spent the rest of my life working on this and might have never figured it out.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:57:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-won-t-recognize-the-nameOnAccount/m-p/61293#M35761</guid>
      <dc:creator>sskacy18</dc:creator>
      <dc:date>2018-01-22T14:57:49Z</dc:date>
    </item>
  </channel>
</rss>

