Delete a merchant
Permanently delete a merchant record that you created by mistake and that hasn't processed payments, saved tokens, or taken loans.
Delete a merchant to remove its record from the Merchant Vault for good. Use this guide to clean up a merchant you created by mistake, such as a duplicate or a test record.
Preczn deletes only a merchant that has none of the following:
- Transactions
- Tokens
- Loans
If a merchant has any of these, you can disable it instead. See Enabling merchants.
You can't undo a delete
Deleting a merchant record is irreversible. Deleting the merchant in Preczn doesn't close the merchant's account at a provider.
Prerequisites
- A merchant that meets the conditions above.
- For the API, an API key for your platform, sent in the
x-api-keyheader, in the same mode (live or test) as the merchant.
Delete the merchant
Select the Dashboard tab or the API tab.
- In the left navigation, select Merchant Vault.
- On the merchant's row, select More actions (⋮), and then select Delete Merchant.
- To confirm, select Yes.
To delete several merchants at once:
- Select the checkbox on each merchant's row.
- Select Delete Merchants. The list marks each merchant that can't be deleted with Cannot be deleted.
- Select Delete All, and then select Yes to confirm. The Dashboard deletes only the merchants that can be deleted.
- Call
DELETE /v1/merchants/{merchantId}. The request has no body, and a successful delete returns204with no body.
If the merchant has transactions, tokens, or loans, the API returns an error with a message that names the reason, and the merchant stays in the Merchant Vault.
After the delete, Preczn records it in the activity log and sends a merchant.deleted webhook. See Merchant webhook payloads.
Next
- To disable a merchant instead of deleting it, see Enabling merchants.
- To find merchants to clean up, see Find merchants.
Updated about 1 hour ago
