Using the Magento 2 SnelStart CLI Command for Debugging and Validation

This is an article from the Snelstart Integration extension for Magento 2. We've tried our best in the preparation of this help article. If you do not find the answer you were looking for, you can always send us a message through this form.

Magento 2 SnelStart CLI Command

Using the Magento 2 SnelStart CLI Command for Debugging and Validation

Setting up the SnelStart accounting module in Magento 2 can be complex, especially when dealing with One-Stop-Shopping, various ledgers, and tax rules. Synchronization between Magento and SnelStart may encounter issues due to API limitations, incorrect configurations, or missing data.

A useful debugging method is to manually create a boeking (transaction) in SnelStart and then use the CLI command to retrieve and validate how it was processed by the SnelStart API.

Why Use This Command?

The accounting:check:snelstart command helps merchants and developers to:

  • Retrieve and inspect a boeking from SnelStart.
  • Verify that the correct grootboekrekening (ledger account) is assigned.
  • Ensure transaction details such as factuurnummer (invoice number) and amounts are correct.
  • Identify synchronization issues between Magento and SnelStart.

By using this command, you can compare expected vs. actual data, allowing for quick troubleshooting and adjustments.

How to Use the CLI Command

1. Getting the Boeking ID

Each boeking in SnelStart has a unique UUID available via the API. If you do not have this ID,
use the --top and --skip parameters to browse transactions.

Example: Fetch the Latest Boekingen

bin/magento accounting:check:snelstart --top=5

This retrieves the 5 most recent transactions, including their UUIDs. Use the ID with the --id parameter to get full details.

Example: Fetch the Next Set of Boekingen

bin/magento accounting:check:snelstart --top=5 --skip=5

Use --skip to offset results and retrieve the next batch.

Where to Find the Boeking UUID

The boeking UUID appears in the verkoopBoeking field:

"verkoopBoeking": {
    "id": "eb44fcaa-e160-4be7-aa92-7d6e298b5b30",
    "uri": "/verkoopboekingen/eb44fcaa-e160-4be7-aa92-7d6e298b5b30"
}

Fetching Details for a Specific Boeking

bin/magento accounting:check:snelstart --id=eb44fcaa-e160-4be7-aa92-7d6e298b5b30

Example Output

{
    "factuurdatum": "2022-07-28T00:00:00",
    "factuurnummer": "C000000061",
    "boekingsregels": [
        {
            "omschrijving": "Rival Field Messenger",
            "grootboek": {
                "id": "4cbe5132-377f-43a5-86da-6289e75ae93a",
                "uri": "/grootboeken/4cbe5132-377f-43a5-86da-6289e75ae93a",
                "name": "[8000] - Omzet hoog (productiegoederen)"
            },
            "bedrag": -47.9,
            "btwSoort": "Hoog"
        },
        {
            "omschrijving": "Mollie Payment Fee",
            "grootboek": {
                "id": "217b3143-603e-4883-bcb2-179308ef7d4a",
                "uri": "/grootboeken/217b3143-603e-4883-bcb2-179308ef7d4a",
                "name": "[8040] - Omzet nultarief (productiegoederen)"
            },
            "bedrag": -0.99,
            "btwSoort": "Geen"
        }
    ]
}

This output confirms that the transaction was successfully added and shows which grootboekrekening (ledger account) was assigned. Use these results to configure ledger mappings in Magento.

Retrieving the Correct Boeking ID

Follow these steps:

  1. Run bin/magento accounting:check:snelstart --top=5 to fetch recent transactions.
  2. Find the verkoopBoeking field in the response.
  3. Copy the id and use it with --id.

Final Thoughts

The accounting:check:snelstart CLI command is a powerful tool for validating SnelStart transactions, debugging ledger assignments, and troubleshooting sync issues.

By manually creating a transaction in SnelStart and fetching it via this command, you can quickly diagnose and resolve configuration errors to ensure accurate financial records in Magento.

Direct Help

At Magmodules, our support team is here to help you every step of the way. If you can't find a solution in our Knowledgebase, simply fill in the form below. We are in the Central European Timezone, and all your details are securely sent to us.
The more information you provide, the better we can assist you. Trust us to guide you through any challenge and ensure a seamless experience with our products and services.
Support by e-mail contact@magmodules.eu
star star star star star
star star star star star
Bleijenberg winkelinrichting en materialen
Goed bereikbaar, reageren snel en denken oplossingsgericht. Een aanrader.
Google This week
star star star star star
star star star star star
Patrick Verduijn
Magmodules biedt plugins aan die van hoge kwaliteit zijn tegen een goede prijs, waar dit bedrijf in uitblinkt is de bereidheid om de zeldzame feedback & problemen met de plugins te willen onderzoeken, mee te willen denken in het debuggen van problemen en goede oplossingen toe te passen. In mijn decennium ervaring met Magento & 3th parties is Magmodules absoluut een uniqum binnen de markt.
Google Last week
star star star star star
star star star star star
Erik de Groot
Magemodules heeft hele sterke Magento extensies en een proactieve support. Al jaren heel erg tevreden over jullie service en producten!
Google 14 days ago
star star star star star
star star star star star
René Zeuner
We are using the Mollie Magento extension from Magmodules. It works excellently without flaws. Very fast, competent and friendly support. Thanks!
Google 30 Jun 2025
star star star star star
star star star star star
R. U.
Erg goed team, reageren snel en duidelijk en hebben met toegang tot onze database erg goed geholpen (eigenlijk een gratis customization).
Google 18 Jun 2025
star star star star star
star star star star star
Hugo de Groot
Uitstekende support! Wij gebruiken o.a. de Rich Snippets Suite extensie voor onze Magento 2 webshop (Hyvä) en hadden een specifieke vraag over structured data op PLP-pagina’s. Binnen no-time kregen we een inhoudelijk en duidelijk antwoord. Zeer prettig contact en goed onderbouwde uitleg. Absoluut een betrouwbare partner voor Magento-extensies!
Google 13 Jun 2025
star star star star star
star star star star star
Rick Manders
Dit is nog eens een modulemaker! Stopt niet tot het werkt, blijft enthousiast. Grote dank!
Google 04 Jun 2025
star star star star star
star star star star star
L vd B
Topservice van Magmodules dat maak je niet vaak meer mee! Toen we tegen vervelende problemen aanliepen met onze Mollie betalingen, klopten we in eerste instantie aan bij Mollie zelf. Helaas bleef een reactie lang uit en de hulp die wij kregen was niet echt constructief. Gelukkig bracht Frank van Magmodules daar meteen verandering in. Hij pakte het probleem direct op, dacht actief met ons mee en nam echt de tijd om alles helder uit te leggen. Niet alleen werd het probleem snel opgepakt, maar we leerden onderweg ook nog wat bij over de technische achtergrond. Kortom: Magmodules levert niet alleen een goed Magento product, maar staat er ook echt als het nodig is. Zo’n service zie je tegenwoordig niet vaak meer! Dankjewel Frank.
Google 13 May 2025
star star star star star
star star star star star
Jeroen Custers
Zeer professionele Magento plugin developer met hele goede ondersteuning.
Google 30 Apr 2025
star star star star star
star star star star star
Rick Manders
De snelheid van reageren en het niveau van meedenken zijn bewonderingswaardig! Uniek bij een modulebouwer! Een kleine vijf jaar ervaring met Magmodules en telkens staan ze voor je klaar bij inhoudelijke vragen. Goed bezig.
Google 28 Apr 2025