All element and attribute names are case-sensitive. Use camelCase
exactly as shown in this reference to prevent upload errors.
File structure
The XML I-file uses a four-level hierarchy. The following table describes each level.iFile attributes
The iFile root element accepts the following attributes. Fexco
validates the file against the XSD version identified by
schemaVersion.
merchant attributes
Each merchant element groups all transactions for one merchant ID.
The following table describes the supported attributes.
Device attributes
Eachmerchant element contains one or more device elements: atm,
terminal, or eComm. All three device types support the same
attributes, shown in the following table.
transaction attributes
Each transaction element carries optional attributes that identify the
transaction and its conversion type. The following table describes the
supported attributes.
transaction elements
Each transaction element contains child elements that describe the
transaction amounts, currency, and entry method. Elements must appear in
the order shown in the following table.
The three NE2E settlement fields (
schemeNE2ESettlementAmount,
schemeNE2ESettlementRate, and SchemeNE2ESettlementCurrency) must
all be present or all be absent. Providing only one or two of the
three fields results in rejection code R04.Currency precision
Transaction amount fields must use the number of decimal places defined by ISO 4217 for the transaction currency. The following table lists the decimal places for currencies commonly used in DCC transactions.
For currencies not listed above, apply the decimal places defined by
ISO 4217.
Confirmation file format
Fexco generates confirmation files each time a transaction XML file is submitted. The following table describes each confirmation file.Status file format
The status file contains three lines in the following format.S3 status (invalid XML format), an additional line
appears below the status line in the following format.
Rejections file format
The rejections file uses the same XML structure as the submitted I-file, with arejectionReason element added to each rejected transaction. The
rejections file is encrypted using GPG under the same Payment Card
Industry Data Security Standard (PCI DSS) requirement as the submitted
file.
Status codes
Fexco returns one of the following status codes in the.status
confirmation file after processing a submitted XML I-file.
Rejection codes
Fexco includes arejectionReason code in the rejections file for each
rejected transaction. The following table describes each rejection code.
Sample XML
The following example shows an XML I-file with an ATM DCC transaction, a POS DCC transaction (opt-in), and a POS domestic transaction (opt-out) submitted by two merchants under the same file. The ATM transaction uses a Japanese Yen (JPY) cardholder currency (zero decimal places). The POS transactions show the difference between an accepted and a declined DCC offer.Scheme field mapping
When building an I-file, you need to know which card scheme data elements (Visa and Mastercard) map to each I-file field. Use the mapping page for your channel:Next steps
Use the following resources to continue after reviewing this reference.- Build and submit an XML I-file: follow the step-by-step guide to construct, encrypt, and submit your I-file.
- How transaction import works: review the purpose of transaction import and the daily file cycle.
- Troubleshoot transaction file errors: diagnose and resolve common submission errors.
