I am using this url: https://apitest.authorize.net/xml/v1/request.api
With my sandbox account, trying to create a customer profile programmatically.
<createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>[ hidden ]</name> <transactionKey>[ hidden ]</transactionKey> </merchantAuthentication> <profile> <merchantCustomerId>XXXXX_0001</merchantCustomerId> <description>First Last</description> <email>XXXX@EXAMPLE.COM</email> <paymentProfiles> <customerType>individual</customerType> <payment> <creditCard> <cardNumber>4111111111111111</cardNumber> <expirationDate>2023-12</expirationDate> </creditCard> </payment> </paymentProfiles> </profile> <validationMode>testMode</validationMode> </createCustomerProfileRequest>
Then I get a wierd response:
<?xml version="1.0" encoding="utf-8"?> <createCustomerProfileResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <messages> <resultCode>Error</resultCode> <message> <code>E00001</code> <text>An error occurred during processing. Please try again.</text> </message> </messages> <customerPaymentProfileIdList/> <customerShippingAddressIdList/> <validationDirectResponseList> <string>1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,XXXXX_0001,,,,,,,,,,,XXXX@EXAMPLE.COM,,,,,,,,,0.00,0.00,0.00,FALSE,none,,,,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,,</string> </validationDirectResponseList> </createCustomerProfileResponse>
It says there is an error, please try again, but it also says it validates, I even get an emailed receipt that it validates.
What could be the problem?
Thanx
Julian
Solved! Go to Solution.
โ06-20-2020 02:38 PM
It must be some data in your three Customer Profile fields that are causing an issue. Can you change them one field at a fime from the test payload that's working?
<merchantCustomerId>XXXXX_0001</merchantCustomerId> <description>First Last</description> <email>XXXX@EXAMPLE.COM</email>
โ06-22-2020 07:19 AM
It looks like there may just have been an issue with sandbox processing, does this happen consistently?
If you try our API Reference you can see this method working : https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile
Brian
โ06-21-2020 09:41 PM
It happens everytime with this data. I went to the try it tab, and replaced the merchant authentication with mine, but used the example transaction. That worked, but if I pop the above transaction into the tab, it fails with the same reason everytime. It must be the content, but what?
The contents of the transaction use the exact same form I just changed the contents of the fields, but it validates, both with an xml validator and the transaction itself validates, but it keeps saying please try again.
Thanx
Julian
โ06-22-2020 05:50 AM
It must be some data in your three Customer Profile fields that are causing an issue. Can you change them one field at a fime from the test payload that's working?
<merchantCustomerId>XXXXX_0001</merchantCustomerId> <description>First Last</description> <email>XXXX@EXAMPLE.COM</email>
โ06-22-2020 07:19 AM
I have absolutely no idea why, but XXXX@EXAMPLE.COM is an unacceptable email address. Even though it gave no indication as to why. I thought at first it might be EXAMPLE.COM, as you never put any other domain in a public environment, so I tested this email myemail@EXAMPLE.COM and that worked. I am quite concerned about this.
โ06-22-2020 02:56 PM
Check out the latest Whataburger and Hardee's breakfast time?
https://technoratia.com/whataburger-breakfast-hours/
https://technoratia.com/hardees-breakfast-time/
โ09-16-2020 10:37 PM