removeOverrideCheckoutUrl( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Removes the overrideCheckoutUrl from a specified checkout.

When overrideCheckoutUrl is removed, the checkoutUrl will be set to the default, standard Wix checkout page URL.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function removeOverrideCheckoutUrl(
  _id: string,
): Promise<RemoveOverrideCheckoutUrlResponse>;
Method Parameters
_idstringRequired

ID of the checkout to remove the override checkout url from.

Returns
Return Type:Promise<RemoveOverrideCheckoutUrlResponse>
JavaScript
import { checkout } from "wix-ecom-backend"; async function removeOverrideCheckoutUrl(id) { try { const result = await checkout.removeOverrideCheckoutUrl(id); return result; } catch (error) { console.error(error); // Handle the error } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?