# Fare Class Implementation Phases

This API is being delivered in phases. **Phase 1 covers the standard usage elements of Record 1** — everything a carrier needs to automate the creation of a typical fare class. Elements that are less commonly used, or that require additional design work, are being added in later phases. The scope below reflects the Nov./Dec. 2026 implementation discussion and the current Edits and Cross Edits workbook.

## Phase 1 — Now

Create one new Fare Class sequence (`actionCode: "N"`) in a new or existing rule, in a single request. This includes the standard, everyday elements of Record 1:

- Fare Class Control fields required for every fare class: `carrier`, `tariff`, `rule`, `fareClass`, `fareType`, `normalSpecial`, `display`, `owRt`, `994 Override Date`, `996 Note Text` data, `addon1`, `addon1Letter`, `addon2`, and `addon2Letter`, along with the `dblOwAllowed` and `nuc` Construction fields and the sequence/batch effective date.

- Up to 15 Fare Class Detail occurrences per sequence, including Prime RBD codes (`rbdCodeItems`), an existing RBD Table 999 reference (`rbd999`), Passenger Type Code and age restrictions, ticket designator/code and modifiers, and commercial name.

- 994 Override Date and 996 Note Text: reference an existing table, or supply the date/text fields inline so ATPCO creates a new table and returns its table number.

- Work Unit and Batch domain, including reusing an existing Work Unit ID or Batch ID or creating a new one.

- Auto-assigned sequence number (default `5,000,000`). Only one sequence/fare class is permitted per rule in Phase 1, so a duplicate fare class in the same rule is rejected.

**Not included in Phase 1** (the fields below are ignored if a request includes them):

- Location (`loc1` / `loc2`) and Directional Indicator (`dirInd`). A Phase 1 sequence always carries blank/generic location data, so it matches broadly.

- Routing Number (`rtgNum`) and Footnotes 1/2 (`ftn1` / `ftn2`).

- Creation of a new RBD Table 999. Only a reference to an existing table is accepted.

- Multiple sequences for the same fare class.

## Phase 2 — Next

The next phase adds the ability to update (maintain) a fare class that already exists, rather than only creating new ones, through two new action codes:

- `actionCode: "X"` (Discontinue/Cancel) — discontinues an existing, distributed fare class sequence. Requires `carrier`, `tariff`, `rule`, `fareClass`, and the sequence number (`seqNum`). `seqEffDt`, used as the discontinue effective date, `workUnit`, and `batch` are also required.

- `actionCode: "C"` (Update Construction) — updates the Construction fields (`dblOwAllowed`, `nuc`, `addon1`, `addon1Letter`, `addon2`, and `addon2Letter`) on an existing sequence. Requires `carrier`, `tariff`, `rule`, and `fareClass`. The sequence number (`seqNum`) is not used, since the match is by `carrier`/`tariff`/`rule`/`fareClass` rather than by sequence. Only the Construction fields supplied are updated; other fare class data is ignored.

Related maintenance edits for both action codes are in the Edits and Cross Edits workbook.

## Later Phases

Location, Directional Indicator, Routing Number, Footnotes, and support for multiple sequences per fare class are planned for subsequent phases. Exact phase boundaries for these elements are still being finalized with the development team; this guide will be updated once they are confirmed.
