This article explains which Oblio documents the app creates and when: document types, triggers, credit notes, email sending, linked documents, documents you create by hand and the document link in Shopify emails. Every document type has its own trigger and email setting.
📄 Available document types
The app can create these documents in Oblio:
Invoice / Factură
Proforma / Factură proformă
Credit note / Storno
✅ What a document needs
A document is created automatically only if your Oblio account is connected, a company is selected, and the trigger of that document isn’t Never.
Never only stops automatic creation. You can still create the document by hand, on the Monitor or on the Shopify order page (manual generation). On the Start plan you can create only invoices by hand. Credit notes are never created by hand.
If something is missing, the Monitor shows what went wrong and how to fix it. See Looking up an error code.
⚡ Triggers
For each document type, choose the event that creates it. Automatic triggers create one document of each type per order.
Invoice and proforma triggers
Never: no automatic document. You can still create it by hand.
When unpaid order is created: a new (or imported) order with the payment status Pending. Authorized or partially paid orders don’t count.
When order is paid: a paid order is created or imported, or an unpaid order becomes paid.
When order is fulfilled: a fulfilled order is created or imported, or an unfulfilled order becomes fulfilled.
When any order is created: any new (or imported) order.
Credit note triggers
Never: no credit note is created automatically.
When order is partially or fully refunded: a credit note for the refunded products and shipping, with their quantity and price. Products that weren’t refunded don’t show on it.
When order is canceled: a credit note for the whole order.
How a credit note looks: see Credit note details.
By payment method, B2B or B2C
B2B / B2C: use Generate for to create a document only for companies or only for individuals. See Generate for.
Payment method: you can skip orders paid with a selected payment method. See Skip these orders. Different triggers per payment method aren’t available.
Set it up
Open Oblio | Integration app » Settings menu » Triggers section » Invoice field (or Proforma, Credit note) » choose a trigger » Save
Good to know
On a new install, the invoice is set to When any order is created, with email on. The proforma and the credit note are set to Never.
To create a document type again for the same order, create it by hand.
✅ POS orders
POS orders (sales in your Shopify POS) get documents like online orders: the same triggers, document types and settings apply.
The document is created about 1 minute after the sale, so Shopify can add the customer to the order first.
With a customer on the order, the document uses the customer’s details, like an online order.
Without a customer, the customer on the document is the order’s email address. With no email either, it’s Shopify POS, with your store’s country.
✅ Credit note details
A credit note is only made if the order has an invoice from the app (one you created by hand counts too). How it looks depends on whether the whole order is credited or only a part.
Full or partial
Full (cancel, a refund of the whole order total, or one refund that returns every item with nothing left to pay, for example a returned cash-on-delivery order): Oblio cancels the invoice with a storno that refers to it. It copies the invoice lines with minus amounts and also cancels the payment on the invoice. An invoice is cancelled only once.
Partial: a new invoice with the refunded products and shipping, with minus quantities and the discount of the sale. Its note says Storno factura <series> <number>, next to your Note. One order can get several.
How it works
Numbering: the series of the original invoice.
If Email this document to the customer is ticked for credit notes, Oblio emails it.
No payment is recorded on a partial credit note. A full storno cancels the payment on the invoice.
Refunding only an amount
Refunding only an amount, without picking products or shipping, creates no credit note, unless it is the whole order total (then it’s a full storno).
✅ Orders where documents are not created
The app doesn’t check the order status: a document is created when its trigger happens.
Draft orders get no document, not even by hand, because they aren’t orders yet. Once you complete a draft order, the triggers run.
Archived, cancelled and test orders aren’t blocked. If the trigger still runs (for example, an order is fulfilled and archived at once), or you create it by hand, the document is made.
Cancelling an order runs the credit note trigger When order is canceled.
✅ Trigger delays
Some triggers wait a little before the document is created. After a COD or POS wait, the document uses the order data at the end of the wait.
Trigger delay for COD orders
Only for orders paid with Cash on Delivery (COD).
When any order is created runs after 30 seconds, When unpaid order is created after 35 seconds.
Other orders: right away.
Trigger delay for POS orders
For POS orders, every trigger runs after 60 seconds, except the credit note triggers.
Trigger delay with a tag exception
If you have a tag exception under Skip these orders, every automatic document waits 60 seconds (COD orders: 30 or 35 seconds, as above) and the tags are read again, so tags added right after the order count. The document uses the order data of the moment the trigger ran; only the tags are read again. See Tags.
✉️ Send documents in email
Tick Email this document to the customer for a document type. Oblio emails the document to the order’s email address when it creates it.
How it works
Oblio creates the document and sends the email in one step. It can’t email a document later: turning the email on doesn’t send earlier documents.
A document is never emailed twice.
If Oblio refuses the document because of the email, the document isn’t created, and the Monitor shows the error.
Oblio sends the email itself and doesn’t tell us whether it went out. To check delivery, look in Oblio.
The Monitor shows the email under every created document. See Success.
Set it up
Open Oblio | Integration app » Settings menu » Triggers section » document type » tick Email this document to the customer » Save
Good to know
By default the email is on for the invoice, and off for the proforma and the credit note.
🔗 Linked documents
If the order already has a proforma from the app, the invoice (automatic or by hand) is made from it, and the two are linked.
How it works
Oblio takes the customer and the lines from the proforma.
The order doesn’t need to be paid: the invoice trigger decides.
Such an invoice doesn’t reduce stock. See Stock sync.
🖐️ Create a document by hand
Create an invoice or a proforma for one order, from the order page in Shopify or from the Monitor.
How it works
It always creates a new document, even if the order already has one.
If the order has a proforma, the invoice is made from it.
Skip these orders and Generate for don’t apply.
Email follows the setting of that document type.
You see the result right away: the document number (series + number), or what went wrong and how to fix it.
Set it up
In Shopify, open the order » More actions » Create Oblio document
Pick Invoice or Proforma » Create now
On the Monitor, Generate document and Try again do the same.
Good to know
Credit notes can’t be created by hand. On the Start plan you can create only invoices by hand.
It works even if the document’s trigger is Never: Never only stops automatic creation.
You can create documents only for orders from the last 60 days (a Shopify limit).
🔗 Document link in Shopify emails
Add a document download link to any Shopify notification email. Your customer clicks it and the order’s document opens.
How it works
The link opens the order’s latest invoice, or its proforma if there’s no invoice.
If the order has no document yet, the link doesn’t work.
Set it up
Copy this code:
<!-- Oblio document URL Code START -->
{% assign secret_key = shop.metafields.app--421708791809--hmac.secret_key %} {% assign data_to_sign = order.id | append: shop.id %} {% assign hmac = data_to_sign | hmac_sha256: secret_key %} <p> You can download your document <a href="https://make-it-easy-oblio.gadget.app/order-document-link?orderId={{ order.id }}&shopId={{ shop.id }}&hmacVerification={{ hmac }}">here</a>. </p>
<!-- Oblio document URL Code END -->
Open Shopify Admin » Settings » Notifications » choose the email » Edit code
Paste the code where you want the link
Save
Good to know
You can change the “You can download your document here” text in the code, for example to translate it.