{"record":{"id":"5bb481b7e0f6d0c7","repo":"juspay/hyperswitch","slug":"imerchantsolutions-requires-headerkey-auth-type","errorCode":null,"errorMessage":"Imerchantsolutions requires HeaderKey auth type","messagePattern":"Imerchantsolutions requires HeaderKey auth type","errorType":"exception","errorClass":"ApiErrorResponse::InternalServerError","httpStatus":500,"severity":"error","filePath":"crates/router/src/core/unified_connector_service/connector_config.rs","lineNumber":1790,"sourceCode":"                    key_id: key1.clone(),\n                    signing_private_key: api_secret.clone(),\n                    client_certificate_bundle: key2.clone(),\n                }),\n                _ => Err(err(\n                    \"Deutsche Bank requires MultiAuthKey auth type \\\n                     (customer_identifier / key_id / signing_private_key / client_certificate_bundle)\",\n                )),\n            },\n            Connector::Imerchantsolutions => match auth {\n                ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Imerchantsolutions {\n                    api_key: api_key.clone(),\n                    merchant_id: None,\n                }),\n                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Imerchantsolutions {\n                    api_key: api_key.clone(),\n                    merchant_id: Some(key1.clone()),\n                }),\n                _ => Err(err(\"Imerchantsolutions requires HeaderKey auth type\")),\n            },\n            Connector::AbsaSanlam => match auth {\n                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::AbsaSanlam {\n                    api_key: api_key.clone(),\n                    merchant_id: key1.peek().clone(),\n                }),\n                _ => Err(err(\"AbsaSanlam requires BodyKey auth type\")),\n            },\n            Connector::GotymeSanlam => match auth {\n                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::GotymeSanlam {\n                    api_key: api_key.clone(),\n                    profile_id: key1.peek().clone(),\n                }),\n                _ => Err(err(\"GotymeSanlam requires BodyKey auth type\")),\n            },\n            Connector::Payconex => match auth {\n                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Payconex {\n                    api_key: api_key.clone(),","sourceCodeStart":1772,"sourceCodeEnd":1808,"githubUrl":"https://github.com/juspay/hyperswitch/blob/3093f22cc46b46415cca152ea0b234277b251ecd/crates/router/src/core/unified_connector_service/connector_config.rs#L1772-L1808","documentation":"Error \"Imerchantsolutions requires HeaderKey auth type\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:1697 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure the merchant connector account for Imerchantsolutions with the HeaderKey connector_auth_type","Recreate/update the connector account credentials to match the HeaderKey schema"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3093f22cc46b46415cca152ea0b234277b251ecd","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}