Update gateway scores for dynamic routing
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.
Request payload to update gateway performance score based on transaction outcome
Profile ID of the merchant
"pro_aMoPnEkgCVnh2WVsFe32"
Payment Gateway identifier
"stripe:mca1"
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 Payment ID associated with the transaction
"pay_1234"
Gateway score updated successfully
Response after updating gateway score
Status message indicating the result of the score update
"Gateway score updated successfully"