Skip to content

OF51 - Get offers CSV file
⚠️ No Integration Allowed ⚠️
deprecated

Request

Deprecated endpoint

This API is going to be removed in a future update, please use APIs OF52, OF53, and OF54 instead.

Description

Get a CSV file that includes the offers updated and deleted since the last request date.
For deleted offers, only offer-id, product-sku, shop-id, shop-sku, active and deleted columns are returned.
If the last_request_date param is not set the api returns all the active offers (inactive offers can be included with include_inactive_offers parameter).
If offers have custom fields, a column is added for each existing custom field with as header the code of the custom field.

Results are sorted by offer identifier.

Call Frequency
Maximum usage:
- Differential: once per minute
- Full: once per day
Read More
Security
Front-Bearer-Token or OAuth-2
Query
last_request_datestring, (date-time)

Date and time of your last request.
If provided, retrieves all offers updated since this date and time, including deleted and inactive offers.
If not provided, retrieves all active offers only, unless otherwise specified in the include_inactive_offers field.

channel_codesstring

List of the channel codes to filter with, using a comma (,) as a separator. If specified, only offers that can be sold on the specified channel(s) will be returned. If not, offers will be returned regardless of their channels.

shipping_zonesstring

List of the shipping zones codes to filter with, URL-encoded and using a comma (,) as a separator. If specified, only shipping information linked to the given zones will be returned. Otherwise, all shipping information for all zones will be returned.

include_inactive_offersboolean

When calling the API in full mode (i.e. when no last_request_date is provided), inactive offers are not returned. To retrieve both active and inactive offers, set this field to true.
When calling the API in differential mode (i.e. when the last_request_date is provided), both active and inactive offers are returned. This field cannot be used in differential mode otherwise the call fails.

Default:false
include_fieldsstring

List of the fields to include, URL-encoded and using a comma (,) as a separator. If specified, only listed fields will be returned.

modelsstring

A comma separated list of platform models to filter with. Accepted values are MARKETPLACE, DROPSHIP, ONE_CREDITOR

curl -i -X GET \
  'https://your-instance.mirakl.net/api/offers/export?last_request_date=2019-08-24T14%3A15%3A22Z&channel_codes=string&shipping_zones=string&include_inactive_offers=false&include_fields=string&models=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

text/csv

Bodytext/csv
Array [
activeboolean

Indicates if the offer is active or inactive (not for sale or discontinued)

allow-quote-requestsboolean

Allow customers to request quotes on this offer

available-end-datestring

The date when the offer will be deactivated

available-start-datestring

The date when the offer will be activated

channelsstring

List of channel codes on which the offer can be sold.

currency-iso-codestring

ISO code of the currency

Enum: "AED", "ARS", "AUD", "BAM", "BGN", "BHD", "BRL", "CAD", "CHF", "CLP", "CNY", "COP", "CZK", "DKK", "EGP", "EUR", "GBP", "GEL", "GTQ", "HKD", "HRK", "HUF", "IDR", "ILS", "INR", "IQD", "JOD", "JPY", "KES", "KRW", "KWD", "LKR", "MAD", "MGA", "MXN", "MYR", "NGN", "NOK", "NZD", "OMR", "PEN", "PHP", "PKR", "PLN", "QAR", "RON", "RSD", "RUB", "SAR", "SEK", "SGD", "TND", "TRY", "THB", "TWD", "UAH", "USD", "UYU", "UZS", "VND", "ZAR"

date-createdstring

Date and time of the offer creation

deletedboolean

Indicates whether the offer exists or is deleted

delivery-time-earliest-days[zone=<CODE>,method=<CODE>]string

Minimum delivery time.
Returned if Export shipping charges and delivery times in OF5X, P11 and the offer webhook is enabled.

delivery-time-latest-days[zone=<CODE>,method=<CODE>]string

Maximum delivery time.
Returned if Export shipping charges and delivery times in OF5X, P11 and the offer webhook is enabled.

descriptionstring

Offer description

discount-end-datestring

The end date of the discount period.
For Dropship specifically: the end date of the discount period on the purchasing price

discount-end-date[channel=<channelCode>]string

The end date of the discount period for the indicated channel, when the Channel Pricing feature is activated.
Can be empty. In this case, the discount price applies from the start date and is then always available for the indicated channel.

discount-pricenumber, (with decimals)

The discount price of the offer
For Dropship specifically: the discount purchasing price of the offer, also referred to as cost or wholesale price

discount-price[channel=<channelCode>]number, (with decimals)

The discount price of an offer for the indicated channel, when the Channel Pricing feature is activated.
Can be empty when no discount price is defined for a given channel. In this case, the default discount price of the offer applies to the indicated channel.

discount-rangesstring

The ranges of the discount prices when the Volume Pricing feature is activated.

discount-ranges[channel=<channelCode>]string

The ranges of the discount prices for the indicated channel, when the Channel Pricing and Volume Discount features are activated.

discount-retail-pricenumber, (with decimals)

The discount retail price of the offer.
Applicable only for Dropship offers.

discount-retail-price-end-datestring

The end date of the discount period for the retail price.
Applicable only for Dropship offers.

discount-retail-price-start-datestring

The start date of the discount period for the retail price.
Applicable only for Dropship offers.

discount-start-datestring

The start date of the discount period.
For Dropship specifically: the start date of the discount period on the purchasing price

discount-start-date[channel=<channelCode>]string

The start date of the discount period for the indicated channel, when the Channel Pricing feature is activated.
Can be empty. In this case, the discount price applies from the start date and is then always available for the indicated channel.

eco-contribution-amount[EPR category code]number, (with decimals)

Amount of the eco-contribution for the EPR category. Returned if Data collection related to circular economy regulations is enabled.

favorite-rankinteger, (int32)

If present, indicates that the offer is a favorite offer ranked

fulfillment-center-codestring

Code of the fullfilment center

last-updatedstring

Date and time of the last update of the offer

leadtime-to-shipinteger, (int32)

The lead time to ship corresponding to the offer

logistic-classstring

The logistic class associated to the offer

max-order-quantityinteger, (int32)

The maximum order quantity customers must select to be able to place an order for that offer

measurement-unitsstring

The product measurement and the product unit
This option is only available if the operator creates a product with a measurement unit.

min-order-quantityinteger, (int32)

The minimum order quantity customers must select to be able to place an order for that offer

min-shipping-pricenumber, (with decimals)

Minimum shipping charges for the offer

min-shipping-price-additionalnumber, (with decimals)

Additional shipping charges for the offer

min-shipping-typestring

Shipping method with the minimum shipping charges (code referenced by the operator)

min-shipping-zonestring

Shipping zone with the minimum shipping charges (code referenced by the operator)

modelstring

The platform model of the seller account providing the offer.
Used for Hybrid platforms.
One of MARKETPLACE, DROPSHIP, ONE_CREDITOR

msrpnumber, (with decimals)

The retail price recommendation, also referred to as manufacturer's suggested retail price (MSRP) or recommended retail price (RRP).
Applicable only for Dropship offers.

offer-idinteger, (int64)

Unique offer identifier assigned by Mirakl

ongoing-discount-campaignsstring

Ongoing discount campaigns the offer is currently participating in.
Not returned if the offer is not currently participating in any discount campaign or if Discount Campaign feature is disabled.

origin-pricenumber, (with decimals)

The original price of the offer
For Dropship specifically: the original purchasing price of the offer, also referred to as cost or wholesale price

origin-price[channel=<channelCode>]number, (with decimals)

The original price granted for an offer for the indicated channel

origin-retail-pricenumber, (with decimals)

The original retail price of the offer, also referred to as original selling price.
Applicable only for Dropship offers.

package-quantityinteger, (int32)

For one order, customers can only add packages of product items.
The number of items per package is the increment number of that product in an order.

premiumboolean

Indicates if the store is premium or not

pricenumber, (with decimals)

Offer current price (original price or discount price if in discount period) For Dropship specifically: the purchasing price of the offer (original price or discount price if in discount period), also referred to as cost or wholesale price

price-additional-infostring

Information about the offer price

price-rangesstring

The price ranges when the Volume Pricing feature is activated.

price-ranges[channel=<channelCode>]string

The price ranges for the indicated channel when the Channel Pricing and the Volume Pricing features are activated.
Can be empty when no specific price range is defined for a given channel.

price[channel=<channelCode>]number, (with decimals)

The unit price of an offer for the indicated channel, when the Channel Pricing feature is activated.
Can be empty when no specific price is defined for a given channel. In this case, the base price of the offer applies to the indicated channel.

producer-id[EPR category code]string, <= 255 characters

Producer identifier of the eco-contribution for the EPR category. Returned if Data collection related to circular economy regulations is enabled.

product-skustring

Product identifier within the operator's system

product-tax-codestring

Tax code for the product

professionalboolean

Indicates if the store is professional or not

quantityinteger, (int32)

Offer quantity available

retail-pricenumber, (with decimals)

Offer current retail price (original retail price or discount retail price if in discount period). Also referred to as selling price.
Applicable only for Dropship offers.

shipping-price-type[zone=<CODE>,method=<CODE>]string

Shipping charges type for the offer, for each combination of shipping zone and method.
Returned if Export shipping charges and delivery times in OF5X, P11 and the offer webhook is enabled.

shipping-price[zone=<CODE>,method=<CODE>]number, (with decimals)

Shipping charges for the offer, for each combination of shipping zone and method.
Returned if Export shipping charges and delivery times in OF5X, P11 and the offer webhook is enabled.

shop-idinteger, (int64)

Unique identifier for the store providing this offer (assigned by Mirakl)

shop-namestring

Name of the store providing this offer

shop-skustring

Shop's sku of the offer

state-codestring

Offer condition code

total-pricenumber, (with decimals)

Offer price + minimum shipping charge
For Dropship specifically: the purchasing price of the offer + minimum shipping charge

]
Response
offer-id;product-sku;min-shipping-price;min-shipping-price-additional;min-shipping-zone;min-shipping-type;price;total-price;price-additional-info;quantity;description;state-code;shop-id;shop-name;professional;premium;logistic-class;active;favorite-rank;channels;deleted;origin-price;discount-start-date;discount-end-date;available-start-date;available-end-date;discount-price;currency-iso-code;discount-ranges;leadtime-to-ship;allow-quote-requests;price-ranges;fulfillment-center-code;shop-sku;date-created;last-updated;model;min-order-quantity;max-order-quantity;package-quantity;price[channel=CA];origin-price[channel=CA];discount-start-date[channel=CA];discount-end-date[channel=CA];discount-price[channel=CA];discount-ranges[channel=CA];price-ranges[channel=CA];price[channel=FR];origin-price[channel=FR];discount-start-date[channel=FR];discount-end-date[channel=FR];discount-price[channel=FR];discount-ranges[channel=FR];price-ranges[channel=FR];price[channel=BFR];origin-price[channel=BFR];disc…