Available in🇮🇳 India
Invoice Submission via SFTP
You can automate invoice uploads using Secure File Transfer Protocol (SFTP), enabling streamlined, secure file transfer.Steps to Connect with Razorpay via SFTP
IP Whitelisting
IP Whitelisting
- Only requests from your whitelisted IPs will be accepted.
- Share a list of authorised outbound IPs to enable secure access.
- Maximum of 4 IP addresses can be whitelisted.
- SFTP access will work only from the whitelisted IPs. Attempting to connect from any other IP address will result in connection failure.
Credentials & Access Details
Credentials & Access Details
- Razorpay will provide:
- Hostname:
sftp.razorpay.com - Port:
22 - Username
- Path prefix (based on your
MID)
- Hostname:
- Use your private key (corresponding to the public key you shared) to authenticate while connecting to Razorpay’s SFTP.
- Use an SFTP client to connect.
- Test your connection: Run
telnet sftp.razorpay.com 22to verify connectivity before attempting SFTP access.
How to Share Invoices via SFTP
File Path Format
File Path Format
Use the following folder and file structure:
“/invoiceUpload/automated/< MID >/YYYY-MM-DD/InvoiceNumber.pdf.”
For example:
For example:
/invoiceUpload/automated/MDoeHNNpi0nB7m/2025-05-10/INV_09876.pdfFile Types and Flows
File Types and Flows
Invoice ID Validation Process
Razorpay enforces strong validation rules to prevent duplicate or invalid invoice usage.Successful Payments
Successful Payments
- Status:
Captured - Invoice Action: Permanently blocked
- Note: Same invoice ID cannot be reused.
Failed Payments
Failed Payments
- Status:
Failed - Invoice Action: Released
- Note: Invoice ID can be reused.
Payments in Intermediate States
Payments in Intermediate States
- Status:
CreatedorAuthorised - Invoice Action: Temporarily blocked
- Note: Invoice ID is reusable only after final status (
FailedorCaptured) is reached.
Refunded Payments
Auto-Refunded (Never Captured)
Auto-Refunded (Never Captured)
- Status:
Refunded - Action: Invoice ID is released.
- Note: ID can be reused.
Merchant-Initiated Refund (Post-Capture)
Merchant-Initiated Refund (Post-Capture)
- Status:
Refunded - Action: Invoice ID is permanently blocked.
- Note: Cannot be reused.
AML Screening Process
As per RBI regulations, payments to offshore accounts must undergo AML (Anti-Money Laundering) checks by Razorpay’s Authorised Dealer (AD) Bank.Daily AML Communication
Daily AML Communication
- You will receive daily emails listing transactions flagged for additional details.
- Subject Line:
Additional Details Required - [Business Name]_MDoeHNNpi0nB7m.
Turnaround Time
Turnaround Time
- Share required information within 5 working days to avoid auto-cancellation.
- Information may include: Full name, address, ownership, percentage of ownership, nature of business, purpose of payment, business website, company, date of birth/incorporation, place of birth/incorporation and so on.
Consequences of Delay
Consequences of Delay
Missing TAT results in:
- Razorpay lien-marking the funds or
- Refund initiation via Dashboard/API.
Best Practices for Invoice IDs
To ensure seamless experience and compliance:- Always generate unique invoice IDs per payment.
- Acceptable IDs:
- Razorpay
order_id. - Your internal unique invoice number.
- Razorpay
- Do not reuse invoice IDs for different transactions unless the original payment has failed.