cancel
Showing results for 
Search instead for 
Did you mean: 

Accept transaction error

Hi,

 

I am trying to make a transaction that uses Accept token. Inside my request, I specified billing address which has firstname and lastname. I keep getting this error

 

The element 'billTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'
has invalid child element 'firstName' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
List of possible elements expected: 'country, phoneNumber, faxNumber, email'
in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.

 

But according to this the schema definition, billto element of type customerAddressType clearly has firstname in it (through its basetype nameAndAddressType)

 

AnetApiSchema.xsd

hienkhieu72
Member
1 REPLY 1

Hi @hienkhieu72 

 

Are you able to successfully set other order objects, like shipTo? If so, sounds like something is up. Can you post your code for setting the billTo()?

Renaissance
All Star