# Footnote Automation Request

Your request to the Footnote Automation Web Service must provide a valid OAuth Access Token. For instructions on how to obtain and use an OAuth Access Token programmatically, see [Authentication](https://devportal.atpco.net/content-management/default/authentication). You must also specify parameters in the request body.

## Request Header Parameters

See [Authentication](https://devportal.atpco.net/content-management/default/authentication) for instructions on header parameters needed for authentication. Each request to the POST endpoint must also include a `GATEWAY_USER_ID` header identifying the calling user. The Bearer Auth scheme requires a JWT that complies with RFC 8725, using a strong signing algorithm (RS256 or ES256) and a short expiration.

## Request Body

The request body should be formatted as a JSON object, wrapped in a single `footnoteControl` object (examples below). The `footnoteControl` carries the footnote's identifying fields, Work Unit and Batch information, and one or more category control subdomains — one per supported category — each of which carries the recurring sequence and category data.

## Request Object Parameters

All data requests must be received in the JSON format specified by ATPCO. Field names and provided values must be enclosed in quotation marks (e.g., `"footnote"`). The request object can include any of the following parameters.

### footnoteControl Fields

| Field | Description | Valid Values/Example |
|---|---|---|
| `tariff` | Footnote tariff name or number. | `“TAFP”`, `“0001”` |
| `tariffType` | Required when tariff is a number; indicates the tariff type. | `“P”` = Published<br>`“A”` = Arbitrary<br>Not permitted if the tariff is US/CA/Domestic |
| `carrier` | Valid IATA carrier code. | `“91”` |
| `footnote` | The footnote code being created or maintained. Single alpha, double alpha, number 1–99, or number-alpha. | `“BX”`, `“XQ”` |
| `actionCode` | Action to perform on the footnote (create, update, or discontinue). | `“N”` = New<br>`“U”` = Update<br>`“X”` = Discontinue |
| `effDt` | Effective date for the footnote. | 8-digit `YYYYMMDD` |
| `errorOvrrdblWarnings` | Indicator/collection controlling whether overridable validation warnings should be treated as blocking for this request. | `“Y”` = Yes |
| `workUnit` (`WorkUnitVO`) | Work Unit routing information for the transaction. | See “Work Unit Fields” |
| `batch` (`BatchVO`) | Batch information the transaction is associated with. | See “Batch Fields” |

### Work Unit Fields (`workUnit`)

| Field | Description | Valid Values/Example |
|---|---|---|
| `organization` | Organization the work unit belongs to. | `“91”` |
| `workUnitName` | Name of the work unit. | (free text) `“PerfTest”` |
| `workUnitId` | System-assigned work unit identifier. Supply to reuse an existing, still-open work unit. | `“91-18MAR26-25”` (response field, reusable) |
| `exclusiveAccess` | Restricts the work unit to exclusive access. | `“Y”` or `“N”` |
| `emailNotification` | Email address to notify when the work unit completes. | Valid email address, or blank |
| `schdRelDt` | Scheduled release date for the work unit. | 8-digit `YYYYMMDD` |
| `schdRelTm` | Scheduled release time for the work unit. | 4-digit `HHMM` |

### Batch Fields (`batch`)

| Field | Description | Valid Values / Example |
|---|---|---|
| `batchId` | Identifier of the batch. Supply to reuse an existing batch; leave blank to have ATPCO create one. | `“91 5750”` (response field, reusable) |
| `batchEffDt` | Effective date associated with the batch. | 8-digit `YYYYMMDD` |
| `comments` | Free-form comments associated with the batch. | Free text |

### Sequence Fields (`sequence`)

| Field | Description | Valid Values / Example |
|---|---|---|
| `actionCode` | Action to perform on this sequence. Must be the same for every sequence in the category's array. | `“N”` = New<br>`“U”` = Update<br>`“X”` = Discontinue |
| `seqEffDt` | Effective date for the sequence. If not provided, the batch effective date will apply to the sequence. | 8-digit `YYYYMMDD` |
| `fareClass` | Fare class match string for the sequence. | `“Y-”`, `“Q&&”`, `“PL-”` |
| `loc1` / `loc2` (LocationVO) | Location match fields for the sequence: code and type. | code e.g. `“PAR”`;<br>type `“C”` = City<br>`“N”` = Nation<br>`“A”` = Area<br>`“Z”` = Zone |
| `zone1` / `zone2` (`ZoneVO`) | Zone match fields for the sequence. | ATPCO zone number |
| `noAppl` | Application / negative-application indicator for the sequence. | `“X”` = provision does not apply |
| `owrt` | One-way / round-trip indicator for the sequence. | `“1”` = One-way<br>`“2”` = Round-trip |
| `rtgNum` | Routing number associated with the sequence. | Numeric routing number |
| `seqNum` | System-assigned sequence number, returned in the response. Ignored if supplied when creating a new sequence; supply it to target an existing sequence for update or discontinue. | (Numeric) `“100000”` |
| `startSeqNumber` | Auto-assigns a new sequence number after this value. Used alone, ATPCO increments by its standard interval of 5,000 when no later sequence exists. | (Numeric) `“100000”` |
| `endSeqNumber` | Auto-assigns a new sequence number before this value. Used alone, ATPCO creates a sequence before it when no earlier sequence exists. | (Numeric) `“20000”` |

> 📝 Supplying `startSeqNumber` and `endSeqNumber` together indicates a sequence number range between the two values — for example, `startSeqNumber` 20000 with `endSeqNumber` 100000 will create sequence number 60000. If `seqNum`, `startSeqNumber`, and `endSeqNumber` are all omitted and the footnote has no existing sequence, ATPCO assigns a default starting sequence number of 100000.

### Category Ctrl Wrappers

Each supported category is attached to the footnote through its own "Ctrl" wrapper field on `footnoteControl`. A request may include one or more of these wrappers, depending on which category data the footnote should carry. Each Ctrl wrapper is an array, allowing a single request to submit up to five sequence entries for that category.

| Category | Name | Ctrl Field | Data Object |
|---|---|---|---|
| 3 | Seasonality | `seasons3Ctrl` | `Seasons3VO` |
| 11 | Blackout Dates | `blkOutDts11Ctrl` | `BlkOutDts11VO` |
| 14 | Travel Restrictions | `tvlRstrxn14Ctrl` | `TvlRstrxn14VO` |
| 15 | Sales Restrictions | `salesRstrxn15Ctrl` | `SalesRstrxn15VO` |

### String Occurrence Fields (`stringOccurrences`)

Each `stringOccurrences` entry is one recurring occurrence of category data attached to the sequence. Each string occurrence supports up to 200 Record 3 data tables. Each category object additionally carries the common fields `tblNum`, `ovrrdDt994` (994 Override Date subdomain), `noteTxt996` (996 Note Text subdomain), and `msgs`; Seasonality and Travel Restrictions also carry a `geoSpec995` (995 Geographic Specification) subdomain.

**Common Occurrence Fields**

| Field | Description | Valid Values / Example |
|---|---|---|
| `dirInd` | Directional indicator for the occurrence. | `"1"` = Outbound (Loc1 to Loc2)<br>`"2"` = Inbound (Loc2 to Loc1) |
| `ioInd` | Inbound/Outbound indicator for the occurrence. | `"I"` = Inbound<br>`"O"` = Outbound |
| `relInd` | Relational indicator linking this occurrence to others on the same sequence. | `"T"` = Then<br>`"A"` = And<br>`"O"` = Or |

**Category 3 (Seasonality) Fields — `seasonality03`**

| Field | Description | Valid Values / Example |
|---|---|---|
| `startDt` | First date of the season. | `"YYYYMMDD"` = Full date<br>`"MMDD"` = Month/Day, no year<br>`"MM"` = Month<br>`"YYYYMM"` = Month and Year, no date |
| `stopDt` | Last date of the season. | `"YYYYMMDD"` = Full date<br>`"MMDD"` = Month/Day, no year<br>`"MM"` = Month<br>`"YYYYMM"` = Month and Year, no date |
| `seasPromo` | Seasonal/promotional indicator. | `"X"` = Season<br>`"D"` = Display Promotional |
| `sysAssumOvrrd` | System assumption override indicator. | `"X"` = Override, 1-character code |

**Category 11 (Blackout Dates) Fields — `blkOutDts11`**

| Field | Description | Valid Values / Example |
|---|---|---|
| `startDt` | First date of the blackout period. | `"YYYYMMDD"` = Full date<br>`"MMDD"` = Month/Day, no year |
| `stopDt` | Last date of the blackout period. | `"YYYYMMDD"` = Full date<br>`"MMDD"` = Month/Day, no year |
| `dtRangeAppl` | Date range application indicator. | `"D"` = Day<br>`"R"` = Range |

> 📝 Category 11 carries two `geoSpec995` occurrences side by side — a "between" and an "and" location pair. See "995 Geographic Specification Fields."

**Category 14 (Travel Restrictions) Fields — `tvlRstrxn14`**

| Field | Description | Valid Values / Example |
|---|---|---|
| `tvlDtComm` | Travel commencement date from fare origin (Travel From). | 8-digit `YYYYMMDD` |
| `tvlDtExp` | Last travel-from-fare-origin expiration date (Travel To). | 8-digit `YYYYMMDD` |
| `tvlDtAppl` | Travel date application indicator. | `"C"` = Commence<br>`"P"` = Complete |
| `tvlDtCommComp` | Travel commencement completion field — required when `tvlDtTm` is coded. | 8-digit `YYYYMMDD` |
| `tvlDtTm` | Travel return time restriction. | 4 characters (`HHMM`), 24-hour clock |
| `tsi` | Trip/Sales/Ticketing indicator scoping the geographic check. | 2-digit numeric, e.g. `"03"` |
| `type` | Geographic type indicator. | `"A"` = Area<br>`"Z"` = IATA Zone<br>`"S"` = State<br>`"C"` = City<br>`"P"` = Airport<br>`"N"` = Nation |
| `loc1 / loc2` | Location values for the geographic specification. | Location/zone codes per ATPCO conventions |

**Category 15 (Sales Restrictions) Fields — `salesRstrxn15`**

| Field | Description | Valid Values / Example |
|---|---|---|
| `rsvEff` | Reservations effective date. | 8-digit `YYYYMMDD` |
| `rsvDisc` | Reservations discontinue date. | 8-digit `YYYYMMDD` |
| `tktEff` | Ticketing effective date. | 8-digit `YYYYMMDD` |
| `tktDisc` | Ticketing discontinue date. Must not be earlier than `rsvEff` / `rsvDisc` / `tktEff`. | 8-digit `YYYYMMDD` |

**Category 23 (Miscellaneous Provisions) Fields — `miscprovision23`**

| Field | Description | Valid Values / Example |
|---|---|---|
| `addonCons` | Add-on construction indicator. | `"Y"` = may be used for add-on construction<br>`"N"` = may not be used for add-on construction<br>`"R"` = must only be used for add-on construction<br>Blank = default |
| `prorate` | Proration indicator. | `"N"` = may not be used for proration<br>`"R"` = must only be used for proration<br>Blank = default |

### 994 Override Date Fields (`ovrrdDt994`)

Optional, shared across all five categories. May reference an existing 994 table by number, or supply date fields inline so ATPCO creates a new table and returns its number in the response.

| Field | Description | Valid Values / Example |
|---|---|---|
| `tblNum` | Table number for the 994 override date table. | 8-digit numeric Record 3 table number |
| `rsvEff / rsvDisc` | Reservations effective / discontinue dates for the override. | 8-digit `YYYYMMDD` |
| `tktEff / tktDisc` | Ticketing effective / discontinue dates for the override. | 8-digit `YYYYMMDD` |
| `tvlEff / tvlDisc` | Travel effective / discontinue dates for the override. | 8-digit `YYYYMMDD` |

### 996 Note Text Fields (`noteTxt996`)

Optional, shared across all five categories. May reference an existing 996 table by number, or supply free-form text lines inline so ATPCO creates a new table.

| Field | Description | Valid Values / Example |
|---|---|---|
| `tblNum` | Table number for the 996 note text table. | 8-digit numeric Record 3 table number |
| `txtLns` | Collection of free-form text lines, each with a line number and text. | Up to 999 lines, each up to 50 characters |

### 995 Geographic Specification Fields (`geoSpec995`)

Scopes a category to a geographic market. Used by Seasonality (Category 3) and Travel Restrictions (Category 14). Category 11 (Blackout Dates) carries two `geoSpec995` occurrences side by side — a "between" and an "and" location pair.

| Field | Description | Valid Values / Example |
|---|---|---|
| `tblNum` | Table number for the 995 geographic specification table. | 8-digit numeric Record 3 table number |
| `tsi` | Trip/Sales/Ticketing indicator scoping the geographic check. | 2-digit numeric, e.g. `"03"` |
| `type` | Geographic type indicator. | `"A"` = Area<br>`"Z"` = IATA Zone<br>`"S"` = State<br>`"C"` = City<br>`"P"` = Airport<br>`"N"` = Nation |
| `loc1 / loc2` | Location values for the geographic specification. | Location/zone codes per ATPCO conventions |

> 📝 Valid values above reflect confirmed request/response examples and standard ATPCO field conventions. For the complete, authoritative list of codes for any field, see the ATPCO Developer Portal.

### Message Fields (`msg` / `msgs`)

| Field | Description |
|---|---|
| `msg` | Top-level message, used for errors and system messages (for example, `"Table creation was unsuccessful"`). |
| `msgs` | Dictionary of message details, used for errors and system messages — nested within the affected domain or subdomain. |
