The POST /api/spendRules/detachAll endpoint allows you to remove all spending rules associated with a specific payment card. This action disables any set transaction limits, merchant restrictions, or regional rules, reverting the card to its default, unrestricted state. It is ideal for users or administrators who wish to remove all constraints on a card’s usage.
Purpose:
This API is used to delete all predefined spending rules from a specific card. It eliminates spending limits, transaction restrictions, and any other rules, restoring the card to its unrestricted form.
Response:
Upon a successful request, the API confirms that all spending rules associated with the card have been removed.
Summary:
The POST /api/spendRules/detachAll endpoint is essential for resetting a card’s spending policies. By removing all existing rules, the card is restored to its default, unrestricted state, allowing flexibility for users or administrators. Proper authorization is necessary to ensure that financial controls are securely managed.