Skip to main content
DELETE

Delete Merchant

Permanently deletes a sub-merchant from your marketplace. This is a destructive operation that removes all business data associated with the merchant.
This action cannot be undone. All merchant data including products, orders, transactions, and account information will be permanently deleted.

Path Parameters

string
required
The business ID of the sub-merchant to permanently delete.

Response

Successful Deletion (merchant account also deleted)

Successful Deletion (merchant account skipped due to balance)

Response Fields

Behavior

This endpoint performs the following operations:
  1. Validates Relationship — Confirms the merchant belongs to your marketplace
  2. Checks Account Balance — Retrieves the connected account’s available and pending balance
  3. Deletes Connected Account — If balance is zero, permanently deletes the connected account
  4. Removes Marketplace Link — Deletes the MarketplaceMerchant relationship record
  5. Clears Portfolio — Removes marketplace references from the merchant’s portfolio
  6. Deletes Business Data — Removes all associated data including:
    • Products and variations
    • Orders and transactions
    • Wallet and withdrawal records
    • Customer data
    • Forms and responses
    • Website configurations
    • All other business-related records

Connected Account Handling

If the merchant has a connected account:
  • Balance = 0: The merchant account is permanently deleted
  • Balance > 0: Account deletion is skipped, but all other data is still deleted. The response includes account_skipped: true and the balance details
If account deletion is skipped due to balance, you should manually drain the balance (e.g., by processing a payout) before attempting to delete the merchant account.

Use Cases

  • Removing a merchant who has violated marketplace terms
  • Cleaning up test merchant accounts
  • Merchant-requested account deletion for compliance (GDPR, etc.)

Comparison with Remove Merchant

Error Codes