DELETE

Delete Loyalty Earning Rule


Deletes a non-automated earning rule.

To delete an automated earning rule, use Delete Automation Earning Rule.

To update an earning rule's status instead of deleting it, use Update Loyalty Earning Rule.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Loyalty
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/_api/loyalty-earning-rules/v1/earning-rules/{id}

Path Params
idstringRequired

ID of the earning rule to delete.

Query Params
revisionnumber

Revision of the earning rule. Incremented by 1 each time the earning rule is updated. Pass the latest revision when updating to prevent conflicting changes.

Response Object
Returns an empty object.
Delete earning rule
Request
cURL
Response
JSON
Errors

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

Did this help?