cancel
Showing results for 
Search instead for 
Did you mean: 

Refund Trouble: invalid child element 'creditCardNumberMasked'

I'm having trouble with refunds. Not sure what information I need to provide to be helpful but I'll do my best.

 

Here is my error.

 

E00003
"The element 'profileTransRefund' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'creditCardNumberMasked' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."

 

I've reviewed the documentation which, IMO, makes detecting the proper level for XML elements quite hard so I'm thinking that's where the problem is.

 

The customer profile and payment profile are actually empty in the request and we're including the transaction ID.

 

So inside my profileTransRefund I have this, please excuse it's var_dump from PHP and not the XML.

object(stdClass)#9 (5) {
["amount"]=>
string(10) "0000000.00"
["customerProfileId"]=>
string(0) ""
["customerPaymentProfileId"]=>
string(0) ""
["transId"]=>
string(10) "NUMBERREMOVED"
["creditCardNumberMasked"]=>
string(8) "XXXX0000"
}

 

Where am I supposed to put my creditCardNumberMasked?

 

NathanStiles
Member
1 ACCEPTED SOLUTION

Accepted Solutions

here the xml guide

http://www.authorize.net/content/dam/authorize/documents/CIM_XML_guide.pdf

 

The order matter for their xml

ccmasked# should be before transactionid

 

View solution in original post

RaynorC1emen7
Expert
3 REPLIES 3

here the xml guide

http://www.authorize.net/content/dam/authorize/documents/CIM_XML_guide.pdf

 

The order matter for their xml

ccmasked# should be before transactionid

 

RaynorC1emen7
Expert

You might also look at our new API Reference which includes a console to try it and sample code if you are using our SDK.

 

http://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction

 

Richard

 

Awesome thank you both for taking the time to help me with this.

NathanStiles
Member