> For the complete documentation index, see [llms.txt](https://roqqu-api-services.gitbook.io/ras/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roqqu-api-services.gitbook.io/ras/transaction/get-send-withdrawal-queue-record-by-reference-id.md).

# Get send/withdrawal queue record by Reference ID

Retrieve a send/withdrawal queue record by reference ID (`refid`).

**Endpoint:** `GET /transaction/refId/:refid`

**Authentication:** Required (`x-api-key` for live, `x-staging-api-key` for test)

#### Path Parameters <a href="#path-parameters-2" id="path-parameters-2"></a>

| Parameter | Type   | Required | Description       |
| --------- | ------ | -------- | ----------------- |
| refid     | string | Yes      | Send reference ID |

**Example Request**

```
curl -X GET https://service.roqqu.com/v1/transaction/refId/10704380386654367514 \
  -H "x-api-key: YOUR_API_KEY"
```

**Example Response (Success)**

```
{
  "status": "success",
  "message": "transaction retrieved for search Ref: [object Object]",
  "data": {
    "id": 1,
    "refid": "10704380386654367514",
    "checked": 0,
    "status": 0,
    "email": "merchant@business.com",
    "value": 1,
    "_to": "TUyR2sEjzDZNmbnac2ZkJ54h64m6TmVN71",
    "token": "usdt",
    "network": "trc20",
    "fee": 1,
    "contract": null,
    "tx_hash": null,
    "processed_at": null,
    "created_at": "2023-08-10T08:22:17.000Z",
    "updated_at": "2023-08-10T08:22:17.000Z"
  }
}
```

> The success `message` currently stringifies the record in the message text. Prefer reading `data` for the full record.

**Error Responses**

**Not found:**

```
{
  "status": "fail",
  "message": "refid details not found"
}
```

**Missing path param:**

```
{
  "status": "fail",
  "message": "refid not found in params"
}
```
