We need to send the username and password(Basic Auth) along with parameters in body and not in URL. We are using the below api https://api.razorpay.com/v1/payment_links/ We