post
https://api.cxverse.com/loyalty//cards//cancel
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Cancels a loyalty card subscription or a secondary loyalty card. It first checks the type of the loyalty card. If it's a primary card, it checks for the existence of an active subscription and marks it for cancellation if found. It updates the subscription status, cancellation timestamp, and auto-renewal flag. Additionally, it interacts with the Stripe API to schedule the subscription cancellation. If it's a secondary card, If the card is found and active, it updates its status to canceled and blocks associated freebie items. Finally, it returns a success response containing the ID of the updated current card if applicable.