Sale API Request Object

The description of the Sale API request object

You form a Sale API request in standard JSON format. The following tables list the properties of a Sale API request:

Top-Level Properties

PropertyDescriptionData TypeLengthRequiredAllowed Values
eEntryTypeHow you entered the payment method.EnumYESManualCardPresent
Swipe
cardTypeThe type of card that you processed. Currently, only Aircard.Enum7YESAircard
paymentMethodNumberThe AIR Card® number.Varchar50YES
cvvThe AIR Card® Card Verification Value, which you can use for manual card processing.Varchar3NO
cardExpirationDateThe card expiration date in the format of MM/yyyy.Char7YES
softwareVendorThe name of the software vendor transmitting the transaction.Varchar100NO
invoiceThe invoice subobject.ObjectYES

invoice Subobject

PropertyDescriptionData TypeLengthRequiredAllowed Values
invoiceNbrThe invoice number, which must be unique within the context of the FBO.Varchar50YES
originalInvoiceNbrThe number of the original invoice that you are rebilling in this transaction.Varchar50NO
currencyThe transaction currency.Varchar4YESA valid currency code.
eFlightTypeThe flight type associated with the transaction.Enum50NO

Private/Military

Private/Experimental

Private/Cargo

Private/Government

Private/Hazardous
Material

Private/Non
Revenue

Private/Ambulance

Commercial

Charter/Air
Ambulance

Charter/Air
Taxi

Charter/Cargo

Charter/Hazardous
Material

Charter/Military

Charter

Charter/FAR 129
Foreign Air Carrier

invoiceDateThe invoice date in the format of yyyy-MM-dd.Char10YES
invoiceTotalThe invoice total amount. The sum of all line items on the invoice, not including taxes and fees, should match this number, and you must round it to two decimal places.Decimal10,2YES
notesAny transaction notes.Varchar1000NO
captainNameThe name of the captain.Varchar150NO
fromIcaoThe ICAO code of the flight’s origin airport.Varchar4NO
destIcaoThe ICAO code of the flight’s destination airport.Varchar4NO
isDomesticWhether or not the flight is domestic or international. Domestic is considered a flight that has an origin and a next destination within the same country.BooleanNO
tailNbrThe aircraft’s tail number.Varchar50YES
detailsThe details subobject array.ArrayYES

details Subobject (Array)

📘

Important Notes

  • You must send taxes and fees associated with a specific product or service in a taxAndFeesBreakdown subobject array.

  • If you charge a "vendor fee" for non-fuel items, however, you must include this fee in a details subobject and not in a taxAndFeesBreakdown subobject. Also, the gateway validates that the percentage of this fee in relation to the total value of non-fuel items matches the percentage that you specified in your configuration.

  • If you've applied a government discount to a transaction, you must reflect this discount in the difference between the postedPrice and the unitPrice properties.

  • A details subobject can only include one item of type Fuel but can have several non-fuel items.

  • The lineTotal and unitPrice properties can be zero, but the qty property must be greater than zero.

  • If itemCode has a product type of Fuel Related, there must be another item in the details subobject that has a product type of Fuel.

PropertyDescriptionData TypeLengthRequired

Allowed

Values

lineIdA line identifier that a merchant’s POS system generates, which must be unique within the context of a single transaction.Integer1000YES
itemCodeA valid product code.Varchar100YES
VendorProductNameThe name of the product or service provided by the vendor in the POS system.Varchar100YES
flightNbrThe flight number.Varchar50NO
unitOfMeasureThe unit of measure for the item sold.Enum50YESUSG
HL
IMPGAL
KL
Liter
M3
Tons
Each
eProcessingType

The processing type, either Contract or Retail.

If you input an eProcessingType of Contract, the gateway will check if you are under contract for that fuel and related contract products with the airport at the date and time that you have provided in the deliveryDate or in the invoiceDate if deliveryDate has not been specified.

If you are not under contract at an airport for that fuel or related contract product, you cannot send transactions to the gateway if another merchant is under contract at the same airport (though system overrides may apply).

If you are a third-party merchant with an eProcessingType of Retail, you must send the gateway the price of fuel prior to transaction initiation, and the gateway will validate this price in ongoing transactions.

EnumYESContract
Retail
deliveryTicketNumberThe delivery ticket number for fuel products, which must be unique within the context of the FBO.Varchar50Required if the item is a fuel type.
deliveryDateThe date and time the service was delivered, in the format
yyyy-MM-dd HH:mm:ss. The time is optional, but if provided, you must do so in UTC time.
Char19Required if the item is a fuel type.
qtyThe product or service quantity, which can include up to two decimal places.Decimal8,2YES
unitPriceThe unit price of the line item, which can include up to six decimal places.Decimal10,6YES
lineTotalThe line total amount, up to two decimal places. If the product has taxes, you should specify them separately in the taxAndFeesBreakdown subobject array.Decimal10,2YES
postedPriceThe posted price of the line item.Decimal19,8NO
descriptionAny additional descriptive note for the line item.Varchar1000NO
taxAndFeesBreakdownThe taxAndFeesBreakdown subobject array.ArrayNO

taxAndFeesBreakdown Subobject (Array)

📘

Important Notes

  • You cannot include the taxes and fees that have been specified in a taxAndFeesBreakdown subobject in the invoiceTotal property.

  • You can only include taxes and fees that the gateway has approved in a taxAndFeesBreakdown subobject.

  • The lineTotal and unitPrice properties can be zero, but the qty property must be greater than zero.

PropertyDescriptionData TypeLengthRequiredAllowed Values
itemCodeA valid product code.Varchar100YES
VendorProductNameThe name of the product or service provided by the vendor in the POS system.Varchar100YES
eRateTypeWhether the tax or fee is percentage based or fixed per unit.EnumYESPercent
PerUnit
percentThe tax or fee percent. Required only if eRateType is Percent.Decimal5,2NO
eTypeWhether the tax or fee is a sales or cost tax.EnumYESSalesTax
CostTax
qtyShould specify the quantity for which the tax or fee applies, which will usually be the same as the quantity of the product the tax applies to.Decimal10,6YES
unitPriceThe actual tax or fee value, which you should always send in decimal format. So if eRateType is Percent and the tax rate is 6.5%, you should send it as 0.065.Decimal10,6YES
lineTotalThe tax or fee line total rounded to 2 decimal places. Should equal unitPrice * qty.Decimal10,2YES
descriptionAny additional descriptive note for the line item.Varchar1000NO

You can find examples of this request object here.


Did this page help you?