This guide covers how to use CLI commands to debug and validate the SnelStart integration. The accounting:check:snelstart command lets you retrieve and inspect transactions (boekingen) directly from SnelStart to verify correct synchronization.
When to Use This
Use the debugging command when you need to:
- Verify a transaction was synced correctly to SnelStart
- Check which ledger account (grootboekrekening) was assigned
- Inspect invoice details like amounts and tax classifications
- Troubleshoot synchronization issues
- Validate your ledger mapping configuration
The Check Command
Fetch Recent Transactions
Retrieve the most recent transactions from SnelStart:
bin/magento accounting:check:snelstart --top=5
This returns the 5 most recent transactions with their UUIDs.
Pagination
To retrieve subsequent batches:
bin/magento accounting:check:snelstart --top=5 --skip=5
This skips the first 5 and returns the next 5 transactions.
Inspect Specific Transaction
Once you have a transaction UUID, retrieve its full details:
bin/magento accounting:check:snelstart --id=eb44fcaa-e160-4be7-aa92-7d6e298b5b30
Command Options
| Option | Description | Example |
|---|---|---|
--top=N |
Number of recent transactions to fetch | --top=10 |
--skip=N |
Skip first N transactions (pagination) | --skip=5 |
--id=UUID |
Fetch specific transaction by UUID | --id=eb44fcaa-... |
Understanding the Output
The command returns transaction details including:
| Field | Description |
|---|---|
| id | The boeking UUID (use with --id for details) |
| factuurdatum | Invoice date |
| factuurnummer | Invoice number |
| omschrijving | Line item descriptions |
| grootboek | Assigned ledger account with name |
| bedrag | Amount values |
| btwSoort | Tax classification (Hoog, Laag, etc.) |
Finding the UUID
In the response, look for the verkoopBoeking field - the id property contains the UUID you need for detailed inspection.
Debugging Workflow
Step 1: Identify the Problem
Check the Synchronisation Logs in Magento admin:
- Accounting → Synchronisation Logs → Invoice
- Note any error messages or the order/invoice number
Step 2: Find the Transaction
Fetch recent transactions to find your invoice:
bin/magento accounting:check:snelstart --top=10
Look for your invoice number in the results.
Step 3: Inspect Details
Get full details using the UUID:
bin/magento accounting:check:snelstart --id=<UUID-FROM-STEP-2>
Step 4: Verify Configuration
Compare the output with your expected configuration:
- Is the correct grootboek (ledger) assigned?
- Is the btwSoort (tax type) correct?
- Are the amounts correct?
Step 5: Fix and Resync
If configuration is wrong:
- Update ledger mappings in Magento admin
- Update Tax Rate Mapping if needed
- Resync the invoice:
bin/magento accounting:sync:orders --order-id=<ORDER-ID>
Common Issues Found via Debugging
Wrong Ledger Account
Symptom: Transaction shows unexpected grootboek
Check:
- Product ledger configuration (Hoog, Laag, etc.)
- Tax Rate Mapping for the tax rule used
- Advanced Ledger Mapping if enabled
Missing Tax Classification
Symptom: btwSoort is empty or incorrect
Check:
- Tax Rate Mapping completeness
- Fallback tax classes in Advanced Settings
Amount Mismatch
Symptom: Amounts don't match Magento invoice
Check:
- Currency settings
- Rounding configuration
- Base vs store currency usage
Combining with Debug Mode
For detailed logging alongside CLI inspection:
-
Enable Debug Mode:
- Configuration → SnelStart → Debug & Logging
- Set Debug Mode to Yes
-
Run the check command or sync command
-
Review logs:
tail -100 var/log/snelstart/debug.log -
Disable Debug Mode when done
Need More Help?
Documentation:
- All Help Articles - Complete documentation overview
Support:
- Contact Support - Get help from our team
For a complete overview of features and configuration options, see Magento 2 Snelstart accounting integration.
