Summary
Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.
Guided setup
Connect Miravia Seller to Claude, ChatGPT or Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Miravia Seller in the guided setup, then add your MCP URL to your AI assistant. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Miravia Seller
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Miravia Seller, paste the app key and secret, click Authorize and sign in with the shop's seller account, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Miravia Seller
Let your AI run your Miravia shop, the Alibaba group's marketplace in Spain, with the AliExpress orders and listings that come with it: orders and item lines, packing, tracking and ready-to-ship, shipping labels, products with price and stock, categories and brands, returns and refunds. Cancellations, refund decisions and product removal are installed switched off.
Setup
What you need: a Miravia seller account, a Miravia Open Platform account with a Seller Profile and a Seller In House App there. About 20 minutes, plus Miravia's approval of the app for production use.
- Open https://open.miravia.com and create an Open Platform account (email and password, then the 6-digit code Miravia emails you). When Miravia asks for the profile, choose Seller Profile and log in with your Seller Center account: the profile is created after that login.
- In the App Console apply for the app category Seller In House App (Miravia wants the category permission before an app is created; a seller can have at most 5 such apps). Then click Create App and fill in App Name, Callback URL, Description and App Logo (jpg or png, about 100x100 px). The Callback URL is this server's address followed by
/api/iop-auth/callback(on AnythingMCP Cloud:https://cloud.anythingmcp.com/api/iop-auth/callback). - The app now appears on the App Management dashboard. Click Manage to open it and copy the App Key into
MIRAVIA_APP_KEYand the App Secret intoMIRAVIA_APP_SECRET. - Miravia's tutorial puts two things between a new app key and production: pass Integration validation in the App Console (one orders scene, Orders single or Orders multiple, and either the Product or the Feed scene; with the validation method File you fill in Miravia's template and click Start test in the console), then open the app with Manage and, under Basic Information, click Apply Online next to App Status and give a reason. Once Miravia approves the request the status changes to Online. The tutorial does not say how long that takes.
- On the connector page click Authorize. Miravia's sign-in page opens: sign in with the seller account of the shop and approve. Miravia sends you back with a code, which AnythingMCP exchanges for the shop's tokens. AnythingMCP opens
https://auth.miravia.com/apps/oauth/authorize; if Miravia shows an error there, compare that address with the authorization URL the App Console shows for your app under Manage.
Tokens: per Miravia's guide the access token lasts 14 days and the refresh token 712 days (about two years). AnythingMCP reads the real lifetimes from Miravia's token answer (expires_in and refresh_expires_in, in seconds), renews the access token on its own and adds it to every call: there is no token to paste. When the refresh token ends, or Miravia refuses it, the connector asks for a new sign-in: click Authorize again.
How it signs: every call carries app_key, access_token, a millisecond timestamp, sign_method=sha256 and sign, an upper-case HMAC-SHA256 keyed with the App Secret over the API path followed by every parameter sorted by name. The secret never leaves AnythingMCP. Miravia refuses a timestamp more than 7200 seconds off.
Where to start
- The shop:
miravia_get_seller(name, status, the countries it sells in, whether it is an M2A seller) andmiravia_get_shipping_permission(may the seller ship orders itself). - Orders:
miravia_list_ordersneeds created_after or update_after; thenmiravia_get_orderfor one order andmiravia_get_order_items(ormiravia_get_multiple_order_itemsfor several orders) for the item lines with their status, package and tracking. - Products:
miravia_list_products(by status, date or SKU, with stock details),miravia_search_products(the V2 listing with page numbers) andmiravia_get_productfor one product. - Returns:
miravia_list_reverse_orderslists cancellations, returns and refunds;miravia_list_reverse_reasonsgives the reasons a seller may reject one with.
Shipping an order: on the item lines delivery_option_sof 1 means the seller ships (DBS, Delivery by Seller), otherwise Miravia's carrier collects the parcel (DBM, Delivery by Miravia).
- DBM:
miravia_pack_order(returns thepackage_id),miravia_get_shipping_labelfor the label to print, thenmiravia_set_ready_to_ship. - DBS:
miravia_pack_order,miravia_list_shipment_providersfor the carrier'sprovider_code,miravia_update_trackingwith your tracking number, thenmiravia_set_ready_to_ship(refused until the tracking number is set). Labels do not exist for DBS parcels. miravia_fulfill_orderis the V2 call that does the packing step in one request (for DBS with carrier and tracking number) and can be sent again to change the tracking number.- After hand-over a DBS parcel that Miravia cannot track itself is moved on with
miravia_confirm_package_collected(shipped) andmiravia_confirm_package_delivered(delivered). Both are switched off: they cannot be undone, and Miravia may blacklist a seller who reports a delivery that did not happen.
Miravia and AliExpress (M2A)
- Orders, item lines, products and returns carry
marketplace:miraviaorae. The list tools take it as a filter; without it they answer for both. - AliExpress orders are packed with the same tools, with two differences Miravia documents: in
miravia_pack_orderevery entry isorderItemId:quantity, with awarehouse_codefor parcels AliExpress logistics carries (DBA); inmiravia_update_trackingthe fieldscarrier_codeandcarrier_nameare mandatory. - Unpaid orders, and orders locked for 15 minutes after payment while the buyer may still change the address, are not served: the order lists leave them out and a direct read answers error 98.
- AliExpress orders can show three more statuses: NR Pending (the buyer reported the parcel as not received, the case is open), NR confirmed (the claim was accepted and the buyer is refunded) and Shipped_back_success (the parcel came back to the seller before delivery).
- Products: prices are in EUR, the texts are sent in Spanish (Miravia translates them for the other countries),
CountryPricesets a price per country,CountryLevelStatusListand themarketplacevalue of the status tools (miravia,miravia_ES,miravia_PT,ae,ae_ES,ae_IT,ae_PT) switch a product on or off per marketplace and country.ae_product_infoon a product shows how the last synchronisation to AliExpress went. - The V1 cancellation (
miravia_check_order_cancellation,miravia_create_order_cancellation) is refused for Miravia-to-AliExpress orders (error 1001, cancellation not supported).miravia_cancel_orderis the V2 cancellation; Miravia's pages do not say whether it takes those orders, so read its answer.
V1 and V2 calls: Miravia runs two generations side by side and says both stay for now, recommending a gradual move to V2. V2 here: miravia_search_products, miravia_create_or_update_product, miravia_update_price, miravia_update_quantity, miravia_update_sku_status, miravia_fulfill_order, miravia_cancel_order, miravia_accept_return_refund, miravia_reject_return_refund. V2 addresses a SKU by its seller SKU alone and takes at most 20 SKUs per call. Miravia's own AliExpress guide still walks through the V1 order calls (pack, tracking, ready to ship), so those are the ones to use for AliExpress orders.
Products
- Category first:
miravia_search_categoriesfinds leaf categories by keyword,miravia_get_category_treereturns the whole tree (large),miravia_get_category_attributesthe attributes of one category with the mandatory ones. Brands:miravia_search_brandsby name (with your permission for it),miravia_list_brandspage by page. A product without a brand is listed asNo Brand. - Create and change:
miravia_create_productandmiravia_update_product(V1 payloads) ormiravia_create_or_update_product(V2: a seller SKU that exists is updated, a new one is added). Image addresses must be reachable by Miravia; this connector has no image or video upload. - Price and stock:
miravia_update_price_quantity(V1: price, sale price, quantity and country prices, up to 50 SKUs, 20 recommended),miravia_update_sellable_stock(V1: sellable quantity),miravia_update_priceandmiravia_update_quantity(V2, up to 20 SKUs, quantity also per warehouse). The default warehouse code isdropshipping.
Switched off at install (turn a tool on in the connector's tool list when you want the AI to use it, and confirm each call): miravia_cancel_order, miravia_create_order_cancellation, miravia_accept_return_refund, miravia_reject_return_refund, miravia_remove_product, miravia_deactivate_product, miravia_update_product_status, miravia_update_sku_status, miravia_confirm_package_collected, miravia_confirm_package_delivered. Miravia warns that a cancellation by the seller can affect the shop's ability to sell and can set the stock of the SKU to 0; a removed product cannot be restored.
Formats and pitfalls
- Ids (order, order item, product, SKU) are long numbers: pass them as text. An order has an
order_idand each line anorder_item_id; packing returns thepackage_id(FP...) that the label, tracking and ready-to-ship calls need. A product has anitem_id, each variant aSkuId, aShopSkuand your ownSellerSku. - Times: order filters take ISO 8601 with an offset (
2026-11-01T00:00:00+01:00) and order answers carry their own offset (Miravia's examples show+0800, so convert before quoting a time). Product times are Unix milliseconds, return times Unix seconds. - Paging: orders up to 100 per call with
offset, and offset plus limit may not pass 5000 (narrow the time window instead); products up to 50 per call (10 for AliExpress products); returns bypage_noandpage_size. - Answers: a successful answer has
code0and the result indata(the fulfilment calls useresult.dataandresult.success). The V2 write calls answer per SKU or order line withstatusand anerrorslist: read it even when the call itself succeeded. A refusal has anothercodewithtypeandmessage:IllegalAccessToken,IncompleteSignatureorInvalidAppKey(authentication),InsufficientPermissionorAppWhiteIpLimit(the app may not call this API, or its IP whitelist does not include this server),AppCallLimitorAppApiCallLimit(too many calls: wait). - Not covered: instant messaging with buyers (it needs its own app category at Miravia), image and video upload, the Feed API for bulk files, Fulfilment by Miravia stock and finance statements.
Prerequisites: MIRAVIA_APP_KEY, MIRAVIA_APP_SECRET
Install the connector locally
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Open http://localhost:3000/connectors/store, pick Miravia Seller and paste in the env vars listed under Prerequisites.
Available tools
| Tool | What it does |
|---|---|
miravia_get_seller | The seller account behind this connector: seller_id, shop name, company name, short_code, email, location, status (ACTIVE, INACTIVE or… |
miravia_get_shipping_permission | Whether the seller may ship orders with its own carrier (DBS, Delivery by Seller): DBS_permission true or false. True means the seller is… |
miravia_list_orders | List orders by creation or update time, with optional status, marketplace and country filters. Per order: order_id, order_number… |
miravia_get_order | One order by its id: order_number, created_at, updated_at, statuses, price, payment_method, items_count, marketplace (miravia or ae)… |
miravia_get_order_items | The item lines of one order: order_item_id, name, sku (your seller SKU), shop_sku, sku_id, status, item_price, paid_price, currency… |
miravia_get_multiple_order_items | The item lines of several orders in one call: per order its order_id, order_number and order_items with the same fields as… |
miravia_pack_order | Pack item lines of one order into a parcel, the first fulfilment step (the order goes from pending to packed). Returns per line the… |
miravia_update_tracking | Register the carrier and tracking number of a parcel the seller ships itself (DBS). Needed before miravia_set_ready_to_ship; refused for… |
miravia_set_ready_to_ship | Mark a packed parcel as ready to ship (RTS). For a seller-delivered parcel the tracking number must be set first (error 700005 otherwise).… |
miravia_fulfill_order | V2 fulfilment in one call: moves the given item lines of an order from 'to pack' to 'to hand over', like Pack and print in the Seller… |
miravia_list_shipment_providers | The carriers a seller-delivered (DBS) parcel can be registered with: name, provider_code and, where Miravia gives them, carrier_info_list… |
miravia_get_shipping_label | The shipping label (AWB) of one packed parcel that Miravia's or AliExpress's logistics carries: doc_type, pdf_url (a download link valid… |
miravia_confirm_package_collected | Tell Miravia that the carrier collected a seller-delivered (DBS) parcel that is ready to ship: the parcel moves to shipped. Only for… |
miravia_confirm_package_delivered | Tell Miravia that a shipped seller-delivered (DBS) parcel reached the buyer, optionally with a proof-of-delivery link: the parcel moves to… |
miravia_list_products | List the shop's products with their SKUs: total_products and per product item_id, primary_category, status and subStatus, attributes (name… |
miravia_get_product | One product by item id or by seller SKU: item_id, primary_category, status and subStatus, attributes, images, variation (the variant fields… |
miravia_search_products | The V2 product listing: total_product, total_page, page and per product product_id, category_id, status and sub_status… |
miravia_update_price_quantity | V1 price and stock update for one or more SKUs: price, sale price, quantity and prices per country in one call. Up to 50 SKUs, 20… |
miravia_update_sellable_stock | V1 stock update: sets the sellable quantity of one or more SKUs (what buyers can still order, on top of what open orders reserve). Up to 50… |
miravia_update_price | V2 price update by seller SKU, up to 20 SKUs per call. price is the list price in EUR with at most two decimals; sale_price is the… |
miravia_update_quantity | V2 stock update by seller SKU, up to 20 SKUs per call: the total quantity of the default warehouse, or the quantity per warehouse with… |
miravia_create_product | V1: create one product with one or more SKUs (up to 50, 20 recommended). Take the category from miravia_search_categories and its mandatory… |
miravia_update_product | V1: change attributes or SKUs of an existing product, or add SKUs to it (up to 50 per call, 20 recommended). The SellerSku is the key… |
miravia_create_or_update_product | V2: create a product or update it in one call, without item ids: a seller_sku that exists is updated, a new one is added to the product or… |
miravia_remove_product | Permanently remove whole products, or single SKUs of a product. It cannot be undone: a removed product has to be created again. Give… |
miravia_deactivate_product | V1: take a product, or one SKU of it, offline (inactive: no longer visible or sold). With marketplace only one side or one country is… |
miravia_update_product_status | V1: activate or deactivate a product or some of its SKUs. With only item_id every SKU of the product changes. marketplace limits the change… |
miravia_update_sku_status | V2: set the status of SKUs or whole products: active, inactive (offline) or delete (permanent: the product cannot be restored, and a wrong… |
miravia_get_category_tree | The whole category tree of Miravia: per category category_id, name, leaf, permission (yes or no: restricted categories need an application… |
miravia_search_categories | Find leaf categories by a keyword in their name: every match comes with its full category path, from the top category down to the leaf… |
miravia_get_category_attributes | The attributes of one category, for building a product: per attribute name (the key to send), label, input_type (text, numeric… |
miravia_list_brands | All brands known to Miravia, page by page: per brand its id, local_brand_name, global_brand_name, status (1 = usable) and main_categories.… |
miravia_search_brands | Find brands by name: per match brandId, localBrandName (the name in Miravia's database) and permission (true when this shop may list… |
miravia_check_order_cancellation | Check whether the seller can cancel item lines of an order (V1) and which reasons Miravia accepts: reason_options with reason_id and… |
miravia_cancel_order | V2: cancel an order as the seller, wholly (name every item line) or partly (name some). It cannot be undone, and Miravia warns that… |
miravia_create_order_cancellation | V1: cancel item lines of an order as the seller, with a reason from miravia_check_order_cancellation. It cannot be undone, can set the… |
miravia_list_reverse_orders | List reverse orders: cancellations, returns and refunds, of Miravia and AliExpress orders. Returns total, page_no and per reverse order… |
miravia_list_reverse_reasons | The reasons a seller can give when rejecting a return, refund or cancellation request, for one reverse order line: reason_id, text… |
miravia_accept_return_refund | V2: accept a buyer's refund-only, return-and-refund or cancellation request for item lines of an order, with the amount to refund in EUR.… |
miravia_reject_return_refund | V2: reject a buyer's refund, return or cancellation request for item lines of an order, with a reason, a comment the buyer reads and, for a… |
Example prompts
- "Which Miravia orders from yesterday are still waiting to be packed?"
- "Pack order 320123456789012, add the Correos Express tracking number and set it ready to ship."
- "Which of my AliExpress orders came in through Miravia this week?"
- "Set the sellable stock of SKU MV-BOLSO-NEGRO to 25."
- "Which return requests are open, and what reasons may I reject them with?"
Next steps
Was this guide helpful?