delete https://api.preczn.com/v1/merchants/
The Merchant API features a DELETE endpoint designed primarily for removing test merchant data from your platform. To prevent accidental data loss, safeguards are in place that prevent the deletion of merchants with associated transactions or payment method tokens.
If a merchant has no linked transactions or tokens, the record will be successfully deleted, and an HTTP status code of 204 will be returned.
Here is a summary of potential scenarios and their corresponding responses:
Scenario | HTTP Status | Error Message |
---|---|---|
No transactions or tokens | 204 | None |
Has associated transactions | 400 | Merchant has associated transactions and cannot be deleted |
Has associated tokens | 400 | Merchant has associated tokens and cannot be deleted |