Skip to main content
POST
/
routing
/
feedback
Routing - Feedback
curl --request POST \
  --url https://sandbox.hyperswitch.io/routing/feedback \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "merchantId": "pro_aMoPnEkgCVnh2WVsFe32",
  "gateway": "stripe:mca1",
  "status": "STARTED",
  "paymentId": "pay_1234"
}
'
{
  "message": "Gateway score updated successfully"
}

Authorizations

api-key
string
header
required

Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.

Body

application/json

Request payload to update gateway performance score based on transaction outcome

merchantId
string
required

Profile ID of the merchant

Example:

"pro_aMoPnEkgCVnh2WVsFe32"

gateway
string
required

Payment Gateway identifier

Example:

"stripe:mca1"

status
enum<string>
required
Available options:
STARTED,
AUTHENTICATION_FAILED,
JUSPAY_DECLINED,
PENDING_VBV,
V_B_V_SUCCESSFUL,
AUTHORIZED,
AUTHORIZATION_FAILED,
CHARGED,
AUTHORIZING,
C_O_D_INITIATED,
VOIDED,
VOIDED_POST_CHARGE,
VOID_INITIATED,
NOP,
CAPTURE_INITIATED,
CAPTURE_FAILED,
VOID_FAILED,
AUTO_REFUNDED,
PARTIAL_CHARGED,
TO_BE_CHARGED,
PENDING,
FAILURE,
DECLINED
paymentId
string
required

Payment ID associated with the transaction

Example:

"pay_1234"

Response

Gateway score updated successfully

Response after updating gateway score

message
string
required

Status message indicating the result of the score update

Example:

"Gateway score updated successfully"