Getting startedCreating a SAPI+ connection

Creating a SAPI+ connection

Generate Client ID and Client Secret, select companies and securely save credentials and Webhook Secret.

To connect your accounting or ERP system to Doklado, you need Client ID and Client Secret. You generate them in the web application in the section Account overview → SAPI+ connections.

If you also enter the URL of the webhook when creating it, a Webhook Secret will also be generated for you to verify notifications.

Before starting

A valid Doklado subscription is required to create a SAPI+ connection

Log in to the environment for which you are creating credentials:

EnvironmentWeb app
Sandbox for testingefaktura-sandbox.doklado.sk
Productionapp.doklado.sk

For the sandbox, first complete the SAPI activation+. Prepare a link name and decide which companies your system should have access to. If you want webhooks, get their URL from your system administrator or vendor.

In Account overview select SAPI+ connections. Then click on + New Link in the top right.

Account overview: SAPI+ links section and New link button
Account overview: SAPI+ links section and New link button

In the mandatory field Link Name, write a name that will help you recognize it later. For example Accounting system – company ABC or ERP – group of companies.

The title is for your review. It is not a Client ID or a password.

3. Decide if you want webhooks

The field URL for receiving notifications (webhook) is optional.

  • Do you want to receive notifications on your system? Enter the URL provided to you by its administrator or supplier, for example https://your-system.example/webhooks/doklado.
  • Not using webhooks yet? Leave the field empty. You can load received documents via API.

This field includes the base address in your system to which Doklado should send notifications. For document notification Doklado is supplemented by /{documentId}, for example https://your-system.example/webhooks/doklado/doc_01HX0000000000000000000000. The receiving endpoint must support this path. Do not enter the Doklado web application address here.

A custom HTTP header can also be added to webhook requests, for example the API key of the receiving system. Details of URLs, headers and signature verification can be found in the Webhooky.

If you fill in the URL, the Webhook Secret will be generated along with the client credentials.

4. Select companies

Only companies with activated eInvoice are displayed in the list. One company can only have one SAPI+ connection. Before creating a new connection, check that the company is not already assigned to an existing connection. This rule also applies when selecting a group or all companies.

If you do not see your company, check the eInvoice activation.

Determine which of these companies the link will have access to. The option Access to all Companies also applies to companies with activated eInvoice:

You need access to…What to choose
To one companySearch for a company and check it in the list.
To a group of selected companiesCheck all companies that the link should use.
To all companiesTick it Access to all Companies.

For example, if linking only for company ABC, select only company ABC. If one system processes both ABC and XYZ companies, select both.

Before proceeding, check the title, the possible webhook URL and the selection of companies.

Creating a SAPI+ link: name, webhook URL and company selection
Creating a SAPI+ link: name, webhook URL and company selection

5. Generate credentials

Click Generate New Link. In the next step, the generated data will be displayed:

DataWhat is it for?
Client IDIdentifies your connection. When you get a token, you enter it as client_id.
Client SecretConnection secret key. When you get a token, you enter it as client_secret.
Webhook SecretAppears if you have entered a webhook URL. Your system verifies with it that the notification came from Doklado.

Client Secret and Webhook Secret have a different purpose. Do not replace them when setting up the integration.

6. Save the data before closing the window

Secrets will only be displayed once. Save them safely before clicking Close. Once the dialog is closed, they cannot be displayed again. It will only be possible to reset them.

  1. Copy the Client ID by clicking on the copy icon on the right side of its row.
  2. Copy the secret key with the same icon on the right side of the Client Secret line. Store both data in a secure repository, such as a corporate password manager or your integration's secret data store. The eye icon is used to display the secret value.
  3. If you use webhooks, also save the Webhook Secret.
  4. Note the name of the connection, environment and selected companies for the data.
  5. Only when you have everything saved, click Close.
Generated SAPI+ credentials with a copy icon on the right side of the Client ID line and a one-time secret display warning
Generated SAPI+ credentials with a copy icon on the right side of the Client ID line and a one-time secret display warning

Do not send secret values in regular chat or e-mail and do not attach them to screenshots. If the connection is set up by your system vendor, pass the data to them in a secure way determined by your organization.

If you lose the secret, a reset will be required. Then set the new value in the connected system as well.

What next

With client_id and client_secret saved, proceed to First call to SAPI+ to get access token and try loading documents.

If you have set up a webhook, pass its secret to the integration manager to set up webhook authentication. For details on tokens, see Authentication and Tokens.