Skip to main content
Mirakl

Accept Pending Orders in Mirakl Connector: what the button does

The Accept Pending Orders button tries to accept the orders of that Mirakl instance that require acceptance and are pending or in error, oldest first, and tells you how many it accepted and how many failed. It is the manual route: Odoo can do the same on its own, with two settings on the form and two scheduled tasks.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 5 November 2026

Key facts

Module
Mirakl
Versions
Odoo 17, 18, 19 and 20
Checked
in the connector's source code, version 20.0 · against the sources linked at the end
Reading time
5 min

A case to see it in action: orders waiting for acceptance

Example Illustrative case: the company and its figures are made up to explain the flow.

Almazara Home is an invented shop that sells kitchenware on a Mirakl marketplace and has its account connected through Mirakl Connector. One morning, the person who handles orders wonders whether Odoo accepts the orders that need it by itself, or whether she has to do it. Here is her route: first she looks at what Odoo already does on its own, then she presses the button.

Same stock on every Mirakl marketplace, sent from Odoo
Video: Same stock on every Mirakl marketplace, sent from Odoo

First, what Odoo does without you pressing anything

The button is not the only route. The method that accepts the orders is also called by two scheduled tasks, and both run without anyone pressing anything:

  • The Mirakl - Sync Orders task runs every ten minutes and is active on install. When it finishes importing orders, if both Auto Accept Orders and Accept Pending On Import are ticked on the instance, it tries to accept the pending orders, using that instance's retry limit.
  • The Mirakl - Accept Orders task also runs every ten minutes and is active on install. It calls the same acceptance method with each instance's retry limit.

Both settings are unticked by default in the code. The help text of Auto Accept Orders reads: "Automatically accept imported orders that require seller acceptance in Mirakl." The one on Accept Pending On Import reads: "Try to accept waiting orders right after each manual or scheduled order import."

Step by step with the button

  1. Open Mirakl › Configuration › Marketplaces and go into the instance form, on the Mirakl Instances screen.
  2. Go to the Orders and Returns tab, Sync Policy group. The two settings above are there, along with the Accept Retry Limit field, whose default value in the code is 100.
  3. Press Accept Pending Orders. The button is always visible on that screen, in Odoo 17, 18, 19 and 20. What follows is what happens according to the Odoo 20 code.
  4. Read the notification that appears when it finishes. Its title is Mirakl, it does not stay fixed on screen, and its text is Accepted: … | Errors: …. If there was any error, the notification appears as a warning.
  5. Look at the instance form: the button also leaves a message there with the result.
  6. If no order was accepted and there were errors, the message on the form points you to the Mirakl order logs; if there were errors but also accepted orders, you will see it in the Errors count of the notification. Press the button again whenever you want to retry.
Code-generated diagram of the Mirakl, Configuration, Marketplaces menu and the Accept Pending Orders button
Diagram generated from the module code, not an Odoo screen: the instances menu and the button, with the module's original labels, present in Odoo 17, 18, 19 and 20.

What the button does inside

The button acts on the instance you have open. According to the Odoo 20 code, it does this, in this order:

  • It looks for the orders of that instance that require acceptance and whose acceptance state is pending or in error.
  • It leaves out orders that are held back from sales orders. The code comment explains it: accepting them would commit to shipping what Odoo never will.
  • It sorts them by order date, oldest first, and takes as many as Accept Retry Limit allows.
  • It tries to accept each one. If it is accepted, it adds one to the accepted count. If it is not accepted and the order's acceptance state ends up in error, it adds one to the errors.
  • It posts a message on the instance form and shows the notification with both counts. The notification appears as a warning if there was any error and as a success if there was none.

One detail about the count: an order that is not accepted but does not end up in an error state adds to neither count.

Which message you get

The text of the message on the form depends on the result:

MessageWhen it appearsWhat it means
Accept Pending Orders completed: … orders accepted.At least one order was acceptedThe dots stand for the number of orders accepted.
Accept Pending Orders completed with errors. Check Mirakl order logs.None was accepted and there were errorsSome orders ended up with their acceptance state in error.
Accept Pending Orders completed: no orders required acceptance.None was accepted and there were no errors eitherNo order was accepted and none ended up with its acceptance state in error.

Note that if some orders are accepted and others fail, the message on the form is the first one, but the notification appears as a warning and its text shows both counts.

What to take from the case

Almazara Home checks three things, in this order: whether both settings in the sync policy are ticked, what retry limit the instance has, and what the button says when pressed. Because orders in error enter the search again, pressing the button once more retries them. Orders held back from sales orders stay out whenever you press it.

The button's name changes with the language of your Odoo:

Code-generated diagram with the button name in several languages
Diagram generated from the module's translations, not an Odoo screen: in Spanish Aceptar pedidos pendientes; in German, Ausstehende Bestellungen annehmen; in French, Accepter les commandes en attente; in Italian, Accetta ordini in sospeso; in Portuguese, Aceitar Encomendas Pendentes.

To continue with the set-up, the Test connection button has its own walkthrough.

Versions and cost

The button exists in the four published branches, 17, 18, 19 and 20, and is always visible in all of them. The code I describe is that of Odoo 20. Mirakl Connector is a one-off paid module per Odoo version, published on Odoo Apps for those versions (see the listing or the module page), and it needs the FlexigoTech Cloud subscription, Connector plan: €49 a month or €490 a year, excluding VAT. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted and emails you if the sync fails.

If you want help getting it running

FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. If you want to go through the sync policy of your Mirakl instance with us, write to us from the module page.

Keep reading

Mirakl Connector: ‘Set the Mirakl API key before testing the connection’When Mirakl Connector for Odoo asks you to set the Mirakl API key before testing the connection: the exact condition behind it and how to fix it.Mirakl Connector: «This binding has no Mirakl instance configured.»When Mirakl Connector says a binding has no Mirakl instance configured: the exact condition behind the message and what to do when it appears.What the Mirakl Connector Test Connection button does, step by stepWhat the Test Connection button in Mirakl Connector does in Odoo: when it appears, what it checks, what it saves on the record and which errors it can give.
Checked in the connector's source code (version 20.0) and the linked sources

Sources