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.
Solved! Go to Solution.
โ10-16-2012 03:17 PM
Can you also test it with hard coded value like 123 and abc.
โ10-17-2012 02:01 PM
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>
โ10-17-2012 02:52 PM
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.
โ10-17-2012 03:25 PM
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.
โ10-17-2012 03:38 PM