Reply
Member
Posts: 3
Registered: ‎07-19-2018

Data at the root level is invalid.

reading https://developer.authorize.net/api/reference/#authentication and I'm trying to move from your old API to this one.I'm trying to post to the API. I'm using coldfusion so there are no examples.

 
I'm getting ---- Data at the root level is invalid.
 
What is the header or formfield name I need to use to post the XML or JSON?
Member
Posts: 3
Registered: ‎07-19-2018

Re: Data at the root level is invalid.

If I change my test to JSON and using a formfield named body (i coped the JSON itself from the API reference. The result I get is:

 

"Unexpected character encountered while parsing value: b. Path '', line 0, position

 

 

 

Member
Posts: 6
Registered: ‎04-16-2019

Re: Data at the root level is invalid.

I get the exact same message.  However, when i use Advanced Rest Client instead of doing an AJAX POST it will work just fine.  What causes this?