# Footnote Automation Response

Responses from the Footnote Automation Web Service echo the submitted   footnoteControl  object. A successful response returns the assigned     workUnitId  ,   batchId , and — for each sequence in every category Ctrl wrapper submitted — the system-assigned seqNum and the datatable array of created Record 3 table numbers. Responses can also include `msg` and `msgs`, which are used to communicate error messages.

> 📝 If a runtime error exception occurs, the request is not redisplayed; the server returns a runtime error message and HTTP status code 500.

## Example Requests and Responses

The examples below show the `footnoteControl` request used to create a Travel Restrictions (Category 14) provision that can be attached to a fare in the TAFP tariff, in a single call. Each example illustrates a different sequence-numbering pattern; the same patterns apply to any of the five categories.

### Example 1 – New Sequence, New Footnote

No sequence number, `startSeqNumber`, or `endSeqNumber` is supplied and no sequence exists yet for this footnote, so ATPCO assigns the default starting sequence number, 100000, and creates the Travel Restrictions Record 3 table.

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "organization": "91",
      "workUnitName": "PerfTest",
      "exclusiveAccess": "Y",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "",
      "batchEffDt": "20260331",
      "comments": "Performance Test"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "",
          "loc1": {
            "code": "PAR",
            "type": "C"
          },
          "loc2": {
            "code": "NYC",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "",
          "seqNum": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260601",
                "tvlDtExp": "20260831",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "workUnitId": "91-18MAR26-25"
    },
    "batch": {
      "batchId": "81 5750"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "100000",
          "datatable": [
            "99000300"
          ]
        }
      }
    ]
  }
}
```

### Example 2 – Sequence Number Required, Reuse Batch

The footnote already exists, so seqNum is required to target the correct sequence for the update. The batchId is reused to place this data in the same batch; no Work Unit information is needed because the batch is already associated with one.

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "organization": "",
      "workUnitName": "",
      "exclusiveAccess": "",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "91 5750",
      "batchEffDt": "",
      "comments": ""
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "U",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "PAR",
            "type": "C"
          },
          "loc2": {
            "code": "MIA",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "20000",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260701",
                "tvlDtExp": "20260930",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "workUnitId": "91-18MAR26-25"
    },
    "batch": {
      "batchId": "81 5750"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "20000",
          "datatable": [
            "99000301"
          ]
        }
      }
    ]
  }
}
```

### Example 3 – Auto-Assign a Sequence Between Two Existing Sequences

`startSeqNumber` and `endSeqNumber` are supplied together, reusing the existing batch. When both fields are used in combination, ATPCO creates a sequence numbered between the two values using its standard assignment algorithm — here, `startSeqNumber` 20000 and `endSeqNumber` 100000 return sequence number 60000.

**Request**

```json id="v9k3rd"
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "organization": "",
      "workUnitName": "",
      "exclusiveAccess": "",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "91 5750",
      "batchEffDt": "",
      "comments": ""
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "PAR",
            "type": "C"
          },
          "loc2": {
            "code": "SBY",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "startSeqNumber": "20000",
          "endSeqNumber": "100000",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260801",
                "tvlDtExp": "20261031",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json id="b9h7kc"
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "workUnitId": "91-18MAR26-25"
    },
    "batch": {
      "batchId": "81 5750"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "60000",
          "datatable": [
            "99000302"
          ]
        }
      }
    ]
  }
}
```

### Example 4 – Auto-Assign a Sequence Before the First Existing Sequence

`endSeqNumber` is used by itself to create a sequence ahead of the existing sequence 20000. Since no sequence exists before 20000 (think of 20000 as the end of the range 0–20000), ATPCO creates a sequence before it, at 10000. The Work Unit is reused; a new batch is created because none was supplied.

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "organization": "91",
      "workUnitName": "",
      "exclusiveAccess": "",
      "emailNotification": "",
      "workUnitId": "91-18MAR26-25",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "",
      "batchEffDt": "20260401",
      "comments": "reuse wu"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "PAR",
            "type": "C"
          },
          "loc2": {
            "code": "DFW",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "startSeqNumber": "",
          "endSeqNumber": "20000",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260901",
                "tvlDtExp": "20261130",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "workUnitId": "91-18MAR26-25"
    },
    "batch": {
      "batchId": "91 5751"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "10000",
          "datatable": [
            "99000303"
          ]
        }
      }
    ]
  }
}
```

### Example 5 – Auto-Assign a Sequence After the Last Existing Sequence

`startSeqNumber` is used by itself to create a sequence after the last existing sequence, 100000. Since no sequence exists after 100000 (think of 100000 as the beginning of the range 100000–infinity), ATPCO creates a sequence after it, incrementing by the standard interval of 5000 to arrive at 105000. The batch is reused.

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "organization": "91",
      "workUnitName": "",
      "exclusiveAccess": "",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "91 5751",
      "batchEffDt": "",
      "comments": ""
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "PAR",
            "type": "C"
          },
          "loc2": {
            "code": "LAX",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "startSeqNumber": "100000",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20261001",
                "tvlDtExp": "20261231",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "BX",
    "workUnit": {
      "workUnitId": "91-18MAR26-25"
    },
    "batch": {
      "batchId": "91 5751"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "105000",
          "datatable": [
            "99000304"
          ]
        }
      }
    ]
  }
}
```

## Multi-Sequence Examples

A single request can carry more than one sequence for the same footnote and category — up to the five-sequence limit — as long as every sequence in that category's array follows the same action code and sequence-numbering rules described above.

### Example 6 – New Footnote, Multiple Sequences, No Sequence Number Provided

Two sequences are submitted together for a new footnote with no sequence number supplied. ATPCO assigns sequence numbers 100000 and 105000, in the order the sequences were submitted, and creates a Record 3 table for each.

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "XQ",
    "workUnit": {
      "organization": "91",
      "workUnitName": "PerfTest",
      "exclusiveAccess": "Y",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "",
      "batchEffDt": "20261231",
      "comments": "Performance Test"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "Y-",
          "loc1": {
            "code": "CPH",
            "type": "C"
          },
          "loc2": {
            "code": "BUD",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260422",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C",
                "tvlDtCommComp": "20270124",
                "tvlDtTm": "0648"
              }
            }
          ]
        }
      },
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "Q&&",
          "loc1": {
            "code": "NYC",
            "type": "C"
          },
          "loc2": {
            "code": "",
            "type": ""
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260522",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C",
                "tvlDtCommComp": "20270124",
                "tvlDtTm": "0648"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "XQ",
    "workUnit": {
      "workUnitId": "91-20MAR26-21"
    },
    "batch": {
      "batchId": "91 5757"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "100000",
          "datatable": [
            "99000305"
          ]
        }
      },
      {
        "sequence": {
          "seqNum": "105000",
          "datatable": [
            "99000306"
          ]
        }
      }
    ]
  }
}
```

### Example 7 – Reuse Existing Batch, Add Sequences After the Last Sequence

Two more sequences are added to the same footnote, reusing the batch. Both sequences use `startSeqNumber` 105000 alone, so ATPCO adds each new sequence after the last existing one, incrementing by 5000 each time (110000, then 115000).

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "XQ",
    "workUnit": {
      "organization": "",
      "workUnitName": "",
      "exclusiveAccess": "",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "91 5757",
      "batchEffDt": "",
      "comments": ""
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "FR",
            "type": "N"
          },
          "loc2": {
            "code": "SFO",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "startSeqNumber": "105000",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260601",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      },
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "FR",
            "type": "N"
          },
          "loc2": {
            "code": "PHL",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "startSeqNumber": "105000",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260601",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "XQ",
    "workUnit": {
      "workUnitId": "91-20MAR26-21"
    },
    "batch": {
      "batchId": "91 5757"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "110000",
          "datatable": [
            "99000307"
          ]
        }
      },
      {
        "sequence": {
          "seqNum": "115000",
          "datatable": [
            "99000308"
          ]
        }
      }
    ]
  }
}
```

### Example 8 – Error: Mixed Sequence-Assignment Types

This request mixes sequence-numbering types within the same category array: the first sequence supplies `seqNum` directly, while the second uses `startSeqNumber`. Because sequence-number assignment must be the same type across every sequence in the array, both sequences are rejected.

**Request**

```json id="ibvq1x"
{
  "footnoteControl": {
    "tariff": "TAFP",
    "tariffType": "",
    "carrier": "91",
    "footnote": "XQ",
    "workUnit": {
      "organization": "",
      "workUnitName": "",
      "exclusiveAccess": "",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "91 5757",
      "batchEffDt": "",
      "comments": ""
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "FR",
            "type": "N"
          },
          "loc2": {
            "code": "ABQ",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "60000",
          "startSeqNumber": "",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260601",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      },
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "        ",
          "loc1": {
            "code": "FR",
            "type": "N"
          },
          "loc2": {
            "code": "DFW",
            "type": "C"
          },
          "noAppl": "",
          "owrt": " ",
          "rtgNum": "    ",
          "seqNum": "",
          "startSeqNumber": "115000",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "1",
              "ioInd": " ",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260601",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "msgs": {
    "errors": [
      "Sequence creation was unsuccessful"
    ]
  },
  "footnoteControl": {
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "msgs": {
            "errors": [
              "[seqNum] - Sequence fields type seqNumber or auto assign startSeqNumber or endSeqNumber must be same type in each domain"
            ]
          },
          "seqNum": "60000",
          "loc2": {
            "code": "ABQ"
          }
        }
      },
      {
        "sequence": {
          "msgs": {
            "errors": [
              "[seqNum] - Sequence fields type seqNumber or auto assign startSeqNumber or endSeqNumber must be same type in each domain"
            ]
          },
          "startSeqNumber": "115000",
          "loc2": {
            "code": "DFW"
          }
        }
      }
    ]
  }
}
```

### Example 9 – Multiple Categories in One Request

A single `footnoteControl` request creates two Travel Restrictions (Category 14) sequences and one Sales Restrictions (Category 15) sequence for the same footnote — one call for two different categories.

**Request**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "XX",
    "workUnit": {
      "organization": "91",
      "workUnitName": "PerfTest",
      "exclusiveAccess": "Y",
      "emailNotification": "",
      "workUnitId": "",
      "schdRelDt": "",
      "schdRelTm": ""
    },
    "batch": {
      "batchId": "",
      "batchEffDt": "20261231",
      "comments": "TEST"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "Y-",
          "loc1": {
            "code": "MIA",
            "type": "C"
          },
          "loc2": {
            "code": "",
            "type": ""
          },
          "noAppl": "",
          "owrt": "",
          "rtgNum": "",
          "seqNum": "",
          "startSeqNumber": "",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "",
              "ioInd": "",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260422",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C",
                "tvlDtCommComp": "20270124",
                "tvlDtTm": "0648"
              }
            }
          ]
        }
      },
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "Q&&",
          "loc1": {
            "code": "",
            "type": ""
          },
          "loc2": {
            "code": "",
            "type": ""
          },
          "noAppl": "",
          "owrt": "",
          "rtgNum": "1585",
          "seqNum": "",
          "startSeqNumber": "",
          "endSeqNumber": "",
          "stringOccurrences": [
            {
              "dirInd": "",
              "ioInd": "",
              "relInd": "T",
              "tvlRstrxn14": {
                "tvlDtComm": "20260522",
                "tvlDtExp": "20270116",
                "tvlDtAppl": "C",
                "tvlDtCommComp": "20270124",
                "tvlDtTm": "0648"
              }
            }
          ]
        }
      }
    ],
    "salesRstrxn15Ctrl": [
      {
        "sequence": {
          "actionCode": "N",
          "seqEffDt": "",
          "fareClass": "PL-",
          "loc1": {
            "code": "",
            "type": ""
          },
          "loc2": {
            "code": "",
            "type": ""
          },
          "noAppl": "",
          "owrt": "",
          "rtgNum": "",
          "seqNum": "",
          "stringOccurrences": [
            {
              "dirInd": "",
              "ioInd": "",
              "relInd": "T",
              "salesRstrxn15": {
                "rsvEff": "20260916",
                "rsvDisc": "20270503",
                "tktEff": "20260918",
                "tktDisc": "20270515"
              }
            }
          ]
        }
      }
    ]
  }
}
```

**Response**

```json
{
  "footnoteControl": {
    "tariff": "TAFP",
    "carrier": "91",
    "footnote": "XX",
    "workUnit": {
      "workUnitId": "91-20MAR26-26"
    },
    "batch": {
      "batchId": "1 5759"
    },
    "tvlRstrxn14Ctrl": [
      {
        "sequence": {
          "seqNum": "100000",
          "datatable": [
            "99000300"
          ]
        }
      },
      {
        "sequence": {
          "seqNum": "105000",
          "datatable": [
            "99000301"
          ]
        }
      }
    ],
    "salesRstrxn15Ctrl": [
      {
        "sequence": {
          "seqNum": "100000",
          "datatable": [
            "99000205"
          ]
        }
      }
    ]
  }
}
```
