MasonChase

  • Sep 5, 2023
  • Joined Jan 17, 2018
  • Hi-fives: 4
  • Hi

    Is it possible to approve a 3D secure payment by API call?

    Regards
    Mason

    • I must note other banks such as ING, Abn Amro , Rabobank are supporting CAMT53 and CAMT52

      • Swift consider Bunq not compatible and ready for ISO20022 and thus CAMT053 is not available. I'm a big fan of Bunq and I love to see this for automatic accounting.

        CAMT053 and CAMT052 would offer comprehensive and detail information that we can integrate automatic accounting without worry of duplicate transaction, or mismatching of openning and closing balance.

        Unfortunately MT940 does not include these detail information. and if so MT942 is also needed at a given time to split floating transactions and avoid duplicate record in account.

        Regards
        Mason

        • @Bastiaan#91140

          This is a new issue started this morning on bunq server,
          I am making an API call (not an oauth call).

          There was no problem just 30 minutes ago. and I am getting the same error on bunqDesktop

          • Yes, I'm using SDK, the code snippet is coming in a second

            try
            {
            	string ApiKey = JObject.Parse(body).Value<string>("ApiKey");
            	ApiContext apiContext = _oAuth.SetUpApiContext(ApiKey);
            
            	var csvRequest = CustomerStatementExport.Create(
            		"CSV",
            		"2019-05-01",
            		DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"),
            		null,
            		"UK_US"
            	);
            
               BunqResponse<CustomerStatementExport> csv = CustomerStatementExport.Get(csvRequest.Value);
            
            }
            catch (Exception e)
            {
            	_logger.LogError(e.ToString());
            	throw new Exception(e.ToString());
            }

            @MasonChase#91135 I use sdk c#

            • I'm posting a request to /user/{userID}/monetary-account/{monetary-accountID}/customer-statement url, but i get statuscode 500 (internal server error).
              I'm using api-key of sandbox user in sandbox environment fot creating apiContext in order to get user statement.
              I use sdk c# for creating apiContext and getting user statement.

              • [edit]
                Okay, I think I understand that by payment endpoint I extract the entire records and then manually generate the CSV, that seems doable. thanks

                [before-edit]
                Sorry, I am confused, how to make call to payment endpoint and ask for CSV or MT940 statement for a period of time (start/end date) ?

                • @Gregory Do you suggest to use Qr Barcode API key generation? this would mean we will get a full feature api key access to the user's account?

                  • I wonder how accounting softwares are able to fetch statement with bunq if this feature is disabled

                    • Anyone from Bunq can comment on this? Documentation is missing a lot of details
                      even sandbox URL for oauth wasn't listed .

                      • I'm sorry, which oauth endpoint are you referring ? what is the URL?

                        • @Bastiaan#89804
                          if monetaryaccoundit is null, SDK get this from BunqContext.UserContext.PrimaryMonetaryAccountBank.Id.Value in BunqModel abstract that get current monetaryaccountid related tu the main user account that was loaded from :

                          BunqContext.LoadApiContext(apiContext);
                          • Actually, That's not a language UK_US is standard to define dot as decimal separator and comma as digit grouping. I did also try with en_US and null

                            • Hi everyone,

                              I'm getting below error code in sandbox or production mode after user authorized
                              our test/production app by QR barcode scanning,

                              Response id to help bunq debug: 534ccd33-fa4e-4976-8dd8-fc3b2a391227. 
                              Error message: The item you requested could not be found.

                              after getting "access_token" from "/v1/token", we create ApiContext:
                              Below is the code in C#

                              apiContext = ApiContext.Create(ApiEnvironmentType.SANDBOX, access_token, DeviceDescription);
                              
                              BunqContext.LoadApiContext(apiContext);
                              
                              var statement = CustomerStatementExport.Create(
                              	"CSV",
                              	DateTime.Now.AddDays(-3).ToString("yyyy-MM-dd"), 
                              	DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"),
                              	null,
                              	"UK_US"
                               );
                              ```									   
                              And the response is :

                              Response id to help bunq debug: cab70137-8e37-4cfc-bf0b-f2e977296c8b.
                              Error message: The item you requested could not be found.