juspay/hyperswitch · error · ApiErrorResponse::InternalServerError

Payconex requires BodyKey auth type

Error message

Payconex requires BodyKey auth type

What it means

Error "Payconex requires BodyKey auth type" thrown in juspay/hyperswitch.

Source

Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:1812

                    api_key: api_key.clone(),
                    merchant_id: key1.peek().clone(),
                }),
                _ => Err(err("AbsaSanlam requires BodyKey auth type")),
            },
            Connector::GotymeSanlam => match auth {
                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::GotymeSanlam {
                    api_key: api_key.clone(),
                    profile_id: key1.peek().clone(),
                }),
                _ => Err(err("GotymeSanlam requires BodyKey auth type")),
            },
            Connector::Payconex => match auth {
                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Payconex {
                    api_key: api_key.clone(),
                    account_id: key1.clone(),
                    base_url: None,
                }),
                _ => Err(err("Payconex requires BodyKey auth type")),
            },
            Connector::Citigate => match auth {
                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Citigate {
                    api_key: api_key.clone(),
                    key1: key1.clone(),
                    base_url: None,
                }),
                _ => Err(err("Citigate requires BodyKey auth type")),
            },
            Connector::Worldpayraft => match auth {
                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Worldpayraft {
                    license: api_key.clone(),
                    merchant_id: key1.clone(),
                    base_url: None,
                }),
                _ => Err(err("Worldpayraft requires BodyKey auth type")),
            },
            Connector::Interpayments => match auth {

View on GitHub (pinned to 3093f22cc4)

Solutions

  1. Configure the merchant connector account for Payconex with the BodyKey connector_auth_type
  2. Recreate/update the connector account credentials to match the BodyKey schema

When it happens

Trigger: Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:1712 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of juspay/hyperswitch@3093f22cc4 (2026-08-19). Data as JSON: /api/errors/6bd69b1ecd5c5e75. Report an issue: GitHub.