cancel
Showing results for 
Search instead for 
Did you mean: 

CIM createCustomerProfileRequest "Please try again"?

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

 

 

jlbprof4567
Member
1 ACCEPTED SOLUTION

Accepted Solutions

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>

 

View solution in original post

5 REPLIES 5

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

brianmc
Administrator Administrator
Administrator

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

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>

 

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.