require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php");
use Bitrix\Main\Loader;
\Bitrix\Main\Loader::includeModule('catalog');
\Bitrix\Main\Loader::includeModule('sale');
$arFields = [
'ACTIVE' => 'N'
];
CCatalogDiscountCoupon::Update(
'1',
$arFields
);