Updates a checkout template.
If the info in a checkout template is updated, only new checkouts created from this template will include the updated items. Checkouts previously created from this template before the update will not be affected.
function updateCheckoutTemplate(
_id: string,
checkoutTemplate: UpdateCheckoutTemplate,
): Promise<CheckoutTemplate>;
Checkout template ID.
Checkout template info to update.
import { checkoutTemplates } from "@wix/ecom";
async function updateCheckoutTemplate(id, checkoutTemplate) {
const response = await checkoutTemplates.updateCheckoutTemplate(
id,
checkoutTemplate,
);
}
There are 4 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.