This article explains which iDoklad documents the app creates and when: document types, triggers, exceptions, email sending and linked documents. The app always uses the Shopify order data as it is when the document is created.
📄 Available document types (WHAT to generate)
The app can create these documents in iDoklad:
1 | Common invoice |
2 | Proforma Invoice |
3 | Sales receipt |
4 | Credit note |
✅ Tax document
An extra document: when a proforma of the order gets paid, the app can create an iDoklad tax document linked to it.
How it works
It’s optional, and off unless you tick it.
It’s created when the order is paid and the app records the payment on the proforma. See Linked documents.
The tax document isn’t emailed.
It always gets your iDoklad default numbering.
Set it up
Open iDoklad | Integration app » Settings menu » Triggers section » Proforma invoice » tick Create Tax document when proforma is paid » Save
✅ What a document needs
A document is created automatically only if your iDoklad account is connected and the trigger of that document isn’t Never.
Never only stops automatic creation: you can still create the document by hand. On the Start plan you can create only invoices by hand, and credit notes can never be created by hand.
If something is missing, the Monitor shows the error and how to fix it. See Looking up an error code.
⚡ Triggers (WHEN to generate)
For each document type, choose the event that creates it. Each document type is created automatically only once per order.
Manual generation: you can also create documents one by one from your Shopify orders. Learn more
Document triggers
For common invoice, proforma invoice and sales receipt:
⚡ Trigger 1 » Never
The document is never created automatically.
⚡ Trigger 2 » When unpaid order is created
The document is created when an unpaid order (payment status: Pending) is created or imported. Orders that are Authorized or Partially paid don’t trigger it, not even later.
⚡ Trigger 3 » When order is paid
The document is created when
a paid order is created or imported, or
an unpaid order becomes paid.
⚡ Trigger 4 » When order is fulfilled
The document is created when
a fulfilled order is created or imported, or
an unfulfilled order becomes fulfilled.
⚡ Trigger 5 » When any order is created
The document is created when any order is created or imported.
Credit note triggers
⚡ Trigger 1 » Never
No credit note is created automatically, whatever the refunds or cancellations.
⚡ Trigger 2 » When order is partially or fully refunded
When products or shipping are refunded in Shopify, the app creates a credit note with the refunded quantities and prices.
Full refund: the refunded amount equals the order total, or one refund returns every item and nothing is left to pay. The credit note has every item of the invoice. It’s created once per order.
Partial refund: any other refund. The credit note has only the refunded products (with the refunded quantity) and the refunded shipping. An order can have several partial refunds, so several credit notes.
Items that didn’t change aren’t on the credit note.
A refund that moves no money (for example, an order edit or a returned cash-on-delivery order) doesn’t create a credit note.
⚡ Trigger 3 » When order is canceled
When the whole order is cancelled, the app creates a credit note for all items, like for a full refund.
Sales receipt limitation
Sales receipts can only be created by When order is paid: for them you can choose only When order is paid or Never.
Set it up
Open iDoklad | Integration app » Settings menu » Triggers section » Common invoice field (or any other document type) » choose a trigger » Save
Good to know
To create a document type again for the same order, use manual generation.
✅ POS orders
POS orders (sales in your Shopify POS) get documents like web orders: the same triggers, document types and settings apply.
The document is created 60 seconds after the sale, from the order data at that time, so Shopify can add the customer to the order first. Credit notes (cancellation, refund) don’t wait.
With a customer on the order, the document uses the customer’s details, like a web order.
Without a customer, the buyer is the order’s email address. With no email either, the buyer is Shopify POS, with your store’s country.
✅ Credit note details
iDoklad makes the credit note from the original invoice. The corrected items show with negative amounts.
Reason on the credit note
Refund: “Order was fully refunded.” or “Order was partially refunded.”
Cancellation: the cancel reason from Shopify, for example “Customer changed or canceled order”.
The reason is in the language of the customer’s billing country: Czech for CZ, Slovak for SK, German for Germany and Austria, English for all others.
How it works
Credit notes are created only for common invoices created by the app, always for the latest invoice of the order.
Numbering comes from your default iDoklad numbering: Settings » Sale » Numbering. See Numbering sequences.
If Email this document to the customer is ticked for credit notes, iDoklad emails it.
iDoklad takes the payment method from the original invoice.
Good to know
Order adjustments aren’t supported. If you refund in Shopify only an amount, without picking a product or shipping, no credit note is created and the Monitor shows an error. Create that credit note by hand in iDoklad. If the refunded amount is the full order total, the app creates a full credit note.
✅ Orders where documents are not created
Draft orders never get a document. Once a draft becomes a real order, your triggers apply to it like to any other order.
Cancelled or archived orders aren’t skipped automatically. To skip them, use Skip these orders (for example with a tag).
🚫 Skip orders and Generate for
Choose which orders never get an automatic document, and whether each document type is made for everyone, only companies or only individuals.
Skip these orders
Pick orders that never get an automatic document, whether the customer is a company (B2B) or an individual (B2C). You find it at the bottom of the Triggers card in Settings. You can skip orders when:
the order has a tag: one of your tags, exact match (upper or lower case doesn’t matter),
the order comes from POS (in-store),
the order is paid with a selected payment method: Cash on Delivery (COD), PayPal or bank transfer (Bank Deposit),
the order contains only gift cards (an order paid with a gift card isn’t skipped),
the order total is 0.
If one of them matches, the Monitor shows No document with the reason, for example Skipped by your exception: order is paid with …. You can still create the document by hand with Generate document.
Payment method
Cash on Delivery and Bank Deposit are Shopify’s built-in manual payment methods. A manual payment method you created with your own name can’t be recognised.
PayPal means PayPal Express. PayPal paid through Shopify Payments can’t be recognised, so the document is created.
Card payments (also Apple Pay, Google Pay and Shop Pay) can’t be chosen: Shopify shows them all as Shopify Payments.
An order paid in parts is skipped only if every part was paid with a selected method. If any part was paid another way (for example gift card + COD), the document is created. The Monitor lists all the methods.
Tags
With a tag exception, the automatic documents of every order in your store wait about 60 seconds (see Trigger delays). Right before the document is created, the order’s tags are read again, so a tag you add right after the order still counts. A tag added after the document was created doesn’t change it.
0-value orders
Orders with a total of 0 get documents unless the Order total is 0 exception is on. New installs start with it on. It applies to every automatic document, POS and COD orders too.
Generate for
For common invoice, proforma invoice and sales receipt, choose who gets it: Everyone (default), Companies or Individuals.
A company (B2B) is a customer whose order has a valid VAT ID (DIČ). An info banner at the top of the Triggers card says the same. See B2B handling.
A sales receipt is still only created when the order is paid.
It only decides whether the document is created. Email sending stays as you set it for each document.
When a document isn’t created because of Generate for, the Monitor shows it on the order with a grey Not created badge, the document type and the reason. See Not created on the Monitor.
Triggers by payment method, B2B or B2C
B2B / B2C: use Generate for to create a document only for companies or only for individuals.
Payment method: you can skip orders paid with a selected payment method (see above). Different triggers per payment method aren’t available.
Set it up
Open iDoklad | Integration app » Settings menu » Triggers section » Skip these orders » Add exception
In Skip orders when, choose the exception (for tags, enter them separated by commas) » Add exception » Save
For Generate for: choose Everyone, Companies or Individuals under each document type » Save
Good to know
By default every document is for Everyone.
Exceptions and Generate for don’t apply to credit notes. A credit note is created when the order has an invoice from the app, so a skipped order gets one only if you created its invoice by hand.
If two documents would be created for the same order at the same moment for overlapping customers (for example When any order is created and When unpaid order is created, both for Everyone), the Triggers card shows a warning. You can still save. The warning isn’t shown on the Start plan.
Documents you create by hand ignore these settings.
A change only affects new orders. Issued documents don’t change.
✅ Trigger delays
Some triggers wait a little before the document is created. Credit notes never wait.
Trigger delay for COD orders
Only for the When unpaid order is created and When any order is created triggers.
COD means Shopify’s built-in Cash on Delivery (COD) payment method. A manual payment method you created with your own name doesn’t count.
Cash on Delivery (COD): the trigger runs after about 30 seconds (35 seconds for When unpaid order is created).
Any other payment method: the trigger runs right away.
Trigger delay for POS orders
For POS orders, the document triggers run after 60 seconds, also when the POS order is paid with COD. Credit note triggers run right away.
Trigger delay with a tag exception
If you have a tag exception, the automatic documents of every order in your store wait 60 seconds. For COD orders, When unpaid order is created and When any order is created keep their own delay (see above). Only the tags are read again: the rest of the document uses the order data from the moment of the event. See Tags.
✉️ Send documents in email
Tick Email this document to the customer to send the document to the customer through iDoklad, right after it’s created. You can turn it off anytime.
How it works
iDoklad sends the email with the email template you set in iDoklad. See Email template.
It goes to the order’s email address (or the customer’s, if the order has none).
The PDF isn’t attached to the email.
The document is created first, then the email is sent. These are two separate steps.
If the email isn’t sent, the document is still created and saved. It isn’t created again, so there’s no duplicate.
An email is never sent twice for the same document.
If you fix a setting later, earlier emails aren’t sent automatically.
Tax documents aren’t emailed.
The Monitor shows under every created document what happened to its email. See Success.
Set it up
Open iDoklad | Integration app » Settings menu » Triggers section » document type » tick Email this document to the customer » Save
🔗 Linked documents
iDoklad links some documents to an earlier one of the same order.
Proforma invoice » Invoice
If the order already has a proforma created by the app, and then an invoice is created (automatically or by hand):
Fully paid order: the proforma gets the payment (and a tax document, if you ticked it), then iDoklad makes the invoice from the proforma. The two are linked.
Order not fully paid (unpaid, partly paid or partly refunded): the invoice is created on its own, not linked to the proforma. iDoklad only allows the link for a fully paid proforma.
Important linking limitation
The app always links to the latest document of the order. So if an order has several documents, the next related one (an invoice or a credit note) is linked to the latest.