File Format
All files, uploaded to the FTP, are required to be submitted as a single pipe-delimited text file in CSV format. To reduce the size of the file and ensure its integrity, the file should be archived by any standard ZIP client with no password protection applied. The resulting ZIP file has to be placed in
/inbox folder for processing. For cases when the user interface is used for file uploading, a file format can be either CSV or ZIP.
If a zipped file contains any sensitive information, it can be additionally encrypted using PGP algorithm. Files are encrypted with a public key that you can request from the gateway support team. If the file is encrypted,
.pgp is added after file extension. To learn more about batch file encryption, see
integration notes.
After a file is uploaded to the FTP server, it gets processed by the gateway and submitted to a processor. When the response is received from the processor, it is imported to the gateway and a corresponding response file is generated. The response file, which is a ZIP archive with a compressed CSV file inside, can be downloaded from the
/outbox folder. The response has the exact same name as the request file.
If the request file is damaged, the system generates
Parsing Error File. If the file contains validation errors, the system generates
Validation Error File. Both files have CSV format and are placed in
/outbox folder after being generated. Note that if an error file is generated, your request file is rejected, transactions are not processed and a response file is not received.
File Name Convention
File names consist of the following parts:
- name of the file that can be anything that integrator desires. Can be a combination of letters, digits and dots. It is recommended to include a timestamp in yyyyMMdd or yyyyMMddHHmmss format as part of this name (for example, 20150930);
- suffix that corresponds to the type of a file (for example .returns, .au, .capture, etc);
- file extension (for example .csv, .zip, .zip.pgp).
Names of the ZIP file and included CSV file are required to match. Examples of the names can be reviewed in the table below.
Submission Date and Time (optional):
|
Sept 30th 2015 at 5:46 AM
|
Request File
|
Request CSV (pipe) File Name:
|
monthly_billing_201509300546.csv
|
Request ZIP File Name:
|
monthly_billing_201509300546.zip
|
Request PGP File Name:
|
monthly_billing_201509300546.zip.pgp
|
Response File
|
Response CSV (pipe) File Name:
|
monthly_billing_201509300546.csv
|
Response ZIP File Name:
|
monthly_billing_201509300546.zip
|
Response PGP File Name:
|
monthly_billing_201509300546.zip.pgp
|
Parsing File
|
Parsing Error File Name:
|
monthly_billing_201509300546.error.csv
|
Validation Error File
|
Validation Error File Name:
|
monthly_billing_201509300546.validation.csv
|
Account Update File
|
Account Update CSV (pipe) File Name:
|
account_update_20150930.2001.au.csv
|
Account Update ZIP File Name (by account):
|
account_update_20150930.2001.au.zip
|
Account Update PGP File Name:
|
account_update_20150930.2001.au.zip.pgp
|
Subscription File
|
Subscription CSV (pipe) File Name (by account):
|
subscription_20150930.2001.subscriptions.csv
|
Subscription ZIP File Name (by account):
|
subscription_20150930.2001.subscriptions.zip
|
Subscription PGP File Name (by account):
|
subscription_20150930.2001.subscriptions.zip.pgp
|
Returns File
|
Returns CSV (pipe) File Name (by merchant):
|
20150930.1.2000.returns.csv
|
Returns CSV (pipe) File Name (by account):
|
20150930.1.2001.returns.csv
|
Returns ZIP File Name (by merchant):
|
20150930.1.2000.returns.zip
|
Returns ZIP File Name (by account):
|
20150930.1.2001.returns.zip
|
Returns Account Update File
|
Returns Account Update CSV (pipe) File Name (by merchant):
|
20150930.2000.returns.au.csv
|
Returns Account Update CSV (pipe) File Name (by account):
|
20150930.2001.returns.au.csv
|
Returns Account Update ZIP File Name (by merchant):
|
20150930.2000.returns.au.zip
|
Returns Account Update ZIP File Name (by account):
|
20150930.2001.returns.au.zip
|
Returns Subscription File
|
Returns Subscription CSV (pipe) File Name (by merchant):
|
20150930.2000.returns.subscriptions.csv
|
Returns Subscription CSV (pipe) File Name (by account):
|
20150930.2001.returns.subscriptions.csv
|
Returns Subscription ZIP File Name (by merchant):
|
20150930.2000.returns.subscriptions.zip
|
Returns Subscription ZIP File Name (by account):
|
20150930.2001.returns.subscriptions.zip
|
Capture File
|
Capture CSV (pipe) File Name:
|
20150930.capture.csv
|
Capture ZIP File Name:
|
20150930.capture.zip
|
Capture PGP File Name:
|
20150930.capture.zip.pgp
|
Charges File
|
Charges CSV (pipe) File Name:
|
20150930.charges.csv
|
Charges ZIP File Name:
|
20150930.charges.zip
|
Charges PGP File Name:
|
20150930.charges.zip.pgp
|
Charge Payments File
|
Charge Payments CSV (pipe) File Name:
|
20150930.payments.csv
|
Charge Payments ZIP File Name:
|
20150930.payments.zip
|
Charge Payments PGP File Name:
|
20150930.payments.zip.pgp
|