Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [API] Can not get Get Customer’s Information using API

    Bug Report
    5
    9
    738
    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.
    • K
      khanhlp last edited by

      I call API endpoint: http(s)://example.com/public/api/customer/get and get error:
      f4118cd7-0073-4557-8de6-6c127df01697-image.png
      Please help me. Thanks

      1 Reply Last reply Reply Quote 0
      • J
        Jyoti last edited by

        @khanhlp
        You need to be login first through api for that customer, after that you can get information of customer.

        K 1 Reply Last reply Reply Quote 0
        • K
          khanhlp @Jyoti last edited by

          @Jyoti I logged in, but can not get information of customer.

          Y 1 Reply Last reply Reply Quote 0
          • J
            Jyoti last edited by

            @khanhlp
            Have you passed content type in header?

            K 1 Reply Last reply Reply Quote 0
            • K
              khanhlp @Jyoti last edited by

              @Jyoti What is the content type in header? I have passed content type as application/json

              1 Reply Last reply Reply Quote 0
              • Y
                yomnademerdash @khanhlp last edited by

                @khanhlp I logged in, but can not get information of customer.

                7cccf43a-df90-4268-8354-42cfbf483518-image.png

                W 1 Reply Last reply Reply Quote 0
                • devansh-webkul
                  devansh-webkul last edited by

                  Hi @yomnademerdash,

                  Can you share me the login api's header and body screenshot.

                  1 Reply Last reply Reply Quote 0
                  • W
                    William Hatanaka @yomnademerdash last edited by

                    Hello, @yomnademerdash
                    Did you manage to solve your problem? If so, could you tell me how you managed to solve it? I have the same problem.

                    1 Reply Last reply Reply Quote 0
                    • devansh-webkul
                      devansh-webkul last edited by

                      Hi @yomnademerdash,

                      I need more information to reproduce this. As from your screenshot, it clearly says authentication is missing. Please log in and pass the latest token to fetch data from the API.

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