---
title: "Get Refund OTP API Reference"
description: "Request the refund OTP for a failed transaction (sent to the customer's mobile)."
canonical: "https://eps.eko.in/docs/get-refund-otp"
---


> **Canonical URL:** https://eps.eko.in/docs/get-refund-otp
> This is a machine-readable Markdown version of the page for AI agents and LLMs. The primary (HTML) version lives at the canonical URL above.

# Get Refund OTP API Reference

`POST https://staging.eko.in/ekoapi/v3/customer/payment/refund/{tid}/otp`

Request the refund OTP for a failed transaction (sent to the customer's mobile).

For a failed transaction (tx_status 3), an OTP is sent to the customer's mobile. Call this to (re)send it and obtain the `otp_ref_id`; pass both into Initiate Refund. The OTP cannot be bypassed.

> View product & pricing details: [Transactions & Refunds](https://eps.eko.in/products/transactions-api.md)

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| tid | string | yes | Transaction ID from the Initiate Transaction call. e.g. 13192443 |

## Body parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| initiator_id | string | yes | Registered mobile number of the API user (see Platform Credentials). e.g. 9962981729 |

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| developer_key | string | yes | Static API key issued to your account after KYC. |
| secret-key | string | yes | Dynamic per-request signature: base64(HMAC-SHA256(timestamp, base64(access_key))). |
| secret-key-timestamp | string | yes | Current time in milliseconds since UNIX epoch, used to compute secret-key. Must match server time. |
| content-type | string | yes | application/json e.g. application/json |

## Response

⭐ marks fields highlighted as verifiable.

| Field | Type | Description |
| --- | --- | --- |
| status | number | Primary success indicator (0 = success). |
| message | string | Human-readable response / error message. |
| response_status_id | number | Granular status id; see the shared error-codes table. |
| response_type_id | number | A unique id for every possible response shape (success or error) — useful for client logic branching and analytics. |
| data | object | API-specific response payload. |
| data.otp_ref_id ⭐ | string | OTP session reference — pass to Initiate Refund. |

## Example request

```json
{
  "initiator_id": "9962981729"
}
```

## Example response

```json
{
  "response_status_id": 1,
  "data": {
    "otp_ref_id": "zCISyglexo0Pjqp4YrS2ssweuD9v1c3aLKGxjTW8wU7An8Wem1UyNws5830yh7q/sf5J4R3BY="
  },
  "response_type_id": 2133,
  "message": "Send OTP",
  "status": 2133
}
```
