Delete Rule Config
August 3, 2026 ยท View on GitHub
Use case
Deletes a service-level success-rate or elimination configuration for a merchant.
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:
POST /rule/delete - Parameters: none.
- Body: JSON body with
merchant_idandalgorithm("successRate"or"elimination") to delete.
Example
Delete success-rate config
curl --location "$BASE_URL/rule/delete" \
--header "$AUTH_HEADER" \
--header "Content-Type: application/json" \
--data '{
"merchant_id": "merchant_demo",
"algorithm": "successRate"
}'
Delete elimination config
curl --location "$BASE_URL/rule/delete" \
--header "$AUTH_HEADER" \
--header "Content-Type: application/json" \
--data '{
"merchant_id": "merchant_demo",
"algorithm": "elimination"
}'
Response
{
"message": "Success Rate Configuration deleted successfully",
"merchant_id": "merchant_demo"
}
Notes
- Deleting config makes the dashboard show that surface as not configured.
- Routing may fall back to defaults if config is absent.