cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot set CustomerID and Description in Customer profile....

I am trying to set the merchantCustomerID and Description in the customer profile and when I set the ID the description is blank, but when I comment out that code the description is populated. This is just a simple property assignment, at least so I thought. Can you not have both filled in??

 

I'm using the C# XML example CustomerProfileAPIXML.

mgerbi
Member
13 REPLIES 13

Can you also test it with hard coded value like 123 and abc.

This is with all three fields filled out. 

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
ce" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/An
etApiSchema.xsd">
<merchantAuthentication>
<name>*******</name>
<transactionKey>******</transactionKey>
</merchantAuthentication>
<profile>
<merchantCustomerId>100000</merchantCustomerId>
<description>Company Name</description>
<email>Company Name</email>
</profile>
</createCustomerProfileRequest>

 

This is with description and CustomerID filled in. So it looks like the XML is correct. 

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
ce" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/An
etApiSchema.xsd">
  <merchantAuthentication>
    <name>****</name>
    <transactionKey>****</transactionKey>
  </merchantAuthentication>
  <profile>
    <merchantCustomerId>100000</merchantCustomerId>
    <description>Company Name</description>
  </profile>
</createCustomerProfileRequest>


<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta
nce" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/A
netApiSchema.xsd">
  <messages>
    <resultCode>Ok</resultCode>
    <message>
      <code>I00001</code>
      <text>Successful.</text>
    </message>
  </messages>
  <customerProfileId>10164800</customerProfileId>
  <customerPaymentProfileIdList />
  <customerShippingAddressIdList />
  <validationDirectResponseList />
</createCustomerProfileResponse>

 

The xml look good.

The next step is talk to the authorize.net support with your information and the customer profile id and see if they see anything.

Unfortunately, I am being paid to do this, so I can't waist my time on something like this. I will just populate all three fields to get the two I want populated and then write some code to go in and delete the email field later. Thanks for your help though.