Delete Merchant

August 3, 2026 ยท View on GitHub

Use case

Deletes a merchant account from Decision Engine local state.

Authentication

Protected. Send either Authorization: Bearer <jwt_token> or x-api-key: <api_key>. In sandbox, also send x-feature: decision-engine.

For local development, start with:

export BASE_URL=http://localhost:8080
export AUTH_HEADER="Authorization: Bearer <jwt_token>"
# Sandbox only:
# export BASE_URL=https://sandbox.hyperswitch.io
# export FEATURE_HEADER="x-feature: decision-engine"

Request

  • Method and path: DELETE /merchant-account/{merchantId}
  • Parameters:
    • merchantId (path, required, string)
  • Body: Path parameter merchantId is the merchant account ID.

Example

Delete merchant

curl --location "$BASE_URL/merchant-account/merchant_demo" \
  --header "$AUTH_HEADER" \
  --request DELETE

Response

{
  "message": "Merchant account deleted successfully",
  "merchant_id": "merchant_demo"
}

Notes

  • Do not use this in shared sandbox data unless you are cleaning up your own test merchant.
  • Deleting a merchant does not imply external payment processor cleanup.