watch_later 29/11/18

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"
req.Headers.Add("passthrough: API_KEY")
Dim response As HttpWebResponse = TryCast(req.GetResponse(), HttpWebResponse)

Please suggest ASAP

1 Response | Latest response: 10/12/18 | Sort by Likes(thumb_up) Recent | GST Reply
watch_later 10/12/18

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.

JOIN LARGEST DISCUSSION PLATFORM

Sign up to discuss taxation, accounting and finance topics with experts from all over India.

Join Discussion