Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Login issue with .net api login request

    C#/.Net SDK
    3
    5
    19
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mhaiskar.omkar21 last edited by

      Hello Support

      I am trying to create api for fetching data to send order but while making login request token is not getting generated getting below response

      Request model
      URL : https://apiconnect.angelbroking.com/rest/auth/angelbroking/user/v1/loginByPassword
      request: {"ClientCode":"XXXXXXXXXX","password":"XXXX","TOTP":"XXXXXX"}

      respose ok

      error Message invlidtoken
      errorcode AG8001

      but with the same input if i call through pythom it is working why it is not working with .net code

      Pooja

      B 1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        @mhaiskar-omkar21 there might be some issue in your .net code. You can test the API via postman.

        M 1 Reply Last reply Reply Quote 0
        • M
          mhaiskar.omkar21 @admin last edited by

          @admin said in Login issue with .net api login request:

          de. You can test the API via postman.

          tried with Postman but getting same error.

          1 Reply Last reply Reply Quote 0
          • B
            blackdream @mhaiskar.omkar21 last edited by

            @mhaiskar-omkar21 check Header Parameters ? it should be follow as per https://smartapi.angelbroking.com/docs/ResponseStructure

            1 Reply Last reply Reply Quote 0
            • A
              admin last edited by

              @mhaiskar-omkar21 as mentioned by blackdream, please check the other parameters in the login API. It is working fine.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post