Hi
Can anyone provide sample code to upload Eway Bill using GSTZEN Api
Thanks
Hi
Can anyone provide sample code to upload Eway Bill using GSTZEN Api
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Apr 17, 2024, 12:09 PM
Sure, I can help you with that. Here’s a sample code snippet on how you can upload an Eway Bill using the GSTZen API with RestSharp:
Please replace
"Bearer your_api_key_here"with your actual API key. This code will send a POST request to the GSTZen API with the provided headers and JSON body. The response from the server will be stored in theresponsevariable. You can then check the status of the request and parse the response as needed.Thanks
Jayraj ChhayaPosted Apr 17, 2024, 11:02 AM
Hi Ramco Ramco,
Just Deserialize response and check what you get response.
Ramco RamcoPosted Apr 17, 2024, 10:40 AM
Hi
I am getting error httpresponsemessage does not contain a definition for (response.IsSuccessStatusCode)
Thanks
Jayraj ChhayaPosted Apr 17, 2024, 10:22 AM
Hi,
Make sure to replace
"Your_API_Key_Here"with your actual API key provided by GSTZen.