Bluefly Account Integration Through Mirakl

Overview

Bluefly is an online fashion store selling a wide selection of apparel, accessories, and even home decor.  With its discount offerings, Bluefly caters to fashion-conscious consumers seeking high-end brands and trendy styles at more affordable rates. The website features various categories, including women’s and men’s clothing, shoes, bags, beauty products, and more.

You can integrate Bluefly through Mirakl, an e-commerce marketplace and dropshipping platform that uses an API solution to help website retailers partner with third-party sellers to grow their online offerings and expand their market reach. Integrating Bluefly allows you to sell on their platform through Sellercloud. This integration works by transmitting information between the two services via API. The following plugins are currently available:

  • Order Import – Imports orders from Bluefly to Sellercloud.
  • Tracking Export – Exports tracking information to Bluefly.
  • Inventory Export – Exports inventory to Bluefly.
  • RMA Import – Imports RMAs to Sellercloud.

If necessary, open a ticket with Sellercloud Support to request additional customizations or other plugins for this integration. Note that these customizations are billable, and you will be provided a quote.

To have a dedicated representative complete the testing for your account and ensure that the setup is configured correctly, opt in for Premium Support.

Prerequisites

Before you can integrate Bluefly into Sellercloud, complete the following requirements.

We recommend creating a new Company where you will set up the Custom Company Settings and automate the plugins with Scheduled Tasks.

Custom Company Settings

Create the following Custom Company Settings:

Integration and API Configuration

  • Mirakl_Integration_Name – Enter BlueFly to specify that this is the Mirakl channel from which orders are coming in. This setting’s value gets added to the Custom Order Column MIRAKL_CHANNEL.
  • Mirakl_API_URL – Bluefly’s URL: https://bluefly-prod.mirakl.net for a production environment.
  • Mirakl_API_Key – Your Mirakl authentication key. On Mirakl, you can find it by clicking your email address in the top right corner and selecting API Key.
  • MiraklOAuthTokenId – An alternative authentication instead of the Mirakl_API_Key. Create it as an empty company setting and get a token from the Scheduled Task.
  • MiraklEnableExportOfferStateNew – Enable the use of the Custom Product Column MIRAKL_EXPORT_OFFER_STATE_NEW. Defaults to False.

Order Management

  • Mirakl_Always_Accept_Orders – This setting is optional and can be True or False. It determines if orders with pending acceptance will be accepted even if there’s not enough inventory on hand to fulfill them. If the setting is missing, the plugin considers it False.
  • Mirakl_Get_Only_Recent_Orders – This setting can be True or False. It determines if the plugin will only import orders modified in the past 10 days. Skip creating this setting or set it to False for the initial order import. Then, set it to True to speed up the plugin and avoid reaching API limits.
  • Mirakl_Shop_IDs – This is an optional setting. A comma-separated list of Mirakl shop IDs (i.e., ‘2000,2774‘). If missing, the plugin will only import orders from the first shop associated with the Mirakl user. You can only have one Mirakl channel integration per company in Sellercloud. This setting should not exceed two IDs.
  • Mirakl_Order_Statuses – This is an optional setting that specifies which order statuses will be imported. If missing, orders with a status of WAITING_ACCEPTANCE, PAYMENT_COLLECTED, SHIPPING, SHIPPED, RECEIVED, and CLOSED will be imported.
  • Mirakl_Shipping_Method – Sets the Shipping Method for all imported orders.
  • RunPostOrderPluginAfterOrderCreation – Optional but recommended setting that runs post order actions once an order is created or updated. These include post order plugins, shipping weight calculation, and the Order Rule Engine. Defaults to False.
  • Mirakl_DontRunPostOrderOnWaitingAcceptanceOrders – With this setting enabled, post order actions will not run on orders created with the WAITING_ACCEPTANCE status from Mirakl or ones where the Shipping Address is missing or the Payment Status is not Charged. This setting can be True or False.
  • Mirakl_ExcludeNonPayableToShopTaxes – Determine whether to exclude taxes when importing orders. This setting can be True or False.

Inventory Management

Additional Settings

  • Mirakl_Manufacturer_Warranty – Apply a default manufacturer warranty period to products whose MIRAKL_MANUFACTURER_WARRANTY_USE_DEFAULT Custom Product Column is set to True. Defaults to 0.
  • Mirakl_Offer_TaxCode – This is an optional setting that sets a default tax code for all offers. If present, then the plugin will export each offer with the relevant product-tax-code. Example value: P0000000.

Custom Product Columns

Create the following Custom Product Columns:

Listing Management

  • Bluefly_Enabled – Set to True to enable a product for Bluefly. The data type is Boolean.
  • MIRAKL_SHOP_IDS – A comma-separated list of Mirakl shop IDs for which product price, inventory, and availability dates should be updated, e.g., ‘2000,2774’. This setting works only if you have populated the Custom Company Setting Mirakl_Shop_IDs. The data type is String.
  • MIRAKL_SKU – Enter the Mirakl product ID here if it’s different from the Sellercloud SKU. The data type is String.
  • MIRAKL_AVAILABLE_STARTED – The start date of the active offer. The data type is DateTime.
  • MIRAKL_AVAILABLE_ENDED – The end date of the active offer. The data type is DateTime.
  • MIRAKL_MANUFACTURER_WARRANTY – Enter the manufacturer warranty period. The data type is Integer.
  • MIRAKL_MANUFACTURER_WARRANTY_USE_DEFAULT – Apply the default manufacturer warranty period from the custom company setting Mirakl_Manufacturer_Warranty. The data type is Boolean, and it defaults to False.

Inventory Management

  • MIRAKL_SAFETY_QTY – The product’s Safety Quantity is subtracted from the available quantity to prevent overselling. The data type is Integer.
  • MiraklMaxQtyEnabled – Use this option to limit the Maximum Inventory Quantity and have it appear on Bluefly even if you actually have more than the set limit in stock. The data type is Boolean.
  • MiraklMaxQty – Enter the Maximum Quantity. The data type is Integer.
  • MiraklMaxQtyUseDefault – Apply the Maximum Quantity set on the Custom Company Setting instead of the product-level MiraklMaxQty value. The data type is Boolean.
  • Mirakl_MinQtyAlert – An optional minimum quantity alert that defaults to 1. The data type is Integer.
  • MiraklReplenishableQtyToSend – Enter a replenishable quantity for the product. This setting applies if you have enabled Replenishable on the Product Details Page. The data type is Integer.
  • MiraklUseDefaultReplenishableQty – Apply the default replenishable quantity set in the Custom Company Setting MiraklDefaultReplenishableQty instead of using the product-level setting. The data type is Boolean.

Pricing

  • MIRAKL_PRICE – The product price included in the Inventory Export to Mirakl. The data type is Decimal.
  • MIRAKL_PRICE_ADDITIONAL_INFO – Optional additional price information. The data type is String.
  • MIRAKL_DISCOUNT_PRICE – A discount price for the product. The data type is Decimal.
  • MIRAKL_DISCOUNT_AVAILABLE_STARTED – The start date for the discount. The data type is DateTime.
  • MIRAKL_DISCOUNT_AVAILABLE_ENDED – The end date for the discount. The data type is DateTime.
    MIRAKL_AVAILABLE_STARTED and MIRAKL_AVAILABLE_ENDED can be in the past as long as the start date is before the end date. Otherwise, Mirakl will reject the inventory and price update for the relevant product.

Offer State and Tax

  • MIRAKL_OFFER_STATE – Defaults to 11 (NEW) when missing or has an invalid Mirakl_Integration_Name. This is a type String dropdown.
  • MIRAKL_OFFER_TAXCODE – This is an optional setting that sets a tax code for the offer. If this setting is missing, the tax code will come from the Custom Company Setting Mirakl_Offer_TaxCode. The data type is String.
  • MIRAKL_EXPORT_OFFER_STATE_NEW – This setting is required and used only when the Custom Company Setting MiraklEnableExportOfferStateNew is enabled. Then, the plugin will export the default offer state code (NEW) instead of the selected MIRAKL_OFFER_STATE. The data type is Boolean, and it defaults to False.

Logistic and Description

  • MIRAKL_LOGISTIC_CLASS – If in use, add a drop-down with no multiple selections, with values: XXS, XS, S, M, L, XL, XXL. The data type is String, with an optional selected value.
  • MIRAKL_DESCRIPTION – An optional description. The data type is String.
  • MIRAKL_INTERNAL_DESCRIPTION – An optional internal description. The data type is String.

Sellercloud Support

Open a ticket with Sellercloud Support and request:

  1. To install the Mirakl plugins on your server.
  2. The following custom order columns:
    • MIRAKL_CHANNEL – Used by the Order Import plugin to save the relevant order channel based on the Mirakl_Integration_Name Custom Company Setting. Allows searching for orders from each channel. The data type is String.
    • MIRAKL_SHOP_ID – Populates the Mirakl Shop ID if the custom company setting Mirakl_Shop_IDs is not empty or missing. The data type is Integer.

Order Import

This plugin downloads Bluefly orders through the API and imports them as Website orders in Sellercloud. Orders will be created with the email customer_id@bluefly.com.

The plugin will send order acceptance to Mirakl if all your ordered items have enough inventory to fulfill the order. If an item has insufficient inventory, orders will be canceled on Sellercloud and Mirakl.

Note the following important details describing how the plugin interacts with orders with different statuses:

  • Only orders with Mirakl status WAITING_ACCEPTANCE, SHIPPING, PAYMENT_COLLECTED, SHIPPED, RECEIVED, and CLOSED are imported, and others are skipped.
  • Orders with the status SHIPPED, RECEIVED, and CLOSED are imported as completed.
  • Orders with the status SHIPPED and RECEIVED are marked as fully shipped, while CLOSED ones are marked as shipped only if they have a tracking number or a carrier name.
  • Orders with the status WAITING_ACCEPTANCE are downloaded with empty addresses. After acceptance, Mirakl sends them again with the status SHIPPING, and addresses are added to the relevant orders by the plugin.
  • After an order that’s pending acceptance is created in Sellercloud, the plugin checks the custom company setting Mirakl_Always_Accept_Orders. If True, the order is automatically accepted. If False, an acceptance is sent to Mirakl only if there’s sufficient product inventory to fulfill the whole order. Otherwise, it is rejected, and the Sellercloud status is changed to Cancelled.
For each imported order, the ordered products must exist in Sellercloud with either the same SKU or with the Mirakl product ID in the MIRAKL_SKU custom column. Otherwise, order items will be Unknown, their inventory on hand will be considered 0, and the order will be rejected on Mirakl.

Automate Order Import

To create a Scheduled Task that regularly imports orders from Bluefly to Sellercloud:

  1. Go to Settings > Scheduled Tasks > Manage Scheduled Tasks.
  2. Click the green + icon: Create New Scheduled Task.
  3. Complete as follows:
    1. Click Task Type and select Import Orders.
    2. Set the Task Name.
    3. Select the Company.
    4. Select the Start Time.
    5. Click CREATE.
  4. The following message appears at the bottom of your screen: “Scheduled task created successfully. Click Here to configure the task details.” – click the link.
  5. Click the Edit button on the top right.
  6. In the Details section:
    1. Click the Create Orders For Company menu and select the company you designated for this integration.
    2. Click the Plugin menu and select Mirakl Order Import.
  7. In the Import Options section, set Import From to None.
  8. In the Frequency section, specify the task frequency. For optimal performance, select a range between thirty minutes and one hour.
  9. In the General section, click the Enable button.
  10. Click Save on the top right.


Tracking Export

This plugin exports the shipping carrier and tracking number and then marks the order as shipped on Mirakl.

The tracking confirmation is saved to the order action documents as a TrackingUpload_PreShip. If it’s successful, the plugin will skip tracking updates for this order and try sending a shipping confirmation.

The shipping confirmation is saved to the order action documents as a TrackingUpload. If it’s successful, the plugin will skip sending it again. Before you move on, create a Saved Search for orders filtered by:

  • Company – Choose the integration company
  • Order Status – InProcess Or Completed
  • Shipping Status – FullyShipped
  • Payment Status – Charged
  • Tracking Uploaded – No

Automate Tracking Export

To create a Scheduled Task that regularly exports order tracking from Sellercloud to Bluefly:

  1. Go to Settings > Scheduled Tasks > Manage Scheduled Tasks.
  2. Click the green + icon: Create New Scheduled Task.
  3. Complete as follows:
    1. Click Task Type and select Export Orders.
    2. Set the Task Name.
    3. Select the Company.
    4. Select the Start Time.
    5. Click CREATE.
  4. The following message appears at the bottom of your screen: “Scheduled task created successfully. Click Here to configure the task details.” – click the link.
  5. Click the Edit button on the top right.
  6. In the Details section:
    1. Click the User ID menu and select your ID.
    2. Click the Saved Search menu and select the saved search you created earlier.
    3. Click the Export Via menu and select Mirakl Order Tracking Export.
    4. Check Mark Orders As Exported.
    5. Check This Is Tracking Export.
  7. In the Export Options section, set Export To to None.
  8. In the Frequency section, specify the task frequency. For optimal performance, select a range between thirty minutes and one hour.
  9. In the General section, click the Enable toggle button.
  10. Click Save on the top right.


Inventory Export

This plugin exports available inventory, prices, and offer start and end dates from Sellercloud to Bluefly.

It matches products by Mirakl SKU (the Sellercloud product ID is used if Mirakl_SKU is missing). Here are some key details:

  • You set the product price in the custom column MIRAKL_PRICE.
  • The description is the product’s name in Sellercloud.
  • You set the offer start and end dates in the custom columns MIRAKL_AVAILABLE_STARTED and MIRAKL_AVAILABLE_ENDED.
  • Do not update more than 60,000 products per hour, or you will reach the limit of 60 API calls per hour.

Safety Quantity Workflows

There are two Safety Quantity workflows that function as follows:

  • The Basic Safety Qty workflow, when Mirakl_Enable_Advanced_Safety_Qty is missing or False.
    • Aggregate inventory from all sellable warehouses or from the specified ones (if Mirakl_Warehouse_IDs is not empty) – MIRAKL_SAFETY_QTY custom column.
  • The Advanced Safety Qty workflow, when Mirakl_Enable_Advanced_Safety_Qty is True.
    • Quantity to Export = (Total Available Quantity * Mirakl_Inventory_Percent) – Amazon Safety Qty
    • Quantity = Aggregate inventory from all sellable warehouses or from the specified ones (if Mirakl_Warehouse_IDs is not empty)
    • Amazon Safety Qty = Amazon safety quantity, either on the product or company level, depending on Use Company Default.
    • If a product has the MiraklMaxQtyEnabled column set to True, and the exported quantity is greater than the MiraklMaxQty value, then the latter will be exported.

The Basic and Advanced Safety Qty workflows will never export negative values. In such a case, they will export 0 instead.

Prepare Products

Make sure to enable your products for Bluefly by setting their Bluefly_Enabled Custom Column for Products to True:

  • For one product at a time: go to the Product Details Page > click Toolbox and select Custom Columns > click Edit, update the Bluefly_Enabled column, and Save.
  • For multiple products in bulk: follow the steps to Bulk Update Products and use the Bluefly_Enabled column – set it to True for all products you want to enable.

Before you move on, create a Saved Search for products filtered by Bluefly_Enabled True. Optionally, you can add more filters to the search.

Unlike core integrations, plugin integrations don’t require products to be in the company where the scheduled tasks are. The export will include the products you select with your Saved Search.

Automate Inventory Export

To create a Scheduled Task that regularly exports inventory from Sellercloud to Bluefly:

  1. Go to Settings > Scheduled Tasks > Manage Scheduled Tasks.
  2. Click the green + icon: Create New Scheduled Task.
  3. Complete as follows:
    1. Click Task Type and select Import RMA.
    2. Set the Task Name.
    3. Select the Company.
    4. Select the Start Time.
    5. Click CREATE.
  4. The following message appears at the bottom of your screen: “Scheduled task created successfully. Click Here to configure the task details.” – click the link.
  5. Click the Edit button on the top right.
  6. In the Details section:
    1. Click the User ID menu and select your ID.
    2. Click the Saved Search menu and select the saved search you created earlier.
    3. Click the Export Via menu and select Mirakl Inventory Export Plugin.
  7. In the Export Options section, set Export To to None.
  8. In the Frequency section, specify the task frequency. For optimal performance, select a range between thirty minutes and one hour.
  9. In the General section, click the Enable toggle button.
  10. Click Save on the top right.


RMA Import

This plugin downloads completed refunds from Mirakl and creates them in Sellercloud. Orders that are in process and with a closed full refund will be marked as completed.

Even though Sellercloud imports returns, you must always process them on Mirakl.

Automate RMA Import

To create a Scheduled Task that regularly imports orders from Bluefly to Sellercloud:

  1. Go to Settings > Scheduled Tasks > Manage Scheduled Tasks.
  2. Click the green + icon: Create New Scheduled Task.
  3. Complete as follows:
    1. Click Task Type and select Import RMA.
    2. Set the Task Name.
    3. Select the Company.
    4. Select the Start Time.
    5. Click CREATE.
  4. The following message appears at the bottom of your screen: “Scheduled task created successfully. Click Here to configure the task details.” – click the link.
  5. Click the Edit button on the top right.
  6. In the Details section, click the Plugin menu and select Mirakl RMA Import.
  7. In the Import Options section, set Import From to None.
  8. In the Frequency section, specify the task frequency. For optimal performance, select a range between thirty minutes and one hour.
  9. In the General section, click the Enable button.
  10. Click Save on the top right.


Was this article helpful?

Need Support?
Can't find the answer you're looking for?
Contact Support