``` var onRequest = function(context) { var da...
# suitescript
e
Copy code
var 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;
   // ...
}