• Developers
  • Sandbox setup

@Sander#151545

I saw that but:

  1. Tinker is not working, see https://github.com/bunq/tinker_java/issues/16
  2. It doesn't show how to create multiple users in the sandbox.

Like I mentioned in my question, using the CURL command I can create multiple users, but how do I know what the credentials are?

    @Lars-Indigo-Zebra#151551 if Tinker doesnt work then it's up to bunq to fix it I guess. The login code etc are always the same but you need the email/phone number as well. 🤷‍♂️

      @Lars-Indigo-Zebra#151544 The simplest way is to use the Postman collection:
      https://github.com/bunq/postman
      More information here: https://medium.com/bunq-developers-corner/the-bunq-api-starters-guide-6ce56b12d370

      You can use the phone number or e-mailaddress from the /v1/userendpoint response-data to login in the Sandbox app.
      The default login code is 000000
      Download Sandbox app: https://appstore.bunq.com/api/android/builds/bunq-android-sandbox-master.apk

        Hi @Bastiaan#151561

        Thanks, I know. I need more than one sandbox user. Is that possible in your setup?

          @Lars-Indigo-Zebra#151569 You can create multiple "Environments" in Postman, for multiple API-keys.
          And you can add multiple bunq users in the Sandbox app.

            And you can add multiple bunq users in the Sandbox app.

            Have you tried this? I can't get it to work. All (fake) phone numbers I add are either invalid or already used, so I can't get past that screen.

            Also, the thing is that according to the bunq documentation I can just add users via the curl endpoint. That seems to work, only I have no idea what the (generated) credentials are...

              @Lars-Indigo-Zebra#151574 You can get the phone number or e-mail address to login via the /v1/user endpoint.
              This phone number and e-mail address are inside the alias object. Use one of this aliases in combination with the login code 000000 to login in the Sandbox app.

              You can add multiple users to the Sandbox app, I've tested this today

                @Bastiaan#151607

                You can add multiple users to the Sandbox app, I've tested this today

                Weird, when I try this it keeps asking for confirmation codes after I add the new users phonenumber. How did you get past that screen?

                  @Lars-Indigo-Zebra#151616 You're sure you choose the option to login, and not the signup?

                  You can click on Login and enter the phone number + login code (000000).
                  In the case it asks for a confirmation code, you can enter 992266

                    @Bastiaan#151618

                    I think we are talking about two different things here. I need multiple users in the sandbox and are unable to create that using thinker. I can login with a single user, that works. When trying to create an extra user and loggin in with the new email I am stuck at account verification.
                    So how did you create more than 1 user in the sandbox and are able to login with them?

                      @Lars-Indigo-Zebra#151771 You can use the endpoints for sandbox user creation: /sandbox-user-company and /sandbox-user-person.

                      The response body contains the API key of the newly created test user. Use it to create an API context and then read the user info via GET /user. You can log in to the sandbox app using either the phone number or the email address you’ll find returned to the request. Use 000000 as the login code. You won't need to go through the sandbox onboarding flow in this case.

                      You can create many users this way and log all of them in to the sandbox app.

                        @lexy-Blue-Panda#151776 With api context you mean an installation token and device server? Because that quite a hassle to setup on a single dev laptop

                          @Lars-Indigo-Zebra#151777 To setup multiple I mean

                            @Lars-Indigo-Zebra#151777 Yes. You can do it in Postman. It only takes 1 minute per user :)

                              @lexy-Blue-Panda#151802 Ok will try. Thanks

                                @Lars-Indigo-Zebra#151771 I think we're talking about the same thing (create multiple Sandbox accounts and use them in Postman and/or the Sandbox Android app).

                                But looks like Lexy already answered your question 👍👍

                                  Write a Reply...