Skip to main content
Mirakl

What the Cancel in Mirakl button of Mirakl Connector does, step by step

The Cancel in Mirakl button asks the order's instance to cancel it in Mirakl. First it checks that your user is a Mirakl Manager; if the request goes through, the module records the cancellation on the order, and if it fails, it records the error and you see it on screen.

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

Where the button is and when you see it

It sits on the Mirakl Orders screen, which you reach from the menu Mirakl › Operations › Orders. The button is called Cancel in Mirakl and it is present in all four published versions of the module: Odoo 17, 18, 19 and 20.

It is hidden when the State field of the order is the cancelled one. In any other case you see it, and an order with default values shows it. The condition is the same in Odoo 17, 18, 19 and 20.

Code-built diagram of the button's path: the orders menu, the cancel button and, beside it, the message that can stop it
Diagram built from the module's published code, not an Odoo screenshot: menu, button and permission message

The button label depends on the language of your Odoo: in English it is Cancel in Mirakl; in Spanish, Cancelar en Mirakl; in German, In Mirakl stornieren; in French, Annuler dans Mirakl; in Italian, Annulla in Mirakl, and in Portuguese, Cancelar no Mirakl.

Code-built diagram with the button label in Spanish, German, French, Italian and Portuguese
Diagram built from the module's published translations, not an Odoo screenshot
Same stock on every Mirakl marketplace, sent from Odoo
Video: Same stock on every Mirakl marketplace, sent from Odoo

Step by step: what happens from opening the order

  1. Open the order from Mirakl › Operations › Orders. On its form you see the Instance, which also appears in the Mirakl Orders list. It is the instance the button asks to carry out the cancellation.
  2. Look at the Cancellation group on the form. The Cancellation Reason field is there. The button passes whatever is written in that field as the reason for the cancellation.
  3. Click Cancel in Mirakl. You only see it while the order's State is not the cancelled one.
  4. The first thing the module does is check your permission on the server, before touching anything. If your user is not a Mirakl Manager, the action stops here and nothing is changed (the message is below).
  5. If the permission is fine, the module asks the order's instance to cancel it in Mirakl, passing it the Cancellation Reason.
  6. If the request succeeds, the module updates the order: it marks the cancellation as done, records the time of the attempt and the cancellation date, clears the last error and stores the response received.
  7. If the request fails, the module sets the cancellation to error, with the time of the attempt and the error text, and raises that same error again. The action stops and you see the failure.

What changes and what to look at

When all goes well, what the button writes on the order is the cancellation information: its state, the dates, the cleared error and the response. The view condition, on the other hand, only looks at the State field. So check on the order that the cancellation has been recorded, rather than relying on the button having vanished.

The button acts on the order on the marketplace, not just in your Odoo. The permission message itself says so: these actions change the order on the marketplace and move real money.

The errors it can give and what to do

Permission: you are not a Mirakl Manager

When you click Cancel in Mirakl, the permission check can stop with this message:

Only a Mirakl Manager can accept, cancel or refund a marketplace order. These actions change the order on the marketplace and move real money.

What to do: ask whoever administers Odoo to add your user to the Mirakl Manager group, or have the cancellation done by someone who already belongs to it. The check runs on the server when you click, not only in the view.

The request to Mirakl fails

Any other failure of the cancellation request is raised again as it is: the text you see is the error's own. The module leaves the cancellation as error and stores the text of the last error. While the order's State is not the cancelled one, the button stays in view.

When FlexigoTech Cloud does not let the request through

If the request does not pass through FlexigoTech Cloud, the order is marked neither as cancelled nor as error, and the error is raised again. Mirakl Connector is a one-off payment per version and needs the FlexigoTech Cloud subscription, Connector plan: €49 a month or €490 a year excluding VAT (the Pro plan is €98 a month or €980 a year). The connection goes through that service, which stores the credentials encrypted and emails you if synchronisation fails. Without a subscription, or with the service suspended, what the subscription provides stops; your data stays in your Odoo.

What to check before using it for real

  • That your user is a Mirakl Manager.
  • That the order's Instance is the one you expect.
  • That Cancellation Reason holds what you want to send.
  • That the FlexigoTech Cloud subscription is active.

How FlexigoTech can help

FlexigoTech implements Odoo 17, 18, 19 and 20 and builds connectors and custom integrations. The module is published on Odoo Apps for those four versions: you can see the listing on Odoo Apps or the module page on flexigotech.com. If you are implementing Odoo and want to decide who should be a Mirakl Manager in your company, that is a short conversation.

One practical point for the rollout: with the subscription, the module for newer Odoo versions is included if you bought it on flexigotech.com; on the Odoo App Store, each Odoo version is bought there.

Quick questions

Can any user cancel?

The permission check runs when you click, on the server, and it requires being a Mirakl Manager. If you are not one, you see the message above and nothing is changed.

Does the button disappear after cancelling?

It is hidden only when State is the cancelled one. What the button records after a successful cancellation is the order's cancellation information.

Keep reading

The Mirakl Connector error «Post the invoice before sending it to Mirakl.»When Mirakl Connector for Odoo shows «Post the invoice before sending it to Mirakl.», what the code checks and how to fix it.The Mirakl - Accept Orders scheduled action, pass by passWhat the Mirakl - Accept Orders scheduled action in Mirakl Connector does on each pass in Odoo, how often it runs and what to check when it accepts nothing.The out-of-range marketplace discount error in Mirakl ConnectorWhat the out-of-range marketplace discount error in Mirakl Connector means, when it appears on saving the record and how to fix it step by step.
Checked in the connector's source code (version 20.0) and the linked sources

Sources