# Fare Class Submitting a Request

Each request creates a single Fare Class sequence, wrapped in a `fareClassCtrl` domain. The domain is further divided into the subdomains described in the tables below:

- Fare Class Control fields
- Fare Class Detail array (recurring segment data)
- Work Unit domain
- Batch domain
- Construction domain, for select international tariffs

## Fare Class Control Fields

| Field Name | Description | Req’d / Optional | Example | Phase |
|---|---|---|---|---|
| `errorOvrrdblWarnings` | Continue processing when an overridable warning is encountered instead of returning an error (the default). Applies to Tag 14/16 tariffs only; Tag 2 tariffs always return an error. | Optional (`Y`/`N`) | `"Y"` | Phase 1 |
| `carrier` | The carrier code that owns the fare class being created. | Required | `"AA"` | Phase 1 |
| `tariff` | The Rules Tariff in which the fare class is being created. A G16 entry check is required to save a fare class for the Carrier/Tariff combination in the request. | Required | `"IPRA"` | Phase 1 |
| `rule` | The rule number in which the fare class is being created. | Required | `"5API"` | Phase 1 |
| `actionCode` | Identifies the action being requested. `"N"` = New. `"X"` = Cancel (planned; see Implementation Phases). | Required | `"N"` | Phase 1 (`N` only) |
| `fareClass` | The fare class code being created. Only one occurrence of a given fare class is permitted within a rule. | Required; 1–8 alphanumeric characters | `"DHJHXTUI"` | Phase 1 |
| `fareType` | Fare Type code indicating the type of fare. See the ATPCO Fare Type Matrix. | Required; 2–3 alphabetic characters | `"EIP"` | Phase 1 |
| `normalSpecial` | Indicates whether the fare class is a Normal or Special fare. Used in combinability (Category 10) and fare construction. | Required (`N`/`S`) | `"S"` | Phase 1 |
| `display` | Display Category Type code: `E` = Excursion, `S` = Special, `N` = Normal, `G` = Group, `I` = Inclusive Tour, and others. | Required | `"N"` | Phase 1 |
| `owRt` | One-way/Round-trip indicator. | Required | `"1"` | Phase 1 |
| `seqEffDt` | Sequence effective date for the fare class being created. This field or the batch effective date (`batchEffDt`) is required. | Conditionally required | `"20261201"` | Phase 1 |
| `loc1` / `loc2` | Origin/Destination location. Not sent in Phase 1, so created sequences carry generic (blank) location data. | Optional | — | Phase 1 |
| `seasonType` | Season code used for display and Record 2/3 Category 10 match criteria. | Optional | — | Phase 1 |
| `dayType` | Day-of-week code used for display and Record 2/3 Category 10 match criteria. | Optional | — | Phase 1 |
| `rtgNum` | Routing Number. | Not sent in Phase 1 | — | Future phase |
| `ftn1` / `ftn2` | Footnote 1 and Footnote 2. | Not sent in Phase 1 | — | Future phase |

## Fare Class Detail (Recurring Segment) Fields

The `fareClassDetail` array carries the recurring-segment data for the fare class, with up to 15 occurrences. At pricing time, these occurrences are related by **OR** logic—only one recurring segment needs to be satisfied for the fare class to apply. See [Match/Resolve Logic](https://devportal.atpco.net/content-management/default/fare-class-match-resolve-logic) for the full recurring-segment matching behavior, including the Prime RBD overflow convention.

| Field Name | Description | Req’d / Optional | Example | Phase |
|---|---|---|---|---|
| `rbdCodeItems` | One or more Prime RBD codes that qualify for the fare. Up to eight per occurrence; use the overflow convention for more. | Required* | `["AB"]` | Phase 1 |
| `rbd999` | Reference to an existing RBD Table 999 supplying additional RBD data. The referenced table must already exist; this API does not create new RBD tables. | Optional / required in select conditions | `"123"` | Phase 1 |
| `psgrType` | Passenger Type Code (PTC) that qualifies for the recurring segment. Blank means valid for all passenger types. | Optional / required in select conditions | `"INF"` | Phase 1 |
| `minAge` / `maxAge` | Minimum/maximum age for the PTC. Coded only when recurring-segment data varies by age. | Optional | `"00"` / `"99"` | Phase 1 |
| `tktDesignator` / `tktDesignatorMod` | Ticket designator appended to the fare class, and its modifier. | Optional | — | Phase 1 |
| `tktCode` / `tktCodeMod` | Ticketing code that replaces the fare class on ticket/fare display, and its modifier. | Optional | — | Phase 1 |
| `dirInd` | Directional Indicator; requires Location data. | Not sent in Phase 1 | — | Future phase |
| `commercialName` | A commercial name used in fare display in place of the fare class code. | Optional | `"YOUTHSALE"` | Phase 1 |

\* `rbdCodeItems`, `rbd999`*, an Add-on Fare Type, or a Standby Passenger Type is required to save the request.*

## 994 Override Date Fields

| Field Name | Description | Type | Example |
|---|---|---|---|
| `tblNum` | Table number for the 994 Override Date table. May reference an existing table or is returned in the response when a new table is created from the fields below. | String, up to 8 digits | `"12345678"` |
| `tvlEff` / `tvlDisc` | First/last date travel is valid. | `YYYYMMDD` | `"20260101"` / `"20261030"` |
| `tktEff` / `tktDisc` | First/last date ticketing is valid. | `YYYYMMDD` | `"20260101"` / `"20260731"` |
| `rsvEff` / `rsvDisc` | First/last date reservations can be made. | `YYYYMMDD` | `"20260101"` / `"20260731"` |

## 996 Note Text Fields

| Field Name | Description | Type | Example |
|---|---|---|---|
| `txtTable996Num` | Table number for the 996 Note Text table, either existing or newly created. | String, up to 8 digits | `"8291360"` |
| `txtLns` | Collection of free-form text lines, with up to 999 lines. Each line includes a line number (`lnNum`) and text (`txt`). | Array | `[{"lnNum":1,"txt":"VALID ONLY ON CARRIER XX"}]` |

## Work Unit Domain Fields

| Field Name | Description | Req’d / Optional | Example |
|---|---|---|---|
| `organization` | The organization submitting the request. | Required | `"AA"` |
| `workUnitName` | A descriptive, user-assigned label for the Work Unit. Not permitted when reusing an existing Work Unit ID. | Optional | `"APImaxLen"` |
| `exclusiveAccess` | Locks the Work Unit for exclusive access while the request is processed. | Optional (`Y`/`N`) | `"Y"` |
| `emailNotification` | Email address(es), up to 5, to notify when Work Unit processing completes. | Optional | `"test@atpco.net"` |
| `workUnitId` | An existing Work Unit ID to which this request is added. Leave blank for ATPCO to generate a new one. The organization code in the user’s RACF/Gateway ID must match the organization on the Work Unit ID. | Optional; required to reuse a Work Unit | `"AA-23NOV26-37"` |
| `schdRelDt` / `schdRelTm` | Scheduled release date/time for the Work Unit. | Optional | — |

## Batch Domain Fields

| Field Name | Description | Req’d / Optional | Example |
|---|---|---|---|
| `batchId` | An existing batch to which this request is added. The organization code in the user’s Gateway/RACF ID must match the organization on the batch ID. | Optional; required to reuse a batch | `"8117368"` |
| `batchEffDt` | Batch effective date. This field or the sequence effective date (`seqEffDt`) is required. Not permitted when `batchId` is specified. | Conditionally required | `"20261201"` |
| `comments` | Free-text comments describing the batch. Not permitted when `batchId` is specified. | Required for a new batch | `"Intl Pub Tariff"` |

## Construction Domain (International Tariffs Only)

The Construction domain is optional and applies only to international tariffs that participate in constructed fares.

| Field Name | Description | Req’d / Optional | Phase |
|---|---|---|---|
| `dblOwAllowed` | One-way No-Double indicator. | Optional | Phase 1 |
| `nuc` | Neutral Unit of Construction indicator. | Optional | Phase 1 |
| `addon1` / `addon1Letter` | First mileage/fare add-on and its letter designator. | Optional | Phase 1 |
| `addon2` / `addon2Letter` | Second mileage/fare add-on and its letter designator. | Optional | Phase 1 |

## General Fields

| Field Name | Description | Type | Example |
|---|---|---|---|
| `rtnTblNumsOnly` | When `"Y"` (default), only created table numbers are displayed in the response. When `"N"`, the full data values are also displayed. | String, 1 character (`Y`/`N`) | `"N"` |
