postponeEndDate( )


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.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Orders
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

Order ID.


endDateDateRequired

New end date and time.

Must be later than the current end date and time.

Errors

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

Did this help?