<?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: E00003 invalid child element clientId in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-invalid-child-element-clientId/m-p/70130#M43004</link>
    <description>&lt;P&gt;I found the problem, it was actually caused by providing incorrect login details. The&amp;nbsp;$processorKey1 and&amp;nbsp;$processorKey2 values were wrong. I don't know why it then gave this strange missing clientId message, but correcting those fixed it and it's now working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case anyone else is facing a similar issue, I actually found the problem by sending a JSON request via Curl instead of using the PHP SDK — the json request gave the correct error message and that helped me find the problem :)&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 20:22:41 GMT</pubDate>
    <dc:creator>ponocms</dc:creator>
    <dc:date>2019-12-26T20:22:41Z</dc:date>
    <item>
      <title>E00003 invalid child element clientId</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-invalid-child-element-clientId/m-p/70096#M42977</link>
      <description>&lt;P&gt;We have authorize.net set up to accept payments, and that's working great. Now I want to add in a simply "get subscription details" request, but whatever I do I'm getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;E00003&amp;nbsp; The element 'ARBGetSubscriptionListRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'clientId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/PRE&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Here's the exact code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Create a merchantAuthenticationType object
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
$merchantAuthentication-&amp;gt;setName($processorKey1']);
$merchantAuthentication-&amp;gt;setTransactionKey($processorKey2']);

// Set the transaction's refId
$refId = 'ref' . time();

$sorting = new AnetAPI\ARBGetSubscriptionListSortingType();
$sorting-&amp;gt;setOrderBy('id');
$sorting-&amp;gt;setOrderDescending(false);

$paging = new AnetAPI\PagingType();
$paging-&amp;gt;setLimit('1000');
$paging-&amp;gt;setOffset('1');

$request = new AnetAPI\ARBGetSubscriptionListRequest();
$request-&amp;gt;setMerchantAuthentication($merchantAuthentication);
$request-&amp;gt;setRefId($refId);
$request-&amp;gt;setSearchType('subscriptionActive');
$request-&amp;gt;setSorting($sorting);
$request-&amp;gt;setPaging($paging);

$controller = new AnetController\ARBGetSubscriptionListController($request);

$response = $controller-&amp;gt;executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::PRODUCTION);&lt;/PRE&gt;&lt;P&gt;I've read other comments here and tried adding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$request-&amp;gt;setClientId(null);&lt;/PRE&gt;&lt;P&gt;but that's not making any difference, it's still returning the same error. We can process transactions just fine, it's only when we try and retrieve any list of subscriptions, or subscription status etc, that we're getting this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 00:18:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-invalid-child-element-clientId/m-p/70096#M42977</guid>
      <dc:creator>ponocms</dc:creator>
      <dc:date>2019-12-24T00:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: E00003 invalid child element clientId</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-invalid-child-element-clientId/m-p/70130#M43004</link>
      <description>&lt;P&gt;I found the problem, it was actually caused by providing incorrect login details. The&amp;nbsp;$processorKey1 and&amp;nbsp;$processorKey2 values were wrong. I don't know why it then gave this strange missing clientId message, but correcting those fixed it and it's now working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case anyone else is facing a similar issue, I actually found the problem by sending a JSON request via Curl instead of using the PHP SDK — the json request gave the correct error message and that helped me find the problem :)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 20:22:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00003-invalid-child-element-clientId/m-p/70130#M43004</guid>
      <dc:creator>ponocms</dc:creator>
      <dc:date>2019-12-26T20:22:41Z</dc:date>
    </item>
  </channel>
</rss>

