Reply
Highlighted
Member
Posts: 3
Registered: ‎08-22-2011
Accepted Solution

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

Accepted Solutions
Solution
Accepted by topic author radicalcraig
‎08-21-2015 01:58 AM
Member
Posts: 3
Registered: ‎08-22-2011

Re: API to change customer profile email address

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


All Replies
Solution
Accepted by topic author radicalcraig
‎08-21-2015 01:58 AM
Member
Posts: 3
Registered: ‎08-22-2011

Re: API to change customer profile email address

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"...
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: API to change customer profile email address

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