Andrew Luke
02/13/2026, 10:04 PMCeligo AI
02/13/2026, 10:04 PMAI generated answer (using internal Slack threads):To implement live pricing on a SuiteCommerce website, you can use SuiteScript to retrieve the item's price based on the customer ID in a Suitelet search. Here's a sample code snippet that was shared in the threads:
javascript
var itemID = request.getParameter('itemid');
var custId = request.getParameter('custid');
var stCallbackFunction = request.getParameter('callback');
if (itemID == null) {
response.write('URL parameter required: itemid <br> optional parameter: callback');
return;
}
if (custId == null) {
response.write('Customer ID parameter required: custid');
return;
}
var filters = new Array();
filters[0] = new nlobjSearchFilter('internalid', null, 'anyof', itemID);
if (custId != 0) {
filters[1] = new nlobjSearchFilter('customer', 'pricing', 'is', custId) // Getting the prices for a particular customer
}
var columns = new Array();
columns[0] = new nlobjSearchColumn('itemid');
columns[1] = new nlobjSearchColumn('parent');
columns[2] = new nlobjSearchColumn('type');
columns[3] = new nlobjSearchColumn("custitem_upsell");
var searchresults = nlapiSearchRecord('item', null, filters, columns);
This script retrieves the item's price based on the customer ID and item ID. It uses the nlobjSearchFilter function to filter the search results based on the customer ID and item ID. The nlapiSearchRecord function is then used to perform the search and return the results.
For pulling rates from an API when the customer loads the page, you can use a shipping cost estimator API like ShipEngine's API. You can make an API call to retrieve the shipping rates and display them on your SuiteCommerce website.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/13/2026, 10:04 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801818907
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.797302306
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.79675293
Celigo AI
02/13/2026, 10:04 PM