API Response

A majority of API methods will respond like this when successful:

{"errors":[],"data":[],"warnings":[]}

With data: {"errors":[],"data":{"session_id":"130q4bpbsv4z2g85fk3ncnr85kd7fs0"}} This is set to the default JSON format unless specified otherwise. To change the format to XML you will have to set a “response_format” parameter to “xml” in the call.

Errors
The following are examples of API responses with errors in json and xml format.

Json: {"errors":[{"error_code":"E010","error_message":"Authentication failed. Username or password incorrect. "}],"data":[],"warnings":[]} XML:

  E010 Authentication failed. Username or         password incorrect.    Error codes are predefined values to identify specific errors. See Error Codes to see the full list of values.