While implementing API calling in .Net Application Error showing :
"The remote server returned an error: (400) Bad Request"
Here is the Code
Dim req As WebRequest = Net.WebRequest.Create("https://www.knowyourgst.com/developers/gstincall/?gstin: GST NUMBER")
req.ContentType = "application/json;"
req.Method = "GET"
Dim response As HttpWebResponse = TryCast(req.GetResponse(), HttpWebResponse)
Please suggest ASAP
On developers homepage, examples are given for different languages we generated using Postman.
I will suggest to try API in postman and generate code from there.
Unfortunately .NET is alien to me.
Please note, you have pasted API_KEY in your question. You cannot change API_KEY, so create a different account and never disclose your API_KEY at any place.
I have edited question.
Sign up to discuss taxation, accounting and finance topics with experts from all over India.Join Discussion