Update Gateway Score
April 25, 2026 ยท View on GitHub
Call this after non-debit runtime payments so SR data stays current. Do not call it for NTW_BASED_ROUTING debit runs where decided_gateway is not the selected network.
Request
curl --location "$BASE_URL/update-gateway-score" \
--header "$AUTH_HEADER" \
--header "Content-Type: application/json" \
--data '{
"merchantId": "merchant_demo",
"gateway": "stripe",
"gatewayReferenceId": null,
"status": "CHARGED",
"paymentId": "sr_001",
"enforceDynamicRoutingFailure": null
}'
Response
Success