Industry-Specific Fields for Amex Direct
Travel/cruise industry parameters
The following parameters may be sent with the travel/cruise industry type:
Travel package(required) Specifies whether the travel package includes a flight reservation, car rental, both flight and car, or neither. Must be one of the following four values:
flight
,
car
, flight_and_car
, other
Departure date(optional) Date of departure, in the format
2000-12-15
Lodging check-in date(optional) Date of lodging check in in the format
2000-12-15
Lodging check-out date(optional) Date of lodging check out, in the format
2000-12-15
Lodging name(optional) Name of the lodging, with a maximum of 20 characters
Example
- Java
TransactionRequest request = new TransactionRequest()
.amount(new BigDecimal("100.00"))
.creditCard()
.number("4111111111111111")
.expirationDate("05/2022")
.done()
.industry()
.industryType(Transaction.IndustryType.TRAVEL_CRUISE)
.data()
.travelPackage("flight")
.departureDate("2000-07-22")
.lodgingCheckInDate("2000-07-22")
.lodgingCheckOutDate("2000-07-25")
.lodgingName("Royal Caribbean")
.done()
.done();
Result<transaction> result = gateway.transaction().sale(request);
Lodging industry parameters
The following parameters may be sent with the lodging industry type:
Folio number(required) Folio number assigned to the itemized statement assigned to this stay. Alphanumeric with a maximum of 12 charactersCheck in date
(required) Date of lodging check in, in the format
2000-12-15
Check out date(required) Date of lodging check out, in the format
2000-12-15
Room rate(optional) The daily room rate, in the same format as the transaction amount. This field is optional
Example
- Java
TransactionRequest request = new TransactionRequest()
.amount(new BigDecimal("100.00"))
.creditCard()
.number("4111111111111111")
.expirationDate("05/2022")
.done()
.industry()
.industryType(Transaction.IndustryType.LODGING)
.data()
.folioNumber("ABC123")
.checkInDate("2000-12-22")
.checkOutDate("2000-12-25")
.roomRate("10.00")
.done()
.done();
Result<transaction> result = gateway.transaction().sale(request);