Web services are available in both XML and JSON formats.
In accordance with the XML specification, our XML messages are case-sensitive.
The format is determined using one of the following methods, in order of precedence
HTTP Accept header (for GET) ##
According to the HTTP specification, the Accept header can be used to specify the media types which are acceptable for a response. The following media types are supported:
XML : application/xml or text/xml JSON : application/json or text/json
Host: api.limonetik.com
Authorization: Basic YWxpY2U6Z29vZHdvcmtub3d5b3VjYW5zZWVteXBhc3N3b3Jk==
Accept: text/xml
Host: api.limonetik.com
Authorization: Basic YWxpY2U6Z29vZHdvcmtub3d5b3VjYW5zZWVteXBhc3N3b3Jk==
Accept: text/json
HTTP Content-Type header (for POST) ##
According to the HTTP specification, the Content-Type header indicates the media type of the body sent to the recipient. The same types as above are supported.
Example:
Host: api.limonetik.com
Authorization: Basic YWxpY2U6Z29vZHdvcmtub3d5b3VjYW5zZWVteXBhc3N3b3Jk==
Content-Type: application/xml; charset=utf-8
Accept: text/xml
Host: api.limonetik.com
Authorization: Basic YWxpY2U6Z29vZHdvcmtub3d5b3VjYW5zZWVteXBhc3N3b3Jk==
Content-Type: application/json; charset=utf-8