Delete a loyalty program
Delete a program that has no members. This is a soft delete: the program gets deleted_at and no longer appears in list or get. A program with members cannot be deleted: archive it with "status": "archived" instead.
Endpoint
DELETE/loyalty-programs/:id
Request
Response
Returns the deleted loyalty program with deleted_at set.
json
(Shortened: the response contains every field of the program.)
Errors
| Status | Message / cause |
|---|---|
400 Bad Request | This program has members. Archive it instead of deleting it. |
400 Bad Request | Program not found (unknown or already deleted program). |
404 Not Found | A program of another organization. |
Report an issue with this documentation
Please log in to report issues with our documentation.