---
title: "SQL-070: clsReturnStatusCode retrieve by code"
summary: Retrieves a single return status code record.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-070: clsReturnStatusCode retrieve by code

Retrieves a single return status code record.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-070 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsReturnStatusCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| \:CODE\ | Input | String | 5 | Binds \MyCriteria.Code\* |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [RETURN_STATUS_CODE](../database-tables.md#return_status_code) | — | — |

## Sample SQL

```sql
Select RETURN_STATUS_CODE.CODE as Code,
  RETURN_STATUS_CODE.CODE_DESCR as Description
From RETURN_STATUS_CODE
Where RETURN_STATUS_CODE.CODE = :Code
```

## Operations and processes
- [Payment return handling](../operations/payment-return-handling.md)*

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Payment.EFT\clsReturnStatusCode.vb`
