Routing - Feedback

POST https://sandbox.hyperswitch.io/routing/feedback

Description

Send routing feedback to update gateway score.

Example request (cURL)

cURL
curl --request POST \
  --url https://sandbox.hyperswitch.io/routing/feedback \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "merchantId": "<string>",
  "gateway": "<string>",
  "status": "STARTED",
  "paymentId": "<string>"
}
'

Successful response (200)

Authorizations

  • api-key (string) — header — required

Body (application/json)

  • merchantId — string — required

  • gateway — string — required

  • status — enum — required

  • paymentId — string — required

Available status values:

  • 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

Response

  • 200 application/json — Gateway score updated successfully

    • message — string — required

  • Documentation: https://api-reference.hyperswitch.io/introduction

  • Locker API Reference: https://api-reference.hyperswitch.io/locker-api-reference/overview

  • Intelligent Router API Reference: https://api-reference.hyperswitch.io/intelligent-router-api-reference/overview

Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/routing/routing--feedback.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/routing/routing--feedback

Related:

  • Routing - Evaluate: https://api-reference.hyperswitch.io/v1/routing/routing--evaluate

  • Routing - Rule Evaluate: https://api-reference.hyperswitch.io/v1/routing/routing--rule-evaluate