Ticket Endorsements (Category 18) Rules API is used to specify the endorsement text that will be placed on the ticket, and the location on the ticket (form of payment box or endorsement box, on the original and/or reissued ticket) where that text should print. The API is designed by ATPCO to meet your needs for automated table creation so you can reduce manual input and get your fares to market faster.
Request
Your request to the Ticket Endorsements (Category 18) Rules Web Service must provide a valid OAuth Access Token. For instructions on how to obtain and use an OAuth Access Token programmatically, see Authentication. You must also specify parameters in the request body.
Request Header Parameters
See Authentication for instructions on header parameters needed for authentication.
Request Object Parameters
All data requests must be received in the JSON format specified by ATPCO, with field names and sub values found in Data Application unless otherwise specified (fields and sub values (i.e., parameters) detailed below). Field names and provided values must be enclosed in quotation marks (e.g., “endorsementTxt”).
- “” or “ ” as a field name or field value: an empty or non-empty blank string within quotation marks in the request is ignored and will not appear in the JSON response
- Invalid field names in a request are ignored
- Invalid field values in a request generate an error
If your request contains field names that are invalid in a request yet valid in a response (e.g., msgs or msg), those fields will be eliminated during processing and overlaid when necessary in the response.
All String fields (enclosed in double quotes) will have leading and trailing spaces removed unless removing all blanks would violate a possible value for a field where blank(s) is valid on a JSON request. Some fields may have special leading/trailing blanks removal rules such as NoteText996, where only trailing blanks are removed to preserve any intentional text indentations.
Examples of invalid field names and values:
| Field Name | Value | Issue | System Handling |
|---|---|---|---|
" endorsementTxt" | Extra leading space | ignored | |
"endorsementTxt " | Extra trailing space | ignored | |
"endorsmentTxt" | Field name incorrect. Missing 'e' | ignored | |
" 2" | Extra leading space | Error – invalid txtLoc format |
The request object can include any of the following parameters:
Category 18 Parameters
| Field Name | Description | Type | Format | Example |
|---|---|---|---|---|
endorsements18 | Wrapper for Category 18 domain | Collection of key-value pairs | { } | |
ruleTariffCode | Tariff code associated with the rule. Per ATPCO’s API edit specification this field is not currently used for Category 18 processing. | String | up to 8 alpha characters | "IPRA" |
tblNum | Table number for the Category 18 (endorsements18) table. This field is response-only for the main category table — if a table number is supplied for endorsements18 in a request it is ignored during processing (no error is returned); the table number is generated and returned in the response once the data fields are processed. | String | up to 8 digits | "1234678" |
endorsementTxt | The wording used in the endorsement box or form of payment box on the ticket. Required field. | String | max 26-position alphanumeric (A–Z, 0–9); may also include hyphen (-), slash (/), or period (.) | "NONREFUNDABLE/NO REISSUE" |
txtLoc | A code indicating where on the ticket the endorsement text should print. Required field. | String (max 1 character) | "1" = Form of payment box, original ticket"2" = Endorsement box, original ticket"3" = Form of payment box, reissued ticket"4" = Endorsement box, reissued ticket"5" = Form of payment box, both original and reissued ticket"6" = Endorsement box, both original and reissued ticket | "2" |
📝 A Category 18 table (excluding the 996 note text table) must contain data in order to be saved. Up to 999 occurrences of a repeatable field (e.g., txtLns, see 996 Note Text below) are permitted; exceeding that maximum returns an error.
994 Override Date Fields
| Field Name | Description | Type | Format | Example |
|---|---|---|---|---|
ovrrdDt994 | Wrapper for 994 Subdomain | Collection of key-value pairs | { } | |
tblNum | Table number for the 994 override date table. May be supplied in the request to reference an existing 994 table, or is returned in the response when a new table is created from the date fields below. An error is returned if a supplied table number does not exist. | String | up to 8 digits | "1234678" |
tvlEff | The first date travel is valid for the Category Record 3 provisions | String | YYYYMMDD | "20260101" |
tvlDisc | The last date travel is valid for the Category Record 3 provisions | String | YYYYMMDD | "20261231" |
tktEff | The first date ticketing is valid for the Category Record 3 provisions | String | YYYYMMDD | "20260101" |
tktDisc | The last date ticketing is valid for the Category Record 3 provisions | String | YYYYMMDD | "20261231" |
rsvEff | The first date reservations can be made for the Category Record 3 provisions | String | YYYYMMDD | "20260101" |
rsvDisc | The last date reservations can be made for the Category Record 3 provisions | String | YYYYMMDD | "20261231" |
allow1stTktDt | Indicator controlling whether tktEff may be used to enforce First Ticketing Date (EDOT) restrictions. Not currently in use. | String |
996 Note Text
| Field Name | Description | Type | Format | Example |
|---|---|---|---|---|
noteTxt996 | Wrapper for 996 Table | Collection of key-value pairs | { } | |
tblNum | Table number for the 996 note text table. May be supplied in the request to reference an existing 996 table, or is returned in the response when a new table is created from the fields below. | String | up to 8 digits | "1234678" |
txtLns | Collection of lines of free-form text specified in the request. Up to 999 occurrences permitted. | Array of collections of key-value pairs | [ { "lnNum": "1", "txt": "THIS IS SAMPLE NOTE TEXT" }, … ] | |
lnNum | Line number indicating the placement of the associated txt field | String | # | "1" |
txt | The text to be printed at the corresponding lnNum (line number). Max 50 characters per line (33 when used in Record 1). Only hyphen (-), period (.), or slash (/) are permitted as special characters. | String | Free-form text | "THIS IS SAMPLE NOTE TEXT" |
📝 Per ATPCO’s Rec 3 Create API edit specification, the 996 table exposes both a
tblNumand atxtTable996Numfield for referencing the underlying note text table. When submitting new note text, usetxtLnsas shown in the examples below; confirm with the ATPCO API team whethertxtTable996Num/txtTable996should also be populated for your integration.
General Fields
| Field Name | Description | Type | Format | Example |
|---|---|---|---|---|
rtnTblNumsOnly | Indicates whether to display the created table numbers and the data values specified in the Request. When set to "Y" (True), ONLY the table numbers will display in the Response. Default is "Y" (True). | String (max 1-character) | "Y" = True"N" = False | "N" |
tblNum | Indicates an existing 900 series table in a request or generated in a response when data has been created | String | ####### | "4175620" |
Response
Responses from the Ticket Endorsements (Category 18) Rules Web Service use the same parameters as requests, outlined above. Responses can also include msg and msgs, which are used to communicate error messages.
Example Requests and Responses
Full Category Request
(display only table numbers in response)
Request
{
"rtnTblNumsOnly":"Y",
"endorsements18": {
"endorsementTxt": "NONREFUNDABLE/NO REISSUE",
"txtLoc": "2"
}
}Response
{
"rtnTblNumsOnly" : "Y",
"endorsements18" : {
"tblNum" : "417562"
}
}Full Category Request
(display only table numbers in response)
Request
{
"rtnTblNumsOnly":"Y",
"endorsements18": {
"endorsementTxt": "NONREFUNDABLE/NO REISSUE",
"txtLoc": "2",
"ovrrdDt994": {
"rsvEff": "20260101",
"rsvDisc": "20260731",
"tktDisc": "20260731",
"tvlEff": "20260201",
"tvlDisc": "20261030"
},
"noteTxt996": {
"txtLns": [{"lnNum":"1","txt": "THIS IS SAMPLE NOTE TEXT TO ILLUSTRATE"}
,{"lnNum":"2","txt": " INDENTATION AND LINE BREAKS"}
,{"lnNum":"3","txt": " IN YOUR REQUEST AND RESPONSE."}
,{"lnNum":"4","txt": "WE HOPE THAT YOU ARE ENJOYING OUR DEMO.."}]
}
}
}Response
{
"rtnTblNumsOnly" : "Y",
"endorsements18" : {
"tblNum" : "417564",
"ovrrdDt994" : {
"tblNum" : "86225"
},
"noteTxt996" : {
"tblNum" : "8291360"
}
}
}Full Category Request Using Data and Existing Table Number
(display table number in response)
Request
{
"rtnTblNumsOnly":"Y",
"endorsements18": {
"endorsementTxt": "NONREFUNDABLE/NO REISSUE",
"txtLoc": "2",
"ovrrdDt994": {
"tblNum": "12345678"
}
}
}Response
{
"rtnTblNumsOnly": "Y",
"endorsements18": {
"tblNum": "4175620",
"ovrrdDt994": {
"tblNum": "12345678"
}
}
}Full Category Request Using Data and Existing 996 Table Number
(display table number in response)
Request
{
"rtnTblNumsOnly":"Y",
"endorsements18": {
"endorsementTxt": "NONREFUNDABLE/NO REISSUE",
"txtLoc": "2",
"noteTxt996": {
"tblNum": "8291360"
}
}
}Response
{
"rtnTblNumsOnly": "Y",
"endorsements18": {
"tblNum": "4175622",
"noteTxt996": {
"tblNum": "8291360"
}
}
}GOLD Environment Endpoint
https://gold.apis.atpco.net/endorsements18-gold/api/v1/rules/ticketendorsement