Collection for API Client Bruno
Bruno is an API client app similar to Postman or Insomnia.
To enable a quick start with our APIs, we have created a collection with all available DATEV data services for this app.
Download the app (usebruno.com)
Quick guide for sandbox:
- Creation of an API client via the DATEV Developer Portal (Organization > Manage Apps) for communication with the DATEV API Gateway
- Installation of the Bruno app & import of the collection
- Configuration of the environment variables for sandbox (e.g. client ID & client secret)
- Selection of the "Sandbox" environment
Token via calls from the "Authentification..." folder Get
Note: OAuth2.0 is currently not directly supported by Bruno, which is why the authentication steps must be run through manually
- "GET 1 Request....for sandbox...": Customize query param "redirect_uri" and "scope" according to subscriptions of the own API client from the DATEV Developer Portal
- "GET 1 Request....for sandbox...": Send request via Bruno (an error will appear) and open the "Timeline" tab in the response area
- "GET 1 Request....for sandbox...":Copy the URL including all query parameters from the timeline and call up the URL via a browser (incognito window recommended)
- The DATEV login page should appear in the browser Selection of point 3 - "DATEV user account"
- Perform authentication with user: "Test6" Password: "bTomu4cTKg"
- The DATEV Consent page should appear in the browser
- After confirming with "I agree", the redirect to the previously specified redirect URL takes place
- In the browser, the authorization code can then be copied from the URL line "...code=123that...9&..." Attention: The authorization code only goes up to the first "&" character
- Paste the copied authorization code at Bruno into the variable "authorization code" from Environment Sandbox
- "POST 2 Request...Token": Send request via Bruno. The generated tokens are automatically written to variables for the selected environment
- "POST 3 Refresh...Token": Can be used to refresh the access token if the first access token has expired (15min)
- Use DATEV data service
- Select the folder with the name of the desired DATEV data service and usually the requests are prepared in such a way that you receive a 200 response