I updated the "content-type" to "application/json". and here 's the updated PostMan request header and the response.
var settings = { "async": true, "crossDomain": true, "url": "https://apisandbox.zuora.com/apps/api/batch-query/", "method": "POST", "headers": { "authorization": "###", "content-type": "application/json", "cache-control": "no-cache", "postman-token": "4ff4115f-a1ac-2e22-b588-4b3ce852aeab" }, "data": { "format": "csv", "version": "1.1", "name": "Example", "encrypted": "none", "useQueryLabels": "true", "dateTimeUtc": "true", "queries": "[ { \"name\" : \"AccountingPeriod\", \"query\" : \"select Id,StartDate,EndDate,FiscalYear,Name,Status from AccountingPeriod\", \"type\" : \"zoqlexport\" }]" } }
$.ajax(settings).done(function (response) { console.log(response); });
Response from Zuora -
{"Error":"Could not read JSON: Unrecognized token 'fomtcvvrin11nm': was expecting 'null', 'true', 'false' or NaN\n at [Source: org.apache.catalina.connector.CoyoteInputStream@646cdfdc; line: 1, column: 29]; nested exception is org.codehaus.jackson.JsonParseException: Unrecognized token 'fomtcvvrin11nm': was expecting 'null', 'true', 'false' or NaN\n at [Source: org.apache.catalina.connector.CoyoteInputStream@646cdfdc; line: 1, column: 29]"}
... View more