Extends the duration of a pricing plan order by postponing the order's endDate
. Postponing the end date of an order does not impact payments.
New endDate
must be later than the order's current endDate
. Can't postpone orders that are unlimited.
Can't postpone an order with status
: PAUSED
.
function postponeEndDate(_id: string, endDate: Date): Promise<void>;
Order ID.
New end date and time.
Must be later than the current end date and time.
import { orders } from "@wix/pricing-plans";
async function postponeEndDate(id, endDate) {
const response = await orders.postponeEndDate(id, endDate);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.