erictgrubaugh
10/13/2016, 2:02 PMvar onRequest = function(context) {
var data = JSON.parse(context.request.body); // <- The JSON will be the body of the request, not in the parameters
var customer = data.customer;
var record_type = context.request.parameters.record_type; // <- I'm assuming this does come in on the URL parameters
var items = data.items;
// ...
}