Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

377
Views
Unable to create transfers from payment_Id using razorpay route service

This is my backend code build using nestJs framework.

transferOrder = async (amount: number): Promise<any> => {
    const razorpayInstance = new Razorpay({ key_id: process.env.LIVE_PAYMENT_KEY_ID, key_secret: process.env.LIVE_PAYMENT_KEY_SECRET });
    try {
      return await razorpayInstance.payments.fetch({
        id: "pay_IWasxxxxxNeRmo",
        transfers: {
          id: "pay_IWasWEFzoNeRmo",
          account: "acc_HjRGxxxxxI0jI",
          amount: amount,
          currency: "INR",
          notes: {
            name: "Gaurav Kumar",
            roll_no: "IEC2011025"
          },
          linked_account_notes: [
            "branch"
          ],
          on_hold: 0,
        }
      })
    } catch (error) {
      if (error) {
        console.log(error);
        throw error;
      }
    }

When I excecute this code am getting an error. I am not sure if am passing the payment_id correctly or not but I tried everthing possible but still getting the same error.

The error I am getting

{
  statusCode: 400,
  error: {
    code: 'BAD_REQUEST_ERROR',
    description: 'The id provided does not exist',
    source: 'business',
    step: 'payment_initiation',
    reason: 'input_validation_failed',
    metadata: {}
  }
}

Please help me to fix the issue

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!