cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error responce "E00040 Record Not Found"

Hello,

I am sending request to by creating xml in below format,

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerPaymentProfileRequest
xmlns="AnetApi/xml/v1/schema/
AnetApiSchema.xsd">
<merchantAuthentication>
<name>49U3c9yBHbj</name>
<transactionKey>4zaHM626a7W3XrW2</transactionKey>
</merchantAuthentication>
<customerProfileId>20544267</customerProfileId>
<paymentProfile>
<billTo>
<firstName>John</firstName>
<lastName>Doe</lastName>
<company></company>
<address>123 Main St.</address>
<city>Bellevue</city>
<state>WA</state>
<zip>98004</zip>
<country>USA</country>
<phoneNumber>000-000-0000</phoneNumber>
<faxNumber></faxNumber>
</billTo>
<payment>
<creditCard>
<cardNumber>4111111111111111</cardNumber>
<expirationDate>2023-12</expirationDate>
</creditCard>
</payment>
</paymentProfile>
<validationMode>liveMode</validationMode>
</createCustomerPaymentProfileRequest>

 

it's having correct customer profileid, i have checked twice, but it's giving me error response like,

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerPaymentProfileResponse
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>E00040</code>
<text>The record cannot be found.</text>
</message>
</messages>
<validationDirectResponse>1,1,1,This transaction has been
approved.,GSBYJ5,Y,2197753897,none,Test transaction for
ValidateCustomerPaymentProfile.,0.00,CC,auth_only,none,John,Doe,,123
Main
St.,Bellevue,WA,98004,USA,000-000-0000,,email@example.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,7DD0DFE7934FBC18D44DD3219D2AD150,,2,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,
</validationDirectResponse>
</createCustomerPaymentProfileResponse>

I have searched in the forums but can't find the exact solution, can anyone shade a light on it,

Thanks in advance

iGyan

atul_002
Member
5 REPLIES 5

Did you search the customer profile id from the merchant account?

RaynorC1emen7
Expert

I don't have murchant account, I am using the developer account right  now, 

login to the test account and make sure the profie id is correct.

https://test.authorize.net/

I have Checked here is the screen shot for my CIM,

 

CIM SCREEN

 

This is the profile id which i am using but still getting the error response.

I got the issue, 

I have sent the wrong xml format, the xml formate requires ordered tags, 
Now getting the Success Message like, 

 

 

<?xml version="1.0" encoding="utf-8"?>
<createCustomerPaymentProfileResponse
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>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<customerPaymentProfileId>18973112</customerPaymentProfileId>
</createCustomerPaymentProfileResponse>

 

Thanks for your effort,