Vishal Chaudhari
04/02/2025, 11:42 AMCeligo AI
04/02/2025, 11:42 AMAI generated answer (using internal Slack threads):To turn off the customer credit hold using the PHP toolkit, you would need to update the customer record and set the
creditHoldOverride field to auto. This will automatically manage the credit hold based on the customer's balance and credit limit.
Here is a sample code snippet:
php
require_once 'NetSuiteService.php';
$service = new NetSuiteService();
$customer = new Customer();
$customer->internalId = '123'; // replace with your customer's internalId
$customer->creditHoldOverride = '_auto';
$request = new UpdateRequest();
$request->record = $customer;
$updateResponse = $service->update($request);
if (!$updateResponse->writeResponse->status->isSuccess) {
echo "UPDATE ERROR";
} else {
echo "UPDATE SUCCESS, id " . $updateResponse->writeResponse->baseRef->internalId;
}
Please replace '123' with the internal ID of the customer you want to update.
******
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
04/02/2025, 11:43 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819029093
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802028894
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800732851
Celigo AI
04/02/2025, 11:43 AM