cancel
Showing results for 
Search instead for 
Did you mean: 

API to change customer profile email address

Hello, From time to time, our customers change their email addresses. How do I update their Authorize.Net profile through the SOAP API? Thank you, Craig
radicalcraig
Member
1 ACCEPTED SOLUTION

Accepted Solutions
Hello, I found an extra couple of brain cells and got it working. Posting my efforts for any others who might end up here. This is C# code in .Net 3.5. //Get the profile record ArbApiSoap.GetCustomerProfileResponseType readProfile = Service.GetCustomerProfile(MerchantAuthentication, customer.AuthorizeDotNetCustomerProfileID); //Create a "write" profile record ArbApiSoap.CustomerProfileExType writeProfile = new CustomerProfileExType(); //Make the "write" look like the "read" writeProfile.customerProfileId = readProfile.profile.customerProfileId; writeProfile.description = readProfile.profile.description; writeProfile.email = customer.Email; writeProfile.merchantCustomerId = readProfile.profile.merchantCustomerId; //Update the profile ArbApiSoap.UpdateCustomerProfileResponseType resp = Service.UpdateCustomerProfile(MerchantAuthentication, writeProfile); //Act on "resp"...

View solution in original post

radicalcraig
Member
2 REPLIES 2
Hello, I found an extra couple of brain cells and got it working. Posting my efforts for any others who might end up here. This is C# code in .Net 3.5. //Get the profile record ArbApiSoap.GetCustomerProfileResponseType readProfile = Service.GetCustomerProfile(MerchantAuthentication, customer.AuthorizeDotNetCustomerProfileID); //Create a "write" profile record ArbApiSoap.CustomerProfileExType writeProfile = new CustomerProfileExType(); //Make the "write" look like the "read" writeProfile.customerProfileId = readProfile.profile.customerProfileId; writeProfile.description = readProfile.profile.description; writeProfile.email = customer.Email; writeProfile.merchantCustomerId = readProfile.profile.merchantCustomerId; //Update the profile ArbApiSoap.UpdateCustomerProfileResponseType resp = Service.UpdateCustomerProfile(MerchantAuthentication, writeProfile); //Act on "resp"...
radicalcraig
Member

Use the Insert Code option (icon 5th from the left under Rich Text).