---
title: "Routing - Feedback"
method: POST
path: "/routing/feedback"
tags: ["Routing"]
---

# Routing - Feedback

`POST /routing/feedback`

Update gateway scores for dynamic routing

## Request body

- UpdateScorePayload — Request payload to update gateway performance score based on transaction outcome
  - `merchantId` string, required — Profile ID of the merchant
  - `gateway` string, required — Payment Gateway identifier
  - `status` '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', required
  - `paymentId` string, required — Payment ID associated with the transaction

## Response `200`

Gateway score updated successfully

- UpdateScoreResponse — Response after updating gateway score
  - `message` string, required — Status message indicating the result of the score update

## Other responses

- `400` — Request body is malformed
- `403` — Forbidden
- `404` — Resource missing
- `422` — Unprocessable request
- `500` — Internal server error

---

[API](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0.md) · [All operations](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperswitch/dynamic-routing-openapi-3-0/versions/8fbf69ab2597/schema)
