Best Practices for Yuki Connection in Magento 2
These are the recommended ways to configure the Yuki Connection for Magento 2 based on real-world setups we've seen work well. Whether you're running a simple Dutch webshop or a multi-store setup with EU sales, you'll find a scenario here that fits. We've also included a list of common mistakes people run into and some Yuki-specific tips that aren't obvious from the admin panel alone. If you're about to go live, read through the General Guidelines first — they'll save you some headaches.
General Guidelines
Do's
✅ Always test with a single invoice before enabling automation
✅ Import ledgers from Yuki before configuring ledger settings
✅ Map all tax rules in Tax Rate Mapping before going live
✅ Enable Debug Mode during initial setup
✅ Create a matching BTW tax code in Yuki for each OSS country
✅ Use "definitief" invoice type for production, "concept" for testing
Don'ts
❌ Don't enable automation without completing ledger and tax configuration
❌ Don't skip the Tax Rate Mapping step
❌ Don't leave Debug Mode enabled in production
❌ Don't forget to create OSS BTW codes in Yuki before enabling OSS countries
Common Scenarios
Scenario 1: Simple Dutch Webshop
Use case: Single store, selling to Dutch customers only, using standard 21% and 9% VAT rates.
Configuration:
Connection:
- Single connection, one Yuki administration
- Invoice type: definitief
Ledger Accounts:
- Product: Omzet account (e.g. 8000)
- Shipping: Omzet account (e.g. 8000)
Tax Rate Mapping:
- NL BTW 21% → Hoog
- NL BTW 9% → Laag
OSS:
- Disabled
Result: All invoices automatically sync to Yuki with the correct Dutch VAT codes.
Scenario 2: Dutch Webshop with EU Sales (OSS)
Use case: NL-based shop selling to consumers across the EU, using the One Stop Shop (OSS) VAT scheme.
Configuration:
Connection:
- Same as Scenario 1, plus OSS enabled
OSS Settings:
- OSS: Enabled
- OSS Countries: select all EU countries you actively sell to
In Yuki (before enabling OSS):
- Create a BTW code with type 40 for each OSS country, matching the local VAT rate for that country
Tax Rate Mapping:
- Map each EU destination country rate to the corresponding BTW code
Result: Domestic NL orders use standard Hoog/Laag codes. EU B2C orders automatically use VATType 40 with the correct country code, matching the OSS BTW codes you created in Yuki.
Tip: Use the Import Info button after adding new BTW codes in Yuki — this refreshes the available tax codes in Magento.
Scenario 3: Multi-Store Setup
Use case: Multiple store views or websites, each connected to a separate Yuki administration.
Configuration:
Per store view:
- Enable connection separately per store view
- Use a different API key per store, or the same key with a different administration selected
- Configure ledger accounts per store view
- Adjust invoice descriptions per store if needed (e.g. include store name)
Result: Each store view syncs independently to its own Yuki administration. Orders from store A won't appear in administration B.
Scenario 4: B2B with Intra-Community Supply (ICP)
Use case: Selling to business customers within the EU with VAT reverse charge (intracommunautaire levering).
Configuration:
Tax Rules:
- Set up Magento tax rules for 0% EU reverse charge
Tax Rate Mapping:
- EU reverse charge → ExportBinnenEU
General Settings:
- EU No Tax Fallback: ExportBinnenEU
OSS:
- Not needed for B2B
Result: B2B EU invoices sync to Yuki with the ICP VAT code (VATType 7 / ExportBinnenEU). No OSS configuration required for business-to-business transactions.
Performance Tips
- Set cron frequency based on order volume. Every 15 minutes works well for most shops. High-volume shops can go lower, but there's little benefit below 5 minutes.
- Disable Debug Mode in production — it generates a lot of log data you don't need once everything is working.
- Failed syncs retry automatically (up to 3 attempts). Check Synchronisation Logs if invoices stay stuck after multiple retries.
Common Mistakes
Mistake: Enabling OSS without creating BTW codes in Yuki first
Why it's wrong: Yuki will return an API error when the module tries to submit an invoice with a VATType 40 code that doesn't exist in your administration.
Correct approach: Create the BTW code in Yuki first (type 40, correct percentage, correct country), then click Import Info in Magento, and only then enable the OSS country.
Mistake: Configuring ledgers before importing from Yuki
Why it's wrong: The ledger dropdowns will be empty if you haven't imported from Yuki yet. You'll end up saving without a ledger selected, which causes sync errors.
Correct approach: Connect your API key, click Import Info, save, then configure ledger accounts.
Mistake: Skipping Tax Rate Mapping
Why it's wrong: Without explicit mappings, invoices fall back to the default tax class, which may not match the correct Yuki BTW code. This silently produces incorrect VAT declarations.
Correct approach: Map every tax rule you use in Magento to its corresponding Yuki BTW code before enabling automation.
Mistake: Using "concept" invoice type in production
Why it's wrong: Concept invoices are not finalized in Yuki. They won't appear in VAT reports and require manual action to process.
Correct approach: Use definitief for production. Only use concept during initial testing when you want to review invoices in Yuki before they're finalized.
Yuki-Specific Tips
- Yuki treats credit memos as negative invoices — the module automatically negates amounts, so you don't need to do anything special.
- For OSS invoices, providing VATType 40 + percentage + country code is sufficient for Yuki to resolve the correct BTW code automatically.
- The Import Info button also refreshes available tax codes, not just ledger accounts. Use it after adding any new BTW codes in Yuki.
- Ledger accounts can be overridden per product using the product attribute in Magento. Useful if you have product categories that belong to different revenue accounts.
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team