Update gateway score
Changed onFeed a transaction outcome back into the success-rate model. Call this after every transaction so the engine has accurate SR data for future routing decisions.
A CHARGED status increases the gateway's SR; failure statuses (AUTHENTICATION_FAILED, AUTHORIZATION_FAILED, etc.) decrease it.
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/update-gateway-score
- Auth
- HTTP bearer
- or API key in header x-api-key
Request body
Example request
{
"merchantId": "merchant_demo",
"gateway": "stripe",
"paymentId": "pay_sr_001",
"status": "CHARGED",
"gatewayReferenceId": "stripe_ref_001",
"txnLatency": {
"gatewayLatency": 120.5
}
}Response
Score updated
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became nullable - info
the request property
became nullable - info
the
request property default valuefalsewas removed - info
added the new
AUTHORIZEDenum value to the request property - info
added the new
AUTHORIZINGenum value to the request property - info
added the new
AUTO_REFUNDEDenum value to the request property - info
added the new
CAPTURE_FAILEDenum value to the request property - info
added the new
CAPTURE_INITIATEDenum value to the request property - info
added the new
COD_INITIATEDenum value to the request property - info
added the new
DECLINEDenum value to the request property - info
added the new
NOPenum value to the request property - info
added the new
PARTIAL_CHARGEDenum value to the request property - info
added the new
PENDINGenum value to the request property - info
added the new
PENDING_VBVenum value to the request property - info
added the new
STARTEDenum value to the request property - info
added the new
TO_BE_CHARGEDenum value to the request property - info
added the new
VBV_SUCCESSFULenum value to the request property - info
added the new
VOIDEDenum value to the request property - info
added the new
VOID_FAILEDenum value to the request property - info
added the new
VOID_INITIATEDenum value to the request property - info
added the optional property
to the response with the status
- info
- info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
the endpoint scheme security
BearerAuthwas added to the API
- info