Eric Schultz
11/18/2025, 7:16 PMCart.addLines({
lines: [{
quantity: qty,
item: {
internalid: softwareItemId
},
options: [
{
cartOptionId: "custcol_pk_option",
value: {
internalid: self.model.get("productKeyShort")
}
},
{
cartOptionId: 'custcol_reactivate_seat_count',
value: {
internalid: self.model.get("seatCount")
}
}
]
}]
}).then(function (response) { ...
Have had this bit of code untouched for a few years and worked fine until some one reported today they could not add an item to the cart. Now NetSuite is returning:
{
"errorStatusCode": "400",
"errorCode": "ERR_WS_ADD_ITEM",
"errorMessage": "Failed when adding item to cart"
}