---
title: "SQL-027: clsAuthorizationTypeCode retrieve by code"
summary: Retrieves an authorization type code record with ACH company details from AUTHORIZATION_TYPE_CODE.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-027: clsAuthorizationTypeCode retrieve by code

Retrieves an authorization type code record with ACH company details from AUTHORIZATION_TYPE_CODE.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-027 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuthorizationTypeCode` |
| **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 |
| --- | --- | --- |
| [AUTHORIZATION_TYPE_CODE](../database-tables.md#authorization_type_code) | — | — |

## Sample SQL

```sql
Select AUTHORIZATION_TYPE_CODE.CODE as Code, AUTHORIZATION_TYPE_CODE.CODE_DESCR as Description,
  AUTHORIZATION_TYPE_CODE.RECURRING_PAYMENT_FLAG as RecurringPaymentFlag,
  AUTHORIZATION_TYPE_CODE.DEFAULT_BANK_ROUTING_NUM as DefaultBankRoutingNum,
  AUTHORIZATION_TYPE_CODE.ACH_COMPANY_ID as ACHCompanyID,
  AUTHORIZATION_TYPE_CODE.ACH_COMPANY_NAME as ACHCompanyName,
  AUTHORIZATION_TYPE_CODE.ACH_FILE_ID as ACHFileID
From AUTHORIZATION_TYPE_CODE
Where AUTHORIZATION_TYPE_CODE.CODE = :Code
```

## Operations and processes
- [Code table lookups](../operations/code-table-lookups.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\clsAuthorizationTypeCode.vb`
