Skip to main content

3. NPS-NCS Clearing File Specification

3.1 Introduction

NPS National Card Switch (NPS-NCS) Clearing File Specification is designed to streamline the transmission and processing of transaction data between participating members, ensuring seamless interoperability and efficiency in clearing and settlement operations. By establishing a uniform set of data formats, protocols, and procedures, this specification facilitates smooth communication and reconciliation of transactions, thereby enhancing the overall reliability and integrity of the payment ecosystem.

3.2 File Naming Convention

Clearing file will be CSV and XML format.

• NCHLRAWDATABankA20241101.C1.csv

• NCHLRAWDATABankA20241101.C1.xml

Where,

 NCHLRAWDATA- Static text, since this file contains raw data hence named NCHLRAWDATA.

 BankA- Short name of member bank.

 20241101- Date in YYYYMMDD format.

 C1- File processing cycle.

 Csv /.xml- file extension.

3.3 File Header

Clearing file transaction details are separated by new line while the fields are separated by caret (^).

Note: In order to prevent duplicate processing of same file, combination of member id, file generated date and cycle value will be maintained as unique constraint.

FieldDescriptionMax LengthData TypeValue
MTIMessage Type Identifier4Number1644
Function code3Number601
Reversal IndicatorIdentifier if file is original or reversal1StringO - Original R - Reversal
Member IdId of member bank to which file is being sent11Number
File Generated DateDate on which file is generated8Number - YYYYMMDD
CycleNumber of files generated on that day2Number
File Type IdentifierFile type identifier to identify whether file is incoming or outgoing1StringI - Incoming O - Outgoing
Processing ModeIndicates whether file is test or production1StringP - Production T - Test

Table 1 : Clearing File Header

3.4 Batch Header

Batches are categorized using transaction Codes (please refer 5.4 for detailed transaction codes). Each batch header starts with MTI 1664 and field are separated by caret (^).

FieldDescriptionMax LengthData TypeValue
MTIBatch Identifier4Number1664
Function codeIdentifier3Number601
Batch Sequence NumberSequence Number for each batch8Number
Transaction codeIndicates Transaction Type2Numberrefer 5.4

Table 2: Clearing Batch Header

3.5 Transaction Field Detail

Transaction details will have below fields:

FieldDescriptionMax LengthData TypeValue
MTIMessage Type Identifier4Number1240
Function code3Number
Processing CodeDescribe the effect of transaction on customer account and type of accounts affected6Number
PANPrimary account number of customer OR identifier for PAN (Tokens)19Number16- or 19-digit number
Approval CodeApproval code is a code authorizing institute assigns indicating approval6Alphanumeric
Retrieval Reference NumberUnique number to identify the transaction12Number
Acquirer Reference NumberData that Acquirer provide in message that is used by Issuer in a subsequent message or in complete life cycle of transaction23Number
MCCMerchant category code4Number
Transaction Date and TimeDate and time when transaction happened14Number YYYYMMDDHHMMSS
Terminal IdId of terminal on which card is used16Alphanumeric
Terminal Name and LocationName and Location of terminal100Alphanumeric
Transaction AmountAmount in currency in which transaction happened12Number with 2 decimal places
Transaction Currency CodeCurrency code of transaction amount3Number
Settlement AmountTransaction Amount is converted into settlement amount12Number with 2 decimal places
Settlement CurrencyCurrency code of settlement amount3Number
Card holder billing amountTransaction Amount is converted into issuer’s designated billing amount12Number with 2 decimal places
Card holder billing currencyCurrency code of card holder billing amount3Number
Settlement Conversion RateRate used to convert transaction amount into Settlement Amount8Number
Card holder billing Conversion RateRate used to convert transaction amount into Card holder billing amount8Number
Forwarded byMember Id who forwarded the transaction8Number
Received byMember Id who received the transaction8Number
Acquirer IdMember Id of Acquirer8Number
Issuer IdMember Id of Issuer8Number
Settlement DateDate on which transaction settled by the interchange8Number YYYYMMDD
Message Reason CodeReason for sending the message2Number
Member Message TextAdditional information about the transaction100Alphanumeric
Document IndicatorIndicates whether document is sent to support the transaction or not1Number0 - No document sent 1 - Document sent
Fee Type IndicatorIndicator whether Fee is Credit or Debit to the receiving member1StringC - Credit D - Debit
Fee Transaction AmountFee in transaction currency12Number with 2 decimal places
Currency Code for Fee TransactionCurrency code for Fee Transaction Amount3Number
Fee Settlement AmountFee in settlement currency12Number with 2 decimal places
Currency Code for Fee SettlementCurrency code for Fee settlement Amount3Number
Additional AmountAdditional amount of tips/surcharge or currency fluctuation12Number with 2 decimal places
Additional Amount SignSign of additional Amount1StringC - Credit D - Debit
Issuer Member NameShort name of issuing member9String
Acquirer Member NameShort name of acquiring member9String
Card Present (CP) IndicatorIndicates whether transaction is CP or CNP1Number0 = CNP 1 = CP 8 = Unknown
Terminal CapabilityIndicates the capability of the point-of-sale (POS) terminal1Alphanumeric 0 = Unknown entry point 1 = Manual entry 2 = Magnetic Stripes read 5 = ICC Read 6 = Key entered at POS 8 = Contactless 9 = Hybrid
ECI IndicatorElectronic Commerce and Payments Indicator1String
Transaction IndicatorIndicator for MIT transaction1String
Original Transaction AmountOriginal transaction Amount in case of partial Chargeback/presentment12Number with 2 decimal places
Transaction IdentifierUnique value to identify a transactionVariesAlphanumeric
ProcessWhether the transaction is issuing or acquiring1Alphanumeric I - Issuing A - Acquiring
Case IdCase Id of dispute20Alphanumeric
Additional DataReserved for future useVaries Not fixedAlphanumericAdditional information related to transaction will be available in this field

Table 3: Transaction Fields

3.6 Batch Trailer

For each batch header, there will be an associated batch trailer. Each batch trailer starts with 1664 and field are separated by caret (^).

FieldDescriptionMax LengthData TypeValue
MTIBatch Identifier4Number1664
Function CodeIdentifier for Trailer3Number602
Transaction codeIndicates Transaction Type2Number
Total AmountTotal of all the transactions inside a batch irrespective of transaction currency20Number
Total CountTotal Number of transactions inside a batch8Number

Table 4: Clearing Batch Trailer

3.7 File Trailer

Each file is closed with a file trailer and contains total records of batches, amount and count.

FieldDescriptionMax LengthData TypeValue
MTIMessage Type Identifier4Number
Function code3Number
Total Batch CountTotal number of batches in a file8Number
Total AmountTotal of all the transactions irrespective of transaction currency20Number
Total CountTotal Number of transactions available in file excluding header and trailer8Number

Table 5: Clearing File Trailer

3.8 Clearing File Sample Transaction

1.File Header

1644^601^O^00000004567^20240402^1^I^T^S

2.Batch Header

1664^601^1^05

3.Record Detail

1240^200^101100^9592605678986058^567345^975568938144^12345678901234 567890123^6011^20240401074516^T001B034B458P503^BANGKOK1 BAAC BANGKOK 001TH^500.00^524^500.00^524^^^^^00000009289^00000004567^00000009289 ^00000004567^20240401^^^0^C^0.00^524^0.00^524^0.00^524^C^BankA^B ankB ^1^5^^^^^A^^

(Additional data for future use)

4.Batch Trailer

1664^602^05^500.00^1

5.Batch Header

1664^601^2^25

6.Record Detail

1240^200^101100^9592605678986058^567345^975568938144^12345678901234 567890123^6011^20240401074516^T001B034B458P503^BANGKOK1 BAAC BANGKOK 001TH^200.00^524^200.00^524^^^^^00000009289^00000004567^00000009289 ^00000004567^20240401^^^0^C^0.00^524^0.00^524^0.00^524^C^BankA^B ankB ^1^5^^^^^A^^

Additional data for future use

7.Batch Trailer 1664^602^25^200.00^1

8.File Trailer 1644^602^2^300.00^2