Batch Upload

While Payment Links is a fairly simple way of collecting payments from your customers, generating them for large volumes of orders can become challenging. Especially if you are a business that accepts majority of its payments through Payment Links and are issuing them as part of your process.

By uploading a batch file that contains the details for a collection of orders, you can generate and process Payment Links in bulk. This saves time and eliminates the hassle of creating multiple individual links.

Batch File Format#

A batch file is a simple .xlsx or .csv file that contains all the necessary details for creating links for a list of Receipt Nos. The required fields for creating a batch file are explained in the table below:

Invoice No. Optional
You must enter a unique number for each link. This is associated with the order created at your back end. This field has a limit of 40 characters.
Customer Name Optional
Name of the customer.
Customer Email Optional
Email address of the customer.
Customer Contact Optional
Contact number of the customer.
Currency Optional
Defaults to INR. We accept international payments for more than 90 currencies.
Amount Mandatory
Order amount in currency subunits. For example, if currency selected is 'INR', then the amount must be in paise.
Description Mandatory
Brief description of the order.
Expire by Optional
Time of expiry for the payment links. Supported formats:
DD-MM-YYYY HH:mm:ss (For example, 14-12-2018 18:45:00)
DD-MM-YYYY HH:mm
DD-MM-YYYY
Partial Payment Optional
Indicates whether partial payments are enabled for your account. Set to 1 to enable partial payments and 0 to disable.

Download a sample batch file.

Note:
The size of a batch file can be up to 10 MB. You can add up to 50,000 rows in a particular file. The links will be processed in the same sequence as listed in the file.

Field names/headers in a batch should not be modified in order avoid an upload failure.

Batch Statuses#

Once uploaded, a batch file moves through two states as shown in the table below:

Status

Description

Created

This is the initial state of a batch. This indicates that the uploaded batch is created in Razorpay's database and is ready to be processed. No processing of payment details is done until this point.

Processed

This is the final state of a batch where payment details are processed and the corresponding Payment Links are ready to be issued.

Learn how to create a batch of Payment Links from the Dashboard.