Get Merchant

August 3, 2026 ยท View on GitHub

Use case

Fetches merchant account metadata and current account-level settings.

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: GET /merchant-account/{merchantId}
  • Parameters:
    • merchantId (path, required, string)
  • Body: Path parameter merchantId is the merchant account ID.

Example

Get merchant

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

Response

{
  "merchant_id": "merchant_demo",
  "gateway_success_rate_based_decider_input": null
}

Notes

  • A 404 means the merchant has not been created in Decision Engine.
  • Use the same merchant ID in routing and analytics calls.