cancel
Showing results for 
Search instead for 
Did you mean: 

XML Formatting

Hi everyone,

 

I'm currently working on implementing the new Authorize.Net API in a legacy system, and have to manually generate the XML to be posted to the API.  When looking at the API reference, the request XML starts with <createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">

 

My question is whether or not the tag <?xml version="1.0" encoding="utf-8"?> is required.  I'm sending the data in a variable and not a file, so I'm not sure what the best practice is here as I'm still decently new to API work.  Thanks in advance for the help.

 

Best,

Jonathan Rasmussen.

jrasmussen
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

You can get away with skipping it with Authorize.Net. But, its a good practice to send it.

View solution in original post

mmcguire
Administrator Administrator
Administrator
2 REPLIES 2

You can get away with skipping it with Authorize.Net. But, its a good practice to send it.

mmcguire
Administrator Administrator
Administrator

Thanks for letting me know.  I really appreciate it.