Skip to main content

Miravia Store Management

Miravia Store Management connects a Miravia seller account (Miravia Spain, miravia.es) to Odoo through the Miravia Open Platform. This page is the installation and configuration guide for the miravia_store_management module as it ships today.

Technical namemiravia_store_management
Odoo versions17.0, 18.0, 19.0, 20.0 (Community or Enterprise)
Current shipped version17.0 → 17.0.1.1.4, 18.0 → 18.0.1.1.4, 19.0 → 19.0.1.1.4, 20.0 → 20.0.1.1.4
Price$349 USD — one-time, per Odoo version
Odoo module licenceOPL-1 on every version — no licence key, no activation step
CategoryConnector

Requirements​

RequirementDetail
Odoo17.0, 18.0, 19.0 or 20.0, Community or Enterprise. Self-hosted or Odoo.sh — Odoo Online (SaaS) cannot install third-party modules
Odoo appsbase, sale_management, stock, account, delivery, mail, web, portal, product, contacts, digest — Odoo installs any that are missing
Python packagesrequests
Platform accountA Miravia seller account and an app on the Miravia Open Platform (App Key and App Secret)
Public HTTPSOdoo's web.base.url must be an HTTPS address Miravia can reach (OAuth callback and webhooks)

Installation​

  1. Download the ZIP for your Odoo major version from where you purchased the module.
  2. Extract it into your addons path so that miravia_store_management/__manifest__.py sits directly inside miravia_store_management/.
  3. Restart Odoo, click Apps → Update Apps List, search for Miravia Store Management and click Install. The module declares no licence dependency and has no activation step.

Configuration​

Connect to Miravia​

Open Miravia → Configuration → Instances and create an instance (model miravia.instance).

FieldTechnical nameNotes
App Keyapp_keyRequired. From the Miravia Open Platform
App Secretapp_secretRequired. Signs every request (HMAC-SHA256)
Seller IDseller_idFilled in by the consent flow
Access Token / Refresh Tokenaccess_token / refresh_tokenFilled in by the consent flow; the access token is renewed automatically before it expires and by a daily job
Company, Warehouse, Journal, Pricelist, Salesperson—Where imported orders and invoices land
Discount and Shipping productsdiscount_product_id, shipping_product_idLines for the discounts and shipping Miravia billed

Then:

  1. Click Connect to Miravia and complete Miravia's seller consent at auth.miravia.es.
  2. Click Test Connection. The instance becomes connected only when Miravia answers (it reads your seller record). Do not run a first import before that.

Public URLs​

Register these HTTPS addresses in the Miravia Open Platform application console:

URLPurpose
https://<your-odoo>/miravia/callbackOAuth callback for Connect to Miravia (GET, public; the state value is verified)
https://<your-odoo>/miravia/webhook/<id>Push notifications for the webhook subscription with that id (POST, public). The route checks the topic and an HMAC-SHA256 signature in the X-Miravia-Hmac-Sha256 header against the subscription's secret before anything is queued; a bad signature gets HTTP 401

Miravia registers push callbacks in its own console; Odoo does not register them for you. When you create a webhook subscription in Odoo, the connector prepares the signed receiver and shows the exact URL to paste into the console; deleting the subscription stops the receiver and reminds you to remove the URL there. No Miravia API is called for either step.

Stock export​

Stock is sent only for Miravia locations with an export warehouse mapped (Miravia → Configuration → Locations → Warehouse Mapping) and only for products mapped to a Miravia item. The quantity is the sellable quantity of the mapped warehouses, sent with UpdateSellableQuantity in Miravia's published request shape, at most 50 products per request.

Scheduled actions​

The module installs 14 scheduled actions (Settings → Technical → Scheduled Actions):

Scheduled actionRuns every
Miravia: Process Queue Jobs5 minutes
Miravia: Sync Inventory10 minutes
Miravia: Process Workflows10 minutes
Miravia: Sync Orders15 minutes
Miravia: Sync Products30 minutes
Miravia: Import Refunds30 minutes
Miravia: Auto Risk Detection30 minutes
Miravia: Sync Customers60 minutes
Miravia: Webhook Health Check60 minutes
Miravia: Generate Analytics4 hours
Miravia: Import Payout Reports6 hours
Miravia: Renew Access Tokens1 day
Miravia: Cleanup Old Logs24 hours
Miravia: Daily Summary Report1 day

Access groups​

GroupWhat it may do
Miravia UserRead Miravia records
Miravia FinanceEdit payouts and their transactions
Miravia OperationsEdit carriers
Miravia AnalyticsEdit analytics reports
Miravia ManagerRun the state-changing buttons: validate a payout, activate/deactivate a carrier or workflow, generate analytics, assess/resolve a risk, create a credit note, create/delete a webhook subscription, test the connection
Miravia AdministratorEverything above, with full access to every Miravia model

Since 1.1.2 a state-changing button refuses anyone outside the Miravia Manager group (the Administrator group includes it). Scheduled actions are not affected.

Using the module​

The Miravia menu is laid out as: Dashboard · Orders · Refunds · Products · Customers · Payouts · Analytics · Operations (Run Operations, Queue Jobs, Logs) · Configuration (Instances, Locations, Payment Gateways, Scheduled Actions, Webhooks).

  • Orders are keyed by their Miravia order ID: a re-import updates the same sale order. One failing order rolls back alone.
  • Buyers come in with their orders (Miravia offers no buyer-list API). The order import and the customer import share one resolver — e-mail, then phone, then exact name — so a buyer is filed once.
  • Fulfilment: when an Odoo delivery is done, the order is fulfilled at Miravia with the carrier and tracking number.
  • Returns import every 30 minutes; the Create Credit Note button turns one into an Odoo credit note linked to the sale order.
  • Payouts: automatic payout import is not part of this release (Miravia documents no payout response). Enter the Seller Centre settlement statement as a payout with its transaction lines, create the bank statement and reconcile.
  • Dashboard: KPI cards and charts over Today, 7 days, 30 days, 90 days, the year or a custom range. Reading it writes nothing.

Troubleshooting​

SymptomCause and fix
Test Connection failsRe-check App Key and App Secret, then click Connect to Miravia again.
"Only a "Miravia Manager" can run this action."The button changes a record's state; ask an administrator to add you to Miravia Manager.
Nothing syncs although connectedThe scheduled actions are disabled, or Odoo's cron worker is not running (--max-cron-threads > 0).
No stock reaches MiraviaNo export warehouse is mapped on the Miravia location, or the product has no Miravia mapping.
Webhook deliveries get HTTP 401The subscription's secret does not match the one Miravia signs with, or the subscription is not active.
"Automatic payout import is not part of this release"Expected: enter the statement in the payout workspace.

Version history​

Odoo versionVersion you download today
17.017.0.1.1.4
18.018.0.1.1.4
19.019.0.1.1.4
20.020.0.1.1.4

1.1.4 (2026-11-15): the Run Operations window no longer opens with a pop-up notice that could cover the Execute button on a phone; a short description of the selected operation now appears directly under Operation and changes when you pick another one.

1.1.3 (2026-11-14): the connector no longer calls any route that is missing from Miravia's published API catalog (webhook callbacks are registered in the Open Platform console, see Public URLs); the App Secret, carrier API secret and webhook secret key refuse a value with a space, tab or line break, or a documentation placeholder, when you save it. The same release brings Odoo 20.0, and all four editions carry the import fixes: imports read the envelope Miravia's gateway sends, Sync Now runs the import, each size keeps its own product, an order in a foreign currency needs a pricelist in that currency, a failed run reads as failed, Analytics opens for the Analytics role, and the dashboard follows a dark theme.

1.1.2 (2026-10-28): state-changing buttons need the Miravia Manager group; risk assessment works again; one buyer resolver for order and customer imports; order dates keep their day when Miravia sends an offset without a colon; the dashboard no longer writes when it is read; the webhook route verifies the signature itself; unused settings and the unused ApexCharts library removed. The Odoo 17 and 18 editions now carry the whole 1.1 release (automatic token renewal, stock export, catalog-checked fulfilment, returns and token routes).

ECOSIRE module versions are <odoo major>.<module major>.<minor>.<patch>, so 19.0.1.1.4 is the Odoo 19 build of module version 1.1.4. Your installed version is shown in Apps.

Support​