Modules · 4 min read
Stripe integrations
Connect Stripe so that documents are issued from supported events, then check the results.
Last updated: 26 November 2026
Pro and aboveBefore setup
Integrations are available from Pro and are managed only by an administrator under Settings → Integrations. You need an active numbering series and a bank account: a new connection uses the default series, and invoices cannot be issued without a bank account.
The integration processes supported Stripe events. It does not mean that every transaction or every type of payment in Stripe automatically becomes an invoice in smetni.ai. An invoice is issued automatically when the paid Stripe invoice carries the customer's tax number, such as an EIK or VAT number. What happens to a payment from a customer without a tax number is your choice: see “Customers without a tax number” below. Payments through Stripe Checkout without a Stripe invoice are recorded as B2C sales, not as a document.
Connect Stripe
- Select Connect Stripe. This creates a connection that is switched off and uses the default series. Change its name and series if needed.
- Copy the connection's Webhook URL with Copy.
- Add the address as an endpoint in Stripe and select the supported events. Events from a Stripe mode other than the one smetni.ai runs in are ignored and shown as a problem on the connection.
- Paste that endpoint's Signing secret into the Signing secret field and select Save.
- Switch the connection on with the switch in its header. The connection cannot be switched on without a stored Signing secret.
Keep the Signing secret confidential. Do not send it in screenshots or ordinary messages to support.
Supported events
| Event | Purpose |
|---|---|
| invoice.paid | Issue an invoice for a paid Stripe invoice. |
| credit_note.created | Issue a credit note against the invoice the integration issued. |
| customer.updated | Update the details of a client already linked. |
| customer.tax_id.created / customer.tax_id.updated | Fill in a missing EIK or VAT number without overwriting one already entered. |
The event must be selected both in Stripe and in the connection's Events section in smetni.ai. Events that are not selected are ignored.
Customers without a tax number
When Stripe has no tax number, the data does not show whether the customer is a company or a private person, and the VAT on the invoice depends on that. So in this case nothing is decided automatically.
The setting Hold payments from customers without a tax number is on the connection card and is off by default.
| Setting | What happens to the payment |
|---|---|
| Off | No invoice is issued for a payment from a new customer without a tax number. This suits you when you sell mainly to private persons. |
| On | The payment appears in the “Payments without a document” list and waits for you to choose a client. |
To issue the invoice, select Choose client next to the payment. Pick an existing client or create a new one: the form is filled in with the name and address from Stripe, and you add what is missing. The invoice is issued to the chosen client right away. If the chosen client is already linked to another Stripe customer, the invoice is not issued: choose another client or create a new one.
You choose once for each Stripe customer. Later payments from that customer are invoiced to the same client automatically, and the client's details in smetni.ai are no longer overwritten from Stripe.
The details a client needs:
| Client | Details needed |
|---|---|
| Bulgarian company | Name, address and an EIK or a VAT number. When you enter only the VAT number, the EIK is filled in from it. |
| Company from another country | Name and address. The registration number and VAT number are filled in when known. Without a valid VAT number, a sale to an EU company is charged Bulgarian VAT. |
| Private person | Name and address. |
If the payment needs no invoice, or you have already issued one by hand, select Remove from list. A removed payment gets no document automatically later either, even if Stripe sends the event again. The removal cannot be undone. If the row's invoice or credit note is already issued (for example, the reasons that start with “The invoice is issued”), removing the row keeps the document and clears the row from the list. If the “Send the issued document to the customer” setting is on and the document has not been sent yet, it is sent to the customer.
To have payments arrive with a tax number, switch on tax ID collection in the settings of Stripe Checkout and of the Stripe customer portal. The customer then enters it and the invoice is issued automatically.
Payments without a document
The list on the connection card shows the Stripe payments and credit notes that have no document yet: the Stripe customer, Stripe's number for the payment, the amount, the date and the reason. Their count is also shown in the card header.
| Reason | What to do |
|---|---|
| No tax number | Choose a client, or remove the payment from the list. |
| The customer name is missing | Choose a client. For later payments, add the customer name in Stripe. |
| The customer country is missing | Choose a client. For later payments, complete the customer address in Stripe. |
| Client details are missing | Choose a client and fill in the fields named. |
| The payment has no Stripe customer | Issue the invoice by hand in Sales and remove the payment from the list. |
| The invoice for the credit note is not issued yet | Issue the invoice first. The credit note is issued after it. If the payment will have no invoice, remove the credit note from the list. If the invoice is already issued, select “Try again”. |
| The invoice is issued, but the client was not saved | Choose the same client again. No second invoice is issued. |
| The invoice is issued, but the chosen client is linked to another Stripe customer | The invoice is already issued. Remove the payment from the list. For the next payment from this Stripe customer, choose a client that is not linked to another one. |
| Access for the company is suspended | Documents are issued once access is restored. If access is restored and the payment is still in the list, select “Try again”. |
Resending the event from Stripe does not fix missing details: Stripe sends the same data the invoice was paid with. That is why the fix is made with Choose client.
Check the result
The connection card shows when the last event and the last document arrived, and for each event when it was last received. Problems show as a “Problems” count with a list below it. Issued invoices are recorded as paid. In Sales, check the client, numbering, amounts and tax details, and whether the email was sent according to the “Send the issued document to the customer” setting, which is off by default.
If a document is missing, check the event's delivery in Stripe, the address, the Signing secret, the mode and whether the connection is switched on. Events received while the connection is off are not processed later: resend them from Stripe after you switch it on. Do not create a duplicate by hand before checking whether the document has already been issued.
Stop or change an integration
Switch the connection off when you need to stop processing. When you change the settings, check the automatic sending and the series. A connection can be deleted only while it is switched off, and documents already issued remain. They are reviewed and corrected in the usual way in Sales.