Command Reference
NDCTerm uses a cryptic command language inspired by traditional GDS systems and designed for the NDC 24.1 standard. Commands are short, consistent, and follow a few clear patterns.
Namespaces
Commands use prefix characters to indicate their category. If you see a prefix, you can guess what the command does.
| Prefix | Category | Example |
|---|---|---|
(none) | Shopping & search | 15NOVJFKLAX |
1–9 | Selection | 1, 1-3 |
A–Z | Actions | WP, ER, CANCEL |
* | Lookup & display | *ABC123, *L |
- | Passengers | -DOE/JANE MS |
@ | Passenger attributes | @DOB01JAN1980 |
$ | Seats | $P1/12A, $MAP |
! | Special service requests | !P1/VGML |
+ | Ancillaries | +BAG1/25KG |
% | Loyalty programs | %P1/UA/123 |
? | Queries & help | ?FR, ?BAG |
# | Workspaces | #1, #NEW |
X | Delete | X1, XA |
D | Split order | D1 |
Search
15NOVJFKLAX
Search JFK to LAX on Nov 15. Schedule mode (cached, instant, nonstop).
15NOVJFKLAX/AA
One carrier — a carrier qualifier shops live, returning priced offers rather than the timetable.
15NOVJFKLAX/SHOP
Shop mode — live priced offers from the airline.
15NOVJFKLAX/SHOP7/AA
7-day price calendar on AA. Cheapest date highlighted.
15NOVJFKLAX/20NOVLAXJFK
Round-trip. Auto-shops via NDC API.
15NOVJFKLAX/18NOVLAXSFO/20NOVSFOORD
Multi-city. Auto-shops via NDC API.
15NOVJFKLAX/SHOP/J
Cabin filter: /E economy, /W premium, /J business, /F first.
15NOVJFKLAX/SHOP/*A
Alliance filter: *A Star, *O Oneworld, *S SkyTeam.
15NOVJFKLAX/SHOP/-UA
Exclude a carrier.
15NOVJFKLAX/NONSTOP
Connection limit: /NONSTOP, /1STOP, /2STOP, /ANY.
15NOVJFKLAX/SHOP/2ADT/1CHD
Passenger counts. PTC codes: ADT, CHD, INF, YTH, SRC…
Select
1
Select flight 1 from results.
1/2/3
Select multiple non-consecutive flights.
1-5
Select a range.
1R
Long-sell row 1 with booking class R.
1CLASSIC
Long-sell row 1 with a fuzzy brand code-or-name hint.
I
Clear selection & offers (keeps workspace buffer).
CLEAR
Clear everything — selection, offers, and workspace buffer.
Passengers
-DOE/JANE MS
Add adult passenger. Format: -SURNAME/GIVEN TITLE.
-DOE/TIMMY MSTR
Add child passenger.
@DOB01JAN1980
Date of birth (last passenger).
@P1/DOB01JAN1980
Date of birth for a specific passenger.
@M / @F
Gender (last passenger).
@PAXTEL+15551234567
Phone number (last passenger).
@PAXEMAIL/jane@example.com
Email (last passenger).
@P1/DOCPP/USA/123456789
Passport for passenger 1. DOCID for ID card, DOCVI for visa.
@P1/KTN/123456789
TSA PreCheck Known Traveler Number.
XP1
Delete passenger 1.
Seats & services
Seats
$MAP
Show seat map for current segment.
$MAP1
Seat map for a specific segment.
$P1/12A
Queue seat 12A for passenger 1. Commit with ER.
$P1/X
Remove a passenger's seat.
Special service requests (SSRs)
!P1/VGML
Vegetarian meal for passenger 1.
!P2/WCHR
Wheelchair for passenger 2.
!P1/S2/WCHR
Wheelchair, segment 2 only.
!P1/PETC
Pet in cabin.
Ancillaries & services
+BAG1/25KG
Add 1 bag (25kg) for last passenger.
+P1/BAG1/25KG
Add bag for a specific passenger.
+P1/LOUNGE
Add lounge access.
SERVICES
List all available services.
SERVICES/3
Purchase service #3.
SERVICES/P1/3
Purchase service #3 for passenger 1.
Loyalty programs
%P1/UA/123456789
United MileagePlus for passenger 1.
%AA/987654321
American loyalty number for the last passenger added.
Loyalty applies to the passenger's whole itinerary. If it changes after shopping, priced offers are cleared and WP re-shops with the current account.
Pricing
WP
Price all offers for current selection.
WPE / WPB / WPF
Cabin-specific pricing: economy, business, first.
WP/AC*CORP123
Price with corporate account code.
WP/CT*CONTRACT456
Price with negotiated contract ID.
WP/PC*SAVE50
Price with promotion code.
WP/RBD*J
Price in a named booking class — reaches fares the brand ladder doesn’t return. Works on new bookings and order changes.
WP/RBD*T+R
One class per bound, in bound order (a connection counts as one bound).
WP/AC*CORP1/PC*PROMO
Combine qualifiers.
?FR1
Fare rules for priced offer 1. Omit the number for the current offer.
?PEN1
Change and cancellation penalties for priced offer 1.
?BAG1
Baggage allowance for priced offer 1.
?SVC1
Included services for priced offer 1.
Booking
1ER
Book offer 1 and hold; on an exchange, accept on hold where supported.
1ETR
Book or exchange, ticket immediately, and retrieve.
ER
End & retrieve — commit current changes and display the order.
E
Commit current changes without redisplaying the order.
ET
Commit and ticket.
ISSUE
View the pending ticket, EMD, and held-exchange cart. Changes nothing.
ISSUE/ALL
Pay and issue everything pending.
Orders
*ABC123
Retrieve order by ID.
*-DOE/JANE
Retrieve most recent order by passenger name.
*
Display current order.
*I
Display itinerary only.
*PAX
Display passengers only.
*L / *LIST
Open the orders panel — filter by status, airline, passenger, or date inside the panel.
*H
Show order history (version trail).
Modify orders
No "change mode" required. Retrieve the order, make modifications, commit with ER.
X1
Delete segment 1.
X1/2/3
Delete multiple segments.
X1-3
Delete a range.
XA
Delete all segments.
IR
Ignore changes and retrieve original order.
Cancel, void, refund & credit
Every command is guarded before confirmation. A carrier quote is shown where available; otherwise the amount is explicitly labelled as a stored-fare estimate.
CANCEL
Cancel current order. Shows the available reversal details, then prompts Y/N.
VOID
Void tickets. Validates void window; rejects if outside.
REFUND
Refund tickets, keep flights active.
CREDIT
Cancel flights, retain ticket credit for future use.
CANCEL/EMD/1
Refund a specific ancillary service line while keeping the flights and tickets.
D1
Split passenger 1 into a new order.
| Command | Flights after | Tickets after |
|---|---|---|
CANCEL | Cancelled | Voided / refunded |
VOID | Active | Voided (full refund) |
REFUND | Active | Refunded (may have penalty) |
CREDIT | Cancelled | Credit retained |
Complete workflows
Simple one-way booking
15NOVJFKLAX # Search flights
1 # Select flight 1
-DOE/JANE MS # Add passenger
@PAXTEL+15551234567 # Add phone
WP # Price offers
1ER # Book offer 1 and commit
Round-trip with services
15OCTJFKLAX # Search outbound
1 # Select outbound
20OCTLAXJFK # Search return
2 # Select return
-DOE/JANE MS # Add passenger
@DOB01JAN1980 # Date of birth
@F # Gender
$P1/12A # Select seat for passenger 1
!P1/VGML # Vegetarian meal
+BAG1/25KG # Add baggage
WP # Price
1ER # Book
Corporate booking with immediate ticketing
15NOVJFKLAX # Search
1 # Select
-DOE/JANE MS # Add passenger
WP/AC*CORP123 # Price with corporate account
1ETR # Book, ticket, retrieve
Change flight date
*ABC123 # Retrieve order
X1 # Delete outbound segment
22NOVJFKLAX # Search new date
1 # Select new flight
WP # Price reshop offers
1ER # Accept on hold, where supported
ISSUE/ALL # Settle and issue replacement tickets
# Or use 1ETR to accept and ticket in one workflow
Cancel
*ABC123 # Retrieve order
CANCEL # Review the sourced amount, then confirm Y/N
Multi-airline booking with different FFNs
15NOVJFKMIA # JFK to Miami
1 # Select AA flight
17NOVMIAPTY # Miami to Panama City
2 # Select CM flight
-DOE/JANE MS
@DOB01JAN1980
%P1/AA/123456 # File P1's AAdvantage number
%P1/CM/789012 # File P1's ConnectMiles number
WP
1ER
Quick reference
Search & select
15NOVJFKLAX
15NOVJFKLAX/SHOP
15NOVJFKLAX/AA
1
1/2/3
I
CLEAR
Passengers
-DOE/JANE MS
@DOB01JAN1980
@PAXTEL+15551234
@P1/DOCPP/USA/123
$P1/12A
!P1/VGML
+BAG1/25KG
Price & book
WP
WP/AC*CORP1
1ER
1ETR
ISSUE
ISSUE/ALL
ER
Orders
*ABC123
*L
CANCEL
VOID
REFUND
CREDIT
D1
Modify
X1
XA
IR
ER
Navigation
NEXT / PREV
#1 / #2
#NEW
#LIST
Ready to use these commands?
NDCTerm is in limited release. Tell us how you'd use it and we'll be in touch.
Request Access