Data Exchange Guide v1.1
Data Exchange Guide v1.1
Guide 2016
The document acts as a guide for Merchants integrated with the
CSC platform and should be used as a reference document for
understanding the usage and process for exchange of data towards User Guide
reconciliation and reporting.
Data Exchange Guide 2016
Table of Contents
Introduction ............................................................................................................................... 3
Summary .................................................................................................................................... 3
Data Security .............................................................................................................................. 4
Encryption Process and Flow ..................................................................................................... 4
Public and Private Keys .......................................................................................................... 4
Public Key Authentication ...................................................................................................... 5
Definitions .................................................................................................................................. 6
Data Exchange Format & Frequency ......................................................................................... 7
ANNEXURE I - IP White Listing Form .......................................................................................... 8
ANNEXURE II – Data Delivery File .............................................................................................. 9
ANNEXURE III – Acknowledgement Return File....................................................................... 10
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 2
Data Exchange Guide 2016
Introduction
CSC e-Governance Services India Limited is a Special Purpose Vehicle (CSC SPV) incorporated
under the Companies Act, 1956 by the Department of Electronics and Information Technology
(DeitY), Government of India, to monitor the implementation of the Common Service Center
Scheme. CSC SPV is connecting local population with the Government departments, banks, and
insurance companies and with various service providers in private sector using IT-Enabled
network of citizen service points.
Summary
As we are growing in terms of number of services and customers with quality of service
provided, CSC SPV is planning to redesign the process of data exchange with its service
providers to streamline the process of sharing daily MIS. For better and effective integration of
services, there should be a standardized format for the Merchant’s Delivery file and
Acknowledgement file shared by CSC SPV. This implementation will establish an automated
data exchange mechanism between CSC SPV and Merchant for better delivery of services and
integration.
This document for transactional data exchange covers Delivery File data exchange format,
Acknowledgement Return File data exchange format and IP White Listing Form. Merchant
should ensure field names of delivery file and acknowledgement return file for facilitating
smoother data exchanges. Merchant needs to provide Server Path with Protocol, Server IP and
Port to secure an efficient data exchange implementation. This implementation will minimize
the chances in mismatch of transactional data and would help to further automate the process.
To be considered valid, the data exchange format must be confirmed and signed by merchant.
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 3
Data Exchange Guide 2016
Data Security
Data Security is a big challenge in today’s cyber world. With the Internet continually growing,
the threat to data travelling over the network increases exponentially. In the current business
environment of increased security regulations as well as heightened security threats by hackers,
secure file transfer has become extremely important and necessary.
In lieu of above, CSC e-Governance Services India Limited allows the option to use encryption in
data exchange implementation as per Encryption Standards.
To ensure end to end data encryption the data is exchanged through SFTP (Secure File Transfer
Protocol). SFTP is based on Secure Shell and automatically applies multiple layers of protection
to the data in transit from eavesdropping attacks.
SFTP securely transfer data—usernames, passwords, and file contents and enables bidirectional
secure data transfer using one port.
SFTP is a network protocol that facilitates file transfer, access and management over a reliable
data stream. It is a secure binary, packet based protocol in which the client and server
communicate with each other in the form of packets.
When a client attempts to establish a connection via SFTP there are two layers that come into
play, these are the Transport & Authentication layers. The Transport Layer handles initial key
exchange, server authentication, determines what encryption algorithm to use, decides whether
to employ compression & performs integrity verification. The Authentication Layer handles
client authentication and employs a number of methods to accomplish this including password
and public-key cryptography.
Authentication and encryption use digital codes called "keys" - a public and a private key. The
public key is used to encrypt messages, and the corresponding private key is used to decrypt
them. It is important to note, however, that despite their symbiotic association, it is virtually
impossible to infer the private key if you know the public key.
The public key has two major functions: validation and data encryption. As its name suggests,
the public key is openly published to any party requesting one of these two functions.
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 4
Data Exchange Guide 2016
The private key on the other hand, is necessary for decrypting the data encrypted by the
associated party. Unlike the public key, this key is closely guarded.
Public-key authentication consists of public-private key pair. The public key is installed on the
server and the private key resides with the user. Messages are encrypted using the recipient’s
public key and can only be decrypted with the associated private key. Note that it is near
impossible to derive the private key using the corresponding public key therefore the security
of the public key authentication mechanism depends largely on the safe keeping of the private
key by the user; if it is lost the user account can be compromised.
The encryption used in data exchange mechanism is as shown in the figure below:
As described in Figure 1, the same process will be carried out in our data exchange process
through SFTP. As stated in the figure, Merchant will encrypt the Data Delivery Files with the
public key of CSC and in return CSC will decrypt the files using its private key.
For acknowledgement Return File, CSC would encrypt the Data File with the Merchant’s public
key and in turn Merchant would decrypt the same file with the help of its private key.
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 5
Data Exchange Guide 2016
Definitions
Acknowledgement Return Transaction report acknowledged by CSC SPV with standard file name
File as per specifications
Merchant Transaction
Transaction Date and Time generated on Merchant platform
Date & Time
CSC User ID/ VLE ID Unique ID of Village Level Entrepreneur generated by CSC SPV
Reason (Optional) Reason in case of failure and reject case. For success append NA
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 6
Data Exchange Guide 2016
For standardization, the data exchange between CSC SPV and Merchant should adhere to a
common and uniform format to enable seamless exchange of data and facilitate automated
reconciliation of the transaction data.
The frequency of data exchange should be highlighted by the Merchant in Annexure I. Merchant
should also indicate about the encryption enablement.
The SFTP folder would be organized as shown in Figure 2, SFTP Server Snapshot.
1. The inbox directory would be the location where the acknowledgement return file
would be stored. Merchant will have only read access in the folder. This will enable the
Merchant to download Acknowledgement Files as on when needed.
2. The outbox directory would be the default location to upload the delivery files.
Merchant will have read/write access in the folder.
3. The readme.txt file will contain the details of the Merchant i.e Merchant ID, Merchant
Name and Creation Date of account.
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 7
Data Exchange Guide 2016
This form has to be filled by the Merchant for white listing the IP of Merchant on the CSC SPV
Server.
Please fill out the form and send a signed and scanned copy to [email protected] /
[email protected]
CONTACT DETAILS
Merchant Name
Contact Person
Designation
Mobile Number
E-mail
Landline Number
DATA SPECIFICATIONS
Frequency [ ] Hourly [ ] Daily [ ] Weekly [ ] Monthly
Encryption [ ] Yes [ ] No
SERVER DETAILS
IP Address
Port
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 8
Data Exchange Guide 2016
Parameter List
S. No. Parameter Name TYPE Parameter Description
1. Merchant ID/Code VARCHAR (5) Unique code assigned by CSC SPV to the
Merchant.
2. Merchant Transaction ID VARCHAR (64) Unique Transaction ID generated on
Merchant platform for each transaction
3. CSC Transaction ID VARCHAR (24) Unique Transaction No. generated on
CSC SPV platform assigned to each
merchant transaction
4. Product ID VARCHAR (12) ID of the product assigned by Merchant
platform
5. Merchant Transaction Date & DATETIME YYYY-MM-DD HH:MM:SS
Time Transaction date from Merchant
platform
6. Date Format VARCHAR (20) Specify the date format whether YYYY-
MM-DD HH:MM:SS or any other format
7. Amount DOUBLE (8,2) Transaction Amount
8. CSC User ID VARCHAR (50) Name/Receipt No/Other Detail for
particular consumer
9. Merchant Transaction Status CHAR(1) Processing status
(S-Success, F- Fail ,R-Reject)
10. Merchant Receipt Number VARCHAR (50) Request ID of Merchant for Transaction
Note:
The serial numbers in sample data Format refers to the S. No. in the Parameter List table.
It is mandatory to store the file with the name as specified in the format.
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 9
Data Exchange Guide 2016
The acknowledgement return file will be shared by CSC SPV with the Merchant, in a pipe
delimited text file. This file will be uploaded by CSC SPV and can be seen and downloaded from
the inbox directory of the SFTP location.
Request Parameters
Note:
The serial numbers in sample data Format refers to the S. No. in the above table.
It is mandatory to store the file with the name as specified in the format.
(C) 2016 CSC E-Governance Services India Limited Version 1.1 Page | 10