delete
https://api.zenoti.com/v1/organizations/settings/membership_advance_booking_rules/
This API soft-deletes a single membership advance booking rule by its rule_id, setting Void = 1 in tblMembershipAdvancedBookingRules. Triggered by the delete icon on each row in the "Previously Added Rules" table on the Advance Booking Windows admin settings page.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Response Details
DeleteMembershipAdvancedBookingRuleResponse
| Json property | Data type | Description |
|---|---|---|
| error | APIV2ErrorModel | Error details. Returns null when the membership advance booking rule is deleted successfully. |
APIV2ErrorModel
| Json property | Data type | Description |
|---|---|---|
| code | string | Error code indicating the type of failure. |
| message | string | Description of the error. |
Error Codes
| Error Code | HTTP Status | Description |
|---|---|---|
| GE002 | 400 Bad Request | Invalid rule_id provided. |
| GE403 | 403 Forbidden | User does not have permission to access this resource. |
| GE404 | 404 Not Found | Membership advance booking rule was not found or does not belong to the authenticated organization. |
| GE500 | 500 Internal Server Error | An unexpected server error occurred while processing the request. |
