> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.hyperswitch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Gateway Score

> Curl example for /update-gateway-score.

# Update Gateway Score

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

```bash theme={null}
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

```text theme={null}
Success
```
