mercury_delete_customer
Permanently delete an Accounts Receivable customer on Mercury. Use to remove customers created by mistake or for purging. Confirm with user first; ensure no paid/outstanding invoices exist to avoid rejection.
Instructions
Permanently delete an Accounts Receivable customer. DESTRUCTIVE.
USE WHEN: removing a customer that was created by mistake, or that the user explicitly wants to purge. ALWAYS confirm with the user before calling — there is no undo.
DO NOT USE: when the customer has invoices in paid / outstanding status — Mercury rejects deletion in those cases and returns a 409. Cancel outstanding invoices first via mercury_cancel_invoice.
SIDE EFFECTS: permanent deletion on Mercury's side. The customer disappears from the AR list. Past invoices' customerId may dangle (Mercury does not cascade-delete invoices). NOT recoverable from API. ALWAYS confirm with the user.
RETURNS: confirmation payload from Mercury ({ deleted: true, ... } or similar).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | Customer ID |