I am trying to create a customer profile and not including any credit card information. The schema :xsd appears to require a a certain lenght of characters. I also tried creating a Customer Profile using the SDK and did not include any characters in the node. I got the same error where the items was required.
Is there a way to create a Customer Profile inside Authorize.net without any payment information? I rather not use a mock-up credit card number to accomplish this. Can someone point to me as to what the standard is?
Thanks,
The API error I received is as follows:
API Response Code E00003 : The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:cardNumber' element is invalid - The value XXXXX is invalid according to its datatype 'String' - The actual length is less than the MinLength value.
03-18-2019 10:29 AM
03-18-2019 01:16 PM
Hello @aestrada
To create a customer profile without a payment profile, just remove the payment profiles object:
Here is a sample using default sandbox credentials:
<createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>*</name> <transactionKey>*</transactionKey> </merchantAuthentication> <profile> <merchantCustomerId>Merchant_Customer_ID</merchantCustomerId> <description>Profile description here</description> <email>something@test.com</email> </profile> <validationMode>testMode/validationMode> </createCustomerProfileRequest>
03-18-2019 02:40 PM
if you do that will return this error
{
"messages": {
"resultCode": "Error",
"message": [
{
"code": "E00013",
"text": "Validation Mode is invalid without Payment Profiles."
}
]
}
}
08-30-2024 04:21 PM