Gsm - Get
POST https://sandbox.hyperswitch.io/gsm/get
Description: Retrieve Global Status Mapping (GSM) information for a connector error code/message.
Example request (cURL)
curl --request POST \
--url https://sandbox.hyperswitch.io/gsm/get \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"connector": "authipay",
"flow": "<string>",
"sub_flow": "<string>",
"code": "<string>",
"message": "<string>"
}
'Authorization
Header: api-key (string, required)
Notes: Admin API keys allow privileged actions such as creating a merchant account and Merchant Connector account.
Request body (application/json)
connector (string, required) — connector through which the code/message was received
flow (string, required) — the flow in which the code and message occurred for a connector
sub_flow (string, required) — the sub_flow in which the code and message occurred for a connector
code (string, required) — code received from the connector
message (string, required) — message received from the connector
Response (200, application/json)
Gsm retrieved — example response:
Response fields:
connector (string, required) — The connector through which payment has gone through
flow (string, required) — The flow in which the code and message occurred for a connector
sub_flow (string, required) — The sub_flow in which the code and message occurred for a connector
code (string, required) — code received from the connector
message (string, required) — message received from the connector
status (string, required) — status provided by the router
decision (string, required) — Available options:
retry,do_defaultstep_up_possible (boolean, required) — deprecated; indicates if step_up retry is possible Deprecated: This field is now included as part of
feature_dataunder theRetryvariant.clear_pan_possible (boolean, required) — deprecated; indicates if retry with pan is possible Deprecated: This field is now included as part of
feature_dataunder theRetryvariant.feature (string, required) — Available options:
retryfeature_data (object, required) — Contains the data relevant to the specified GSM feature (e.g., retry configuration)
router_error (string | null, optional) — error provided by the router
unified_code (string | null, optional) — error code unified across the connectors
unified_message (string | null, optional) — error message unified across the connectors
description (string | null, optional) — A detailed description of the error intended for debugging, analytics, and support teams
user_guidance_message (string | null, optional) — A user-friendly message that can be safely displayed to the customer
Feedback and editing links:
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/gsm/gsm--get.mdx
Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/gsm/gsm--get