Reply
Highlighted
Member
Posts: 5
Registered: ‎01-10-2013
Accepted Solution

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

 

 


Accepted Solutions
Highlighted
Solution
Accepted by topic author jlbprof4567
‎06-27-2020 10:34 PM
Administrator
Posts: 149
Registered: ‎03-28-2014

Re: CIM createCustomerProfileRequest "Please try again"?

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


All Replies
Highlighted
Administrator
Posts: 149
Registered: ‎03-28-2014

Re: CIM createCustomerProfileRequest "Please try again"?

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

Highlighted
Member
Posts: 5
Registered: ‎01-10-2013

Re: CIM createCustomerProfileRequest "Please try again"?

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

Highlighted
Solution
Accepted by topic author jlbprof4567
‎06-27-2020 10:34 PM
Administrator
Posts: 149
Registered: ‎03-28-2014

Re: CIM createCustomerProfileRequest "Please try again"?

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>

 

Highlighted
Member
Posts: 5
Registered: ‎01-10-2013

Re: CIM createCustomerProfileRequest "Please try again"?

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.

Highlighted
Member
Posts: 1
Registered: ‎09-16-2020

Re: CIM createCustomerProfileRequest "Please try again"?

Highlighted
New Member
Posts: 2
Registered: ‎10-13-2020

Re: CIM createCustomerProfileRequest "Please try again"?

Thanks for the solution budy.