• Developers Ask the Community
  • How can I create API key for production environment through SDK?

@Made4China-Service-B-V#93877 I still barely understand what you are asking. Can you please try in Dutch when possible (as it seems you have a Dutch company..)

In case users register on your platform then you can create a payment request at bunq for a specific account. Step by step;

  • user registers
  • you initiate a request at bunq to a specific account
  • you forward a URL or QR to the request which the user can pay in his browser
  • you verify the payment (polling or using webhooks)
  • you do whatever else you want to do in your platform.

Again, I'm just guessing, I have no clue what you are trying to build / achieve so it is kinda impossible to help you like this. It sounds like you're building some kind of checkout register. But I can be completely wrong there. 😅🤔

    @Sander#93901
    Bedankt voor je hulp.
    Ik wil bereiken, is de toepassing van de gebruiker door middel van de registratie van mijn platform, gebruik kunnen maken van mijn bunq rekening te betalen - sa - code, en ik kan het in mijn platform aangewezen deze gebruiker kunnen gebruik maken van de valuta 's die rekening is.

      @Made4China-Service-B-V#93936 Then the above steps are a high level description of what you want I think. Initiate a Request and forward the details to the user, then verify (polling or webhook) whether it was paid. 😁👍

        Hi,
        Please be informed that I am trying to build up an app that allows my colleagues to access my business account and make online payment. With the API, the one who is authorized on the app now can access the details of my business account. However, he/she can not make the payment by scanning the QR code. How to enable the authorized person to pay online by scanning or how to get the payment information (e.g., amount, account number, receiver) out of the QR code?

          @Bastiaan#94088
          Hi
          when I send a request for'/ user/{userID}/ token-qr-request-ideal', I prompt "Insufficient authentication" for what reason.
          Thank you for your answer.

            @Made4China-Service-B-V#94080 how did you give access to your colleagues? With a limited access Connect? In that case your colleagues can't approve online payments but only make drafts that the person with full-access still needs to authorize. When your colleagues set up a draft payment then you can have that accepted through the API by means of requesting all pending requests and approving the particular request. I'm not sure whether this also works for iDEAL payments though.

              @Sander#94095

              Is it possible for all bunq accounts to invoke the " / user / {userID} / token-qr-request-ideal" interface? What permissions or specific accounts do not need to apply to bunq to use this interface?

                @Made4China-Service-B-V#94104 updating the status of the request is not possible for those that can not make payments from the account. (hence I asked what type of Connect you're using). It might be that you're trying to use Limited Connect, which does not allow to make payments as far as I know.

                  @Made4China-Service-B-V#94080 Heb je die collega toegang gegeven via bunq of niet?

                  Want wellicht begrijp ik het verkeerd, maar het klinkt namelijk heel erg alsof je zelf een app wil maken die je collega's kunnen gebruiken om betalingen voor jou te doen zonder dat ze zelf een bunq account hebben met toegang tot jouw rekening. Met andere woorden een app om op alternatieve wijze toegang tot jouw rekening te geven.

                    @Made4China-Service-B-V#94125 Now our app allows the authorized user to manage the accounts and to make online payments but no scanning(QR code). When we try to pay by scanning, it always returns a warning saying “insufficient authorization”. What’s the reason raising this bug? How to fix it?

                      @Sander#93826 Volgens mij zegt bunq zelf altijd dat de app gemaakt is op de API en in theorie moet het volgens mij best kunnen.

                      Waarschijnlijk moet je aan de hand van de QR eerst informatie opvragen bij bunq (bedrag, omschrijving en dergelijke) en dan kan je daarna bevestigen met het rekeningnummer waar het geld van afgeschreven kan worden.

                      Ik zou niet weten waarom dat per se via de bunq app zou moeten gaan. Maar ik ken de API van bunq niet goed genoeg om te zeggen welke endpoints je dan moet gebruiken.

                        @Made4China-Service-B-V#94126 You can automatically create a payment request in the bunq app based on the token in the iDEAL QR-code, via the token-qr-request-ideal endpoint. After this you can reject or approve this request via the request-response endpoint.

                          @JeroenE#94139 Dat kan ook prima. Mits de API gebruikt wordt zoals hij bedoeld is. Als iemand met limited connect een api key genereert dan heeft die api key ook limited mogelijkheden op dat account. Als ik in de App geen rechten heb om een betaling te autoriseren dan in de API ook niet uiteraard. Vandaar dat ik al enige posts probeer uit te zoeken wat de context van het probleem is, maar so far is het mij nog niet echt duidelijk wat de huidige opzet nu is. Het klinkt mij in de oren als een verkeerd account dat de handelingen uitvoert, maar dat is puur giswerk vanaf mijn kant van het internet. 😅

                            @Made4China-Service-B-V#94126 You receive this error when, for example, the request header "X-Bunq-Client-Authentication" is missing or containing an invalid value (wrong token).

                              @Sander#94265 Zoals ik het begrijp is er helemaal niemand met een API key behalve de eigenaar zelf. Die is nu bezig een app te maken om zijn rekening(en) te laten beheren door anderen.
                              Wellicht omdat je via de API key van bunq alleen read-only of volledige toegang tot alles kan geven. En niet alleen toestemming voor rekening X of tot maximaal bedrag Y etc.

                              Wat natuurlijk op zich ook niet uitsluit dat hij zelf een verkeerde API key zou hebben. Maar omdat hij aangeeft dat gewone betalingen wel lukken neem ik even aan dat hij toch al gebruik maakt van een API key met volledige toegang.

                                @Bastiaan#94268
                                I seem to understand, but where is the "X-Bunq-Client-Authentication" obtained from "BunqContext"? I tried to install tokens, session tokens, and there will be 401 or 403 errors.

                                  @Made4China-Service-B-V#94549 See doc.bunq.com (section about Headers) for a description of all required headers and what data you should supply. 🙂