Skip to content

Business use cases

This section covers the work of building a connector, domain by domain:

  • obtain the authorization of each seller on the channel,
  • bring the seller's stores into Mirakl Connect,
  • declare and synchronize the catalog,
  • carry the orders and the returns in both directions.

This page frames that work: which flows exist, which ones are yours, and where to start. Each domain then has its own guide.

The flows

Your connector carries every flow that reaches the channel. That is why each of those arrows crosses its lifeline.

The numbers are labels on the diagram, not a build order.

ChannelMiddlewareMiraklSellerChannelChannel ConnectorMirakl ConnectChannelChannel ConnectorMirakl ConnectSeller SystemChannel authorization1Channel stores configuration2Channel store features configuration3Channel catalog configuration4Channel taxonomy configuration5Mirakl Connect product and offer flow6Channel product and offer flow7Channel product and offer integration feedback flow8Channel order flow9Mirakl Connect order flow10Mirakl Connect order action11Channel order action12Channel order action feedback13Seller System
ChannelMiddlewareMiraklSellerChannelChannel ConnectorMirakl ConnectChannelChannel ConnectorMirakl ConnectSeller SystemChannel authorization1Channel stores configuration2Channel store features configuration3Channel catalog configuration4Channel taxonomy configuration5Mirakl Connect product and offer flow6Channel product and offer flow7Channel product and offer integration feedback flow8Channel order flow9Mirakl Connect order flow10Mirakl Connect order action11Channel order action12Channel order action feedback13Seller System

A solid arrow is an API call. A dashed arrow is an event.

What you implement

Channel authorization

Before anything else can run for a seller, that seller must grant your connector access to their account and their stores on the channel. To obtain and hold that consent is the responsibility of your connector.

#FlowWhat it doesGuide
1Channel authorizationObtain the consent of a seller to access their channel account, run the channel's authorization mechanism, and store the credentials it produces.Channel authorization

The mechanism belongs to the channel: a shared API key, an OAuth2 flow, or whatever else the channel offers. Your connector therefore exposes a consent endpoint and drives that process itself. When the authorization of a channel expires, your connector must also expose a renewal endpoint that the seller can return to.

Stores

#FlowWhat it doesGuide
2Channel stores configurationImport the seller's channel stores into Mirakl Connect. It is part of the authorization process, which issues the token that authorizes the import.Channel authorization
3Channel store features configurationManage the features enabled for a given store, including whether the seller has linked it, which is what activates or deactivates its synchronization flows.Stores

Catalog

#FlowWhat it doesGuide
4Channel catalog configurationConfigure the channel's catalog workflow behavior.Catalog configuration
5Channel taxonomy configurationConfigure the channel's taxonomy, which is its product types and its taxonomy rules, in Mirakl Connect.Taxonomy
7Channel product and offer flowReceive the products, the offers, the prices, and the stock, and publish them to the channel.Catalog flow, Create or update products, Create and update offers, Sync price and stock
8Channel product and offer integration feedback flowReport the integration status and the diagnostics of each product and each offer back to Mirakl Connect.Report feedback

Orders

#FlowWhat it doesGuide
9Channel order flowSynchronize the channel's orders into Mirakl Connect.Sync orders into Connect
12Channel order actionCarry out on the channel the order actions Mirakl Connect requests.Handle order action events
13Channel order action feedbackReport the outcome of each action back to Mirakl Connect.Handle order action events

Returns carry no number of their own on the diagram. They travel with the order flow: they are synchronized the same way as the orders, and the same action events drive them. Refer to Returns.

What Mirakl Connect handles

These flows run between the seller and Mirakl Connect. They are listed so that the diagram reads end to end, and they need no work from you.

#FlowWhat happens
6Mirakl Connect product and offer flowThe seller imports their products and their offers into Mirakl Connect.
10Mirakl Connect order flowThe seller lists their channel orders in Mirakl Connect.
11Mirakl Connect order actionThe seller accepts and ships the channel orders from Mirakl Connect.

Where to start

The flows split into two kinds, by what each one waits on. Some describe the channel, and you can do them as soon as the Mirakl team has created it. The others run for each seller, and they wait on that seller.

Channel level, with nothing to wait for:

  • Catalog configuration: declare the channel's offer attributes and the offer use cases it supports. Mirakl Connect emits offer upserts only for the use cases you have declared, and what you declare here is also what sellers are asked to fill in.
  • Taxonomy: register the channel's product types and taxonomy rules. Products are only ever created in the product types you have registered.

For each seller, where each flow depends on state that another one established:

  • Channel authorization: nothing can be read from the channel, or written to it, for a seller who has not authorized you.
  • Stores: a store must exist and be linked before any catalog flow or order flow runs for it.
  • Catalog flow: products and offers start to arrive for a linked store, once the channel-level configuration above is in place.
  • Orders: you can push orders as soon as a store is linked, and the action flow follows.
  • Integration overview: where your connector sits, the two directions, where the state lives, and the boundary of responsibility.
  • API and event directory: the REST operations and the events that each flow above uses.
  • Data model: the definition, field by field, of the entities these flows carry.
  • Best practices: the rules on idempotency, ordering, retries, and errors that every flow obeys.