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

StatusMessage / cause
400 Bad RequestThis program has members. Archive it instead of deleting it.
400 Bad RequestProgram not found (unknown or already deleted program).
404 Not FoundA program of another organization.

Report an issue with this documentation

Please log in to report issues with our documentation.