v11

OpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-08-014635124.5 KB
Score Feedback

Update gateway score

Feed 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.

post/update-gateway-score

Request body

merchantIdstring required
gatewaystring required
paymentIdstring required
status'CHARGED' | 'AUTHENTICATION_FAILED' | 'AUTHORIZATION_FAILED' | 'JUSPAY_DECLINED' | 'FAILURE' required
gatewayReferenceIdstring
enforceDynamicRoutingFailureboolean

Example request

{
  "merchantId": "test_merchant",
  "gateway": "stripe",
  "paymentId": "pay_001",
  "status": "CHARGED",
  "gatewayReferenceId": "stripe_ref_001"
}

Response

Score updated

messagestring
merchant_idstring
gatewaystring
payment_idstring