cancel
Showing results for 
Search instead for 
Did you mean: 

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?
evengame
Member
2 REPLIES 2

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

 

 

 

evengame
Member

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?