---
title: "Legacy update score"
method: POST
path: "/update-score"
tags: ["Compatibility"]
---

# Legacy update score

`POST /update-score`

Legacy compatibility route. New integrations should use /update-gateway-score.

## Request body

- LegacyUpdateScoreRequest — Legacy score-feedback payload built from full internal transaction objects. This is NOT the `/update-gateway-score` shape. `txn_detail` and `txn_card_info` must each carry a `partitionKey` key (value may be null), and their `id` fields are numeric strings.
  - `txn_detail` object, required — Full internal transaction object.
    - `partitionKey` string, nullable, required — Required key. May be null.
    - `id` string, required — Numeric string. Must be present and parse as an integer - the conversion unwraps the parsed value, so a missing or non-numeric id panics the handler instead of returning a 4xx.
    - `netAmount` number, double, required
    - `currency` string, required
  - `txn_card_info` object, required — Full internal card/payment-method object.
    - `partitionKey` string, nullable, required — Required key. May be null.
    - `id` string, required — Numeric string.
    - `txnId` string
    - `txnDetailId` string — Numeric string.
  - `log_message` string, required
  - `enforce_dynaic_routing_failure` boolean, nullable
  - `gateway_reference_id` string, nullable
  - `txn_latency` object, nullable
    - `gatewayLatency` number, double, nullable

## Response `200`

OK

- string — Bare JSON string, not an object.

## Changes

- **2026-08-04** `36e7a0972ee6` — 4 breaking, 6 warning, 3 info
  - added the new required request property `log_message`
  - added the new required request property `txn_card_info`
  - added the new required request property `txn_detail`
  - the response's body type/format changed from `object`/`` to `string`/`` for status `200`
  - …9 more
- **2026-04-25** `986e537b0455` — 1 info
  - endpoint added
- **2026-04-10** `9618544de91a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/juspay/apis/decision-engine/changes/update-score/post.md)

---

[API](https://skmtc.dev/juspay/apis/decision-engine.md) · [All operations](https://skmtc.dev/juspay/apis/decision-engine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/juspay/decision-engine/revisions/a35ceeb59faf/schema)
