File transfer guide - Batch

What is Batch?

Batch is an app that provides a file based interface to our products. Customers can make a file available to Azupay via their own self-hosted sftp server. A file contains multiple records that will be used to create PaymentRequests, PaymentInitiations or Payments.

Easy to integrate

Leverage your existing sftp infrastructure and file generation applications to integrate with our Batch App.

Secure

Well known, reliable, and secure technology using SFTP (Secure File Transfer Protocol). Using private/public key based authentication, you can be sure that the transfer process is secure.

PayID based payments are inherently secure. Files do not require the inclusion of any customer identification data. No file level or encryption at rest required.

Super fast

We have built a streaming, highly parallelised system for consuming files and invoking the same API’s that we offer you.

Enabling Batch

  1. Login to Client Portal and navigate to Apps
  2. Click the Manage button to open the Azupay Batch configuration
  3. Click or switch the Enable Batch to On and fill in the SFTP server details.
  4. Copy and paste the Public SSH Key to your SFTP server's authorized_keys file.

📘

Batch app polling behaviour

Batch app will poll your sftp server every minute, process a single file and then stop. So, if you place 10 files on your sftp server, it will take at least 10 minutes to process them all.

File Name Specification

Example

  • Example file names:
    • payment-initiation-20211027115901-1-request.csv
    • payment-request-2021102711590100001-request.csv

Specification

AttributeValue
Filename - Inbound File<file-type>-<unique-file-identifier>-request.csv
Filename - Processed<file-type>-<unique-file-identifier>-response.csv
File EncodingUTF-8
New Line CharacterUNIX new line (i.e. \n )
File SizeMaximum 256 MB
Field DelimiterComma character (i.e. , )
Field Value Enclosing CharacterDouble quote (“) or ASCII decimal 34

File Types

We have the following file types

Transaction Typefile-typesuffixdelimitersample request file
Payment Requestpayment-request-request.csvComma (,)payment-request-202202120001-request.csv
Payment Initiationpayment-initiation-request.csvComma (,)payment-initiation-202202120001-request.csv
Payment Initiationpayment-initiation-response.csvComma (,)payment-initiation-202202120001-response.csv
Payment Initiation Refundpayment-initiation-refund-request.csvComma (,)payment-initiation-refund-202202120001-request.csv
Payment Initiation Refundpayment-initiation-refund-response.csvComma (,)payment-initiation-refund-202202120001-response.csv
PaymentpaymentCarriage-return/line-feed (CRLF)202202120001.aba
Paymentpayment-response.abaCarriage-return/line-feed (CRLF)202202120001 -response.aba