POST
/
gsm
/
update
curl --request POST \
  --url https://sandbox.hyperswitch.io/gsm/update \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "connector": "<string>",
  "flow": "<string>",
  "sub_flow": "<string>",
  "code": "<string>",
  "message": "<string>",
  "status": "<string>",
  "router_error": "<string>",
  "decision": "retry",
  "step_up_possible": true,
  "unified_code": "<string>",
  "unified_message": "<string>"
}'
{
  "connector": "<string>",
  "flow": "<string>",
  "sub_flow": "<string>",
  "code": "<string>",
  "message": "<string>",
  "status": "<string>",
  "router_error": "<string>",
  "decision": "<string>",
  "step_up_possible": true,
  "unified_code": "<string>",
  "unified_message": "<string>"
}

Authorizations

api-key
string
headerrequired

Admin API keys allow you to perform some privileged actions such as creating a merchant account and Merchant Connector account.

Body

application/json
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 | null

status provided by the router

router_error
string | null

optional error provided by the router

decision
enum<string>
Available options:
retry,
requeue,
do_default
step_up_possible
boolean | null

indicates if step_up retry is possible

unified_code
string | null

error code unified across the connectors

unified_message
string | null

error message unified across the connectors

Response

200 - application/json
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

router_error
string | null

optional error provided by the router

decision
string
required

decision to be taken for auto retries flow

step_up_possible
boolean
required

indicates if step_up retry is possible

unified_code
string | null

error code unified across the connectors

unified_message
string | null

error message unified across the connectors