{
 "openapi": "3.1.0",
 "info": {
  "title": "Upi (India statutory)",
  "version": "20261030b",
  "description": "The upi service of India statutory: 7 operation(s)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/india/upi/requests": {
   "post": {
    "summary": "Requests",
    "operationId": "action_upi_0_5",
    "description": "Body keys: amount, engineCode, note, sourceModule, sourceResource, sourceRecordId, flow, payerVpa, sourceNo; flow one of intent|collect|qr|mandate",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/upi/callback/{txnRef}": {
   "post": {
    "summary": "Callback",
    "operationId": "action_upi_0_6",
    "description": "Body keys: status*, rrn, amount, upiTxnId, payerVpa, payerName, responseCode, reason; status one of created|pending|success|failed|expired|cancelled|refunded|disputed",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/upi/engines": {
   "get": {
    "summary": "Engines",
    "operationId": "action_upi_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/upi/transactions/{id}/apply-receipt": {
   "post": {
    "summary": "Transactions apply receipt",
    "operationId": "action_upi_0_7",
    "description": "Body keys: receiptDate",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/upi/transactions/{id}/refund": {
   "post": {
    "summary": "Transactions refund",
    "operationId": "action_upi_0_7",
    "description": "Body keys: amount, reason",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/upi/engines/{id}/secret": {
   "post": {
    "summary": "Engines secret",
    "operationId": "action_upi_0_7",
    "description": "Body keys: secret",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/india/upi/settlements/reconcile": {
   "post": {
    "summary": "Settlements reconcile",
    "operationId": "action_upi_0_6",
    "description": "Body keys: csv, fileName, settlementDate, bankStatementId; rows: [{ rrn, transactionRef, transaction_ref, reference, amount, valueDate, value_date, date, utr }]",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}