tuli
06/11/2020, 3:01 PMtuli
06/11/2020, 3:03 PMvar settings = {
"url": some URL here,
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "__cfduid=d3e371568b80d7f3fc091f568eed250481591877837"
},
"data": JSON.stringify({"shopifyDomain":"DOMAIN here","operation":"ITEM","authenticationKey":"key here","dataList":[{"variants":[{"sku":"DA-06-Black","inventory_policy":"deny","barcode":"711005824002","weight":"1.9","weight_unit":"lb","inventory_management":"shopify","tracked":true}]}]}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
tuli
06/11/2020, 3:04 PMtuli
06/11/2020, 3:05 PMvar url = "Some URL here";
var headers = {
"Content-Type": "application/json"
};
var metaFieldArr = {
"shopifyDomain": "Domain here",
"operation": "ITEM",
"authenticationKey": "key here",
"dataList": [
{
"variants": [
{
"sku": "DA-06-Black",
"inventory_policy": "deny",
"barcode": "711005824002",
"weight": "1.9",
"weight_unit": "lb",
"inventory_management": "shopify",
"tracked": true
}
]
}
]};
var response = nlapiRequestURL(url, JSON.stringify(metaFieldArr), headers, "POST");
nlapiLogExecution("debug","response ",response.getBody());
battk
06/11/2020, 3:38 PMbattk
06/11/2020, 3:39 PMAccept: application/json
tuli
06/11/2020, 3:43 PMtuli
06/11/2020, 3:44 PMbattk
06/11/2020, 3:45 PMbattk
06/11/2020, 3:46 PMtuli
06/11/2020, 3:46 PMtuli
06/11/2020, 3:47 PMbattk
06/11/2020, 3:47 PMtuli
06/11/2020, 3:48 PMbattk
06/11/2020, 3:50 PMbattk
06/11/2020, 3:51 PMtuli
06/11/2020, 3:55 PMtuli
06/11/2020, 3:56 PMtuli
06/11/2020, 3:56 PMtuli
06/11/2020, 3:56 PMtuli
06/11/2020, 3:57 PMtuli
06/11/2020, 4:00 PMtuli
06/11/2020, 4:00 PM