<?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: Unable to create new customer via .NET SDK when supplying metchantCustomerID, email, AND descrip in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62575#M36865</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/23931"&gt;@jkshay&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to create a customer profile with below request&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt; &lt;BR /&gt; &amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;78BZ5Xprry&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;transactionKey&amp;gt;8s2F95Q7brhHd7Tn&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt; &amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt; &amp;lt;profile&amp;gt;&lt;BR /&gt; &amp;lt;merchantCustomerId&amp;gt;Merchant_Customer_ID&amp;lt;/merchantCustomerId&amp;gt;&lt;BR /&gt; &amp;lt;description&amp;gt;Profile description here&amp;lt;/description&amp;gt;&lt;BR /&gt; &amp;lt;email&amp;gt;sscustomer-profile-email@here.com&amp;lt;/email&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;/profile&amp;gt;&lt;BR /&gt; &amp;lt;/createCustomerProfileRequest&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use our Try it tab to test these request directly on sandbox&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 05:02:26 GMT</pubDate>
    <dc:creator>Anurag</dc:creator>
    <dc:date>2018-04-10T05:02:26Z</dc:date>
    <item>
      <title>Unable to create new customer via .NET SDK when supplying metchantCustomerID, email, AND description</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62555#M36845</link>
      <description>&lt;P&gt;When creating a new customer profile, I'm supplying the merchantCustomerId, the email, and the description. I provide no additional information (address, payment information , etc). Calling controller.Execute results in the following controller error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"E00003:The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'merchantCustomerId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'paymentProfiles, shipToList' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I don't provide a merchantCustomerId value, then the controller.Execute runs successfully and I'm able to obtain a response from the controller's GetApiResponse().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create a new customer profile providing all three pieces of information? Or must I create the account first, then update the account with the merchantCustomerId value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LoadCredentials();

customerProfileType customerProfile = new customerProfileType();
customerProfile.merchantCustomerId = subscriber.subscriber_id.ToWebId().Substring(2);
customerProfile.email = subscriber.email;
customerProfile.description = subscriber.subscr_subdomain;

var request = new createCustomerProfileRequest { profile = customerProfile, validationMode = validationModeEnum.none };

// instantiate the controller that will call the service
var controller = new createCustomerProfileController(request);
controller.Execute();&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2018 19:32:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62555#M36845</guid>
      <dc:creator>jkshay</dc:creator>
      <dc:date>2018-04-06T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create new customer via .NET SDK when supplying metchantCustomerID, email, AND descrip</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62558#M36848</link>
      <description>&lt;P&gt;Hi jkshay,&lt;/P&gt;&lt;P&gt;Yes, you need to have an account and you need to pass authentication credentials as part of request. Authentication credentials include following two things:&lt;/P&gt;&lt;P&gt;apiloginid and transactionkey&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 20:47:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62558#M36848</guid>
      <dc:creator>AforANET</dc:creator>
      <dc:date>2018-04-07T20:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create new customer via .NET SDK when supplying metchantCustomerID, email, AND descrip</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62570#M36860</link>
      <description>&lt;P&gt;Forgive me, but I *am* passing those pieces of information in. I just failed to post that bit of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;private merchantAuthenticationType LoadCredentials()
        {
            var api_id = WebConfigurationManager.AppSettings["AuthorizeNetAPIID"];
            var api_transaction_key = WebConfigurationManager.AppSettings["AuthorizeNetTransactionKey"];

            var authentication_type = new merchantAuthenticationType()
            {
                name = api_id,
                ItemElementName = ItemChoiceType.transactionKey,
                Item = api_transaction_key
            };

            ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = authentication_type;

            return authentication_type;
        }&lt;/PRE&gt;&lt;P&gt;Otherwise, I have an account. Most things are working properly for me - I'm able to query existing customers and get their payment profiles, etc. I'm just unable to create a new customer (having the same issue if I try to create a customer from a transaction) if I supply all three pieces of information referenced in my original post.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:53:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62570#M36860</guid>
      <dc:creator>jkshay</dc:creator>
      <dc:date>2018-04-09T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create new customer via .NET SDK when supplying metchantCustomerID, email, AND descrip</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62575#M36865</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/23931"&gt;@jkshay&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to create a customer profile with below request&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt; &lt;BR /&gt; &amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;78BZ5Xprry&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;transactionKey&amp;gt;8s2F95Q7brhHd7Tn&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt; &amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt; &amp;lt;profile&amp;gt;&lt;BR /&gt; &amp;lt;merchantCustomerId&amp;gt;Merchant_Customer_ID&amp;lt;/merchantCustomerId&amp;gt;&lt;BR /&gt; &amp;lt;description&amp;gt;Profile description here&amp;lt;/description&amp;gt;&lt;BR /&gt; &amp;lt;email&amp;gt;sscustomer-profile-email@here.com&amp;lt;/email&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;/profile&amp;gt;&lt;BR /&gt; &amp;lt;/createCustomerProfileRequest&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use our Try it tab to test these request directly on sandbox&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 05:02:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62575#M36865</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-04-10T05:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create new customer via .NET SDK when supplying metchantCustomerID, email, AND descrip</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62583#M36871</link>
      <description>&lt;P&gt;I don't doubt that it works via the "Try it" tab. I'm attempting to do this via the .NET SDK, as referenced in my post subject and original code sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to view the XML that is generated by the .NET SDK? I suspect maybe the XML isn't generating the nodes in the proper order.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:19:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-create-new-customer-via-NET-SDK-when-supplying/m-p/62583#M36871</guid>
      <dc:creator>jkshay</dc:creator>
      <dc:date>2018-04-10T13:19:05Z</dc:date>
    </item>
  </channel>
</rss>

